user_grpc.pb.go 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905
  1. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
  2. package user
  3. import (
  4. context "context"
  5. chat "git.ikuban.com/server/pw-protobuf/api/chat"
  6. common "git.ikuban.com/server/pw-protobuf/api/common"
  7. statistics "git.ikuban.com/server/pw-protobuf/api/statistics"
  8. grpc "google.golang.org/grpc"
  9. codes "google.golang.org/grpc/codes"
  10. status "google.golang.org/grpc/status"
  11. emptypb "google.golang.org/protobuf/types/known/emptypb"
  12. )
  13. // This is a compile-time assertion to ensure that this generated file
  14. // is compatible with the grpc package it is being compiled against.
  15. // Requires gRPC-Go v1.32.0 or later.
  16. const _ = grpc.SupportPackageIsVersion7
  17. // UserClient is the client API for User service.
  18. //
  19. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
  20. type UserClient interface {
  21. // 更新用户信息
  22. UpdateUserInformation(ctx context.Context, in *common.UpdateInformationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  23. // 获取用户详情
  24. GetUserInfo(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*UserInfo, error)
  25. // 获取用户详情
  26. GetUserDBMsg(ctx context.Context, in *common.PersonIDParam, opts ...grpc.CallOption) (*common.PersonMsg, error)
  27. // 用户发送验证码
  28. SendPhoneCode(ctx context.Context, in *common.SendPhoneCodeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  29. // 用户验证验证码
  30. CheckPhoneCode(ctx context.Context, in *common.CheckPhoneCodeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  31. // 检查用户是否与接待员关联
  32. CheckUserPartnerIsRelationship(ctx context.Context, in *common.PartnerIDParam, opts ...grpc.CallOption) (*chat.CheckUserPartnerIsRelationshipReply, error)
  33. // 创建用户与接待员的关联
  34. CreateUserPartnerRoom(ctx context.Context, in *common.PartnerIDParam, opts ...grpc.CallOption) (*chat.RoomReply, error)
  35. // 获取接待员的确认通过页面信息
  36. GetPartnerCircleInfo(ctx context.Context, in *KeyRequest, opts ...grpc.CallOption) (*common.AddFriendMessageInfo, error)
  37. // 用户获取主页信息
  38. UserGetHomeInfo(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*common.HomeInfo, error)
  39. // 通过用户IDs查看用户信息列表
  40. FindUserDBList(ctx context.Context, in *common.PersonIDList, opts ...grpc.CallOption) (*common.PersonDBReply, error)
  41. // 查看看过我的列表
  42. FindLookList(ctx context.Context, in *common.ListPageRequest, opts ...grpc.CallOption) (*statistics.LookAndLikeListReply, error)
  43. // 查看我喜欢的列表
  44. FindLikeList(ctx context.Context, in *common.ListPageRequest, opts ...grpc.CallOption) (*statistics.LookAndLikeListReply, error)
  45. // 查看喜欢我的列表
  46. FindLikedList(ctx context.Context, in *common.ListPageRequest, opts ...grpc.CallOption) (*statistics.LookAndLikeListReply, error)
  47. // 获取用户的访客数以及关注数
  48. GetLookAndLikeStatisticsMessage(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*statistics.LookAndLikeMessageReply, error)
  49. // 微信SDK初始化
  50. WxConf(ctx context.Context, in *common.WxConfReq, opts ...grpc.CallOption) (*common.WxConfResponse, error)
  51. // 获取标签列表
  52. FindTagListBySex(ctx context.Context, in *common.SexReq, opts ...grpc.CallOption) (*common.TagListReply, error)
  53. // 获取在线列表
  54. FindOnlineList(ctx context.Context, in *common.ListPage2Request, opts ...grpc.CallOption) (*common.OnlinePersonListReply, error)
  55. // 七天内列表(当前会话)
  56. FindWithinSevenDayRoomList(ctx context.Context, in *common.ListPageRequest, opts ...grpc.CallOption) (*UserFindChatListReply, error)
  57. // 七天外列表(更早的聊天记录)
  58. FindOverSevenDayRoomList(ctx context.Context, in *common.ListPageRequest, opts ...grpc.CallOption) (*UserFindChatListReply, error)
  59. // 用户获取ta的主页访客、关注数
  60. UserGetPersonLikedAndLooked(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*common.LookedAndLikedNum, error)
  61. // 获取用户的金额信息
  62. GetUserBalance(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*UserBalance, error)
  63. // 获取用户访问数详情
  64. GetUserLookNum(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*statistics.LookMessageReply, error)
  65. }
  66. type userClient struct {
  67. cc grpc.ClientConnInterface
  68. }
  69. func NewUserClient(cc grpc.ClientConnInterface) UserClient {
  70. return &userClient{cc}
  71. }
  72. func (c *userClient) UpdateUserInformation(ctx context.Context, in *common.UpdateInformationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  73. out := new(emptypb.Empty)
  74. err := c.cc.Invoke(ctx, "/api.user.User/UpdateUserInformation", in, out, opts...)
  75. if err != nil {
  76. return nil, err
  77. }
  78. return out, nil
  79. }
  80. func (c *userClient) GetUserInfo(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*UserInfo, error) {
  81. out := new(UserInfo)
  82. err := c.cc.Invoke(ctx, "/api.user.User/GetUserInfo", in, out, opts...)
  83. if err != nil {
  84. return nil, err
  85. }
  86. return out, nil
  87. }
  88. func (c *userClient) GetUserDBMsg(ctx context.Context, in *common.PersonIDParam, opts ...grpc.CallOption) (*common.PersonMsg, error) {
  89. out := new(common.PersonMsg)
  90. err := c.cc.Invoke(ctx, "/api.user.User/GetUserDBMsg", in, out, opts...)
  91. if err != nil {
  92. return nil, err
  93. }
  94. return out, nil
  95. }
  96. func (c *userClient) SendPhoneCode(ctx context.Context, in *common.SendPhoneCodeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  97. out := new(emptypb.Empty)
  98. err := c.cc.Invoke(ctx, "/api.user.User/SendPhoneCode", in, out, opts...)
  99. if err != nil {
  100. return nil, err
  101. }
  102. return out, nil
  103. }
  104. func (c *userClient) CheckPhoneCode(ctx context.Context, in *common.CheckPhoneCodeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  105. out := new(emptypb.Empty)
  106. err := c.cc.Invoke(ctx, "/api.user.User/CheckPhoneCode", in, out, opts...)
  107. if err != nil {
  108. return nil, err
  109. }
  110. return out, nil
  111. }
  112. func (c *userClient) CheckUserPartnerIsRelationship(ctx context.Context, in *common.PartnerIDParam, opts ...grpc.CallOption) (*chat.CheckUserPartnerIsRelationshipReply, error) {
  113. out := new(chat.CheckUserPartnerIsRelationshipReply)
  114. err := c.cc.Invoke(ctx, "/api.user.User/CheckUserPartnerIsRelationship", in, out, opts...)
  115. if err != nil {
  116. return nil, err
  117. }
  118. return out, nil
  119. }
  120. func (c *userClient) CreateUserPartnerRoom(ctx context.Context, in *common.PartnerIDParam, opts ...grpc.CallOption) (*chat.RoomReply, error) {
  121. out := new(chat.RoomReply)
  122. err := c.cc.Invoke(ctx, "/api.user.User/CreateUserPartnerRoom", in, out, opts...)
  123. if err != nil {
  124. return nil, err
  125. }
  126. return out, nil
  127. }
  128. func (c *userClient) GetPartnerCircleInfo(ctx context.Context, in *KeyRequest, opts ...grpc.CallOption) (*common.AddFriendMessageInfo, error) {
  129. out := new(common.AddFriendMessageInfo)
  130. err := c.cc.Invoke(ctx, "/api.user.User/GetPartnerCircleInfo", in, out, opts...)
  131. if err != nil {
  132. return nil, err
  133. }
  134. return out, nil
  135. }
  136. func (c *userClient) UserGetHomeInfo(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*common.HomeInfo, error) {
  137. out := new(common.HomeInfo)
  138. err := c.cc.Invoke(ctx, "/api.user.User/UserGetHomeInfo", in, out, opts...)
  139. if err != nil {
  140. return nil, err
  141. }
  142. return out, nil
  143. }
  144. func (c *userClient) FindUserDBList(ctx context.Context, in *common.PersonIDList, opts ...grpc.CallOption) (*common.PersonDBReply, error) {
  145. out := new(common.PersonDBReply)
  146. err := c.cc.Invoke(ctx, "/api.user.User/FindUserDBList", in, out, opts...)
  147. if err != nil {
  148. return nil, err
  149. }
  150. return out, nil
  151. }
  152. func (c *userClient) FindLookList(ctx context.Context, in *common.ListPageRequest, opts ...grpc.CallOption) (*statistics.LookAndLikeListReply, error) {
  153. out := new(statistics.LookAndLikeListReply)
  154. err := c.cc.Invoke(ctx, "/api.user.User/FindLookList", in, out, opts...)
  155. if err != nil {
  156. return nil, err
  157. }
  158. return out, nil
  159. }
  160. func (c *userClient) FindLikeList(ctx context.Context, in *common.ListPageRequest, opts ...grpc.CallOption) (*statistics.LookAndLikeListReply, error) {
  161. out := new(statistics.LookAndLikeListReply)
  162. err := c.cc.Invoke(ctx, "/api.user.User/FindLikeList", in, out, opts...)
  163. if err != nil {
  164. return nil, err
  165. }
  166. return out, nil
  167. }
  168. func (c *userClient) FindLikedList(ctx context.Context, in *common.ListPageRequest, opts ...grpc.CallOption) (*statistics.LookAndLikeListReply, error) {
  169. out := new(statistics.LookAndLikeListReply)
  170. err := c.cc.Invoke(ctx, "/api.user.User/FindLikedList", in, out, opts...)
  171. if err != nil {
  172. return nil, err
  173. }
  174. return out, nil
  175. }
  176. func (c *userClient) GetLookAndLikeStatisticsMessage(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*statistics.LookAndLikeMessageReply, error) {
  177. out := new(statistics.LookAndLikeMessageReply)
  178. err := c.cc.Invoke(ctx, "/api.user.User/GetLookAndLikeStatisticsMessage", in, out, opts...)
  179. if err != nil {
  180. return nil, err
  181. }
  182. return out, nil
  183. }
  184. func (c *userClient) WxConf(ctx context.Context, in *common.WxConfReq, opts ...grpc.CallOption) (*common.WxConfResponse, error) {
  185. out := new(common.WxConfResponse)
  186. err := c.cc.Invoke(ctx, "/api.user.User/WxConf", in, out, opts...)
  187. if err != nil {
  188. return nil, err
  189. }
  190. return out, nil
  191. }
  192. func (c *userClient) FindTagListBySex(ctx context.Context, in *common.SexReq, opts ...grpc.CallOption) (*common.TagListReply, error) {
  193. out := new(common.TagListReply)
  194. err := c.cc.Invoke(ctx, "/api.user.User/FindTagListBySex", in, out, opts...)
  195. if err != nil {
  196. return nil, err
  197. }
  198. return out, nil
  199. }
  200. func (c *userClient) FindOnlineList(ctx context.Context, in *common.ListPage2Request, opts ...grpc.CallOption) (*common.OnlinePersonListReply, error) {
  201. out := new(common.OnlinePersonListReply)
  202. err := c.cc.Invoke(ctx, "/api.user.User/FindOnlineList", in, out, opts...)
  203. if err != nil {
  204. return nil, err
  205. }
  206. return out, nil
  207. }
  208. func (c *userClient) FindWithinSevenDayRoomList(ctx context.Context, in *common.ListPageRequest, opts ...grpc.CallOption) (*UserFindChatListReply, error) {
  209. out := new(UserFindChatListReply)
  210. err := c.cc.Invoke(ctx, "/api.user.User/FindWithinSevenDayRoomList", in, out, opts...)
  211. if err != nil {
  212. return nil, err
  213. }
  214. return out, nil
  215. }
  216. func (c *userClient) FindOverSevenDayRoomList(ctx context.Context, in *common.ListPageRequest, opts ...grpc.CallOption) (*UserFindChatListReply, error) {
  217. out := new(UserFindChatListReply)
  218. err := c.cc.Invoke(ctx, "/api.user.User/FindOverSevenDayRoomList", in, out, opts...)
  219. if err != nil {
  220. return nil, err
  221. }
  222. return out, nil
  223. }
  224. func (c *userClient) UserGetPersonLikedAndLooked(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*common.LookedAndLikedNum, error) {
  225. out := new(common.LookedAndLikedNum)
  226. err := c.cc.Invoke(ctx, "/api.user.User/UserGetPersonLikedAndLooked", in, out, opts...)
  227. if err != nil {
  228. return nil, err
  229. }
  230. return out, nil
  231. }
  232. func (c *userClient) GetUserBalance(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*UserBalance, error) {
  233. out := new(UserBalance)
  234. err := c.cc.Invoke(ctx, "/api.user.User/GetUserBalance", in, out, opts...)
  235. if err != nil {
  236. return nil, err
  237. }
  238. return out, nil
  239. }
  240. func (c *userClient) GetUserLookNum(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*statistics.LookMessageReply, error) {
  241. out := new(statistics.LookMessageReply)
  242. err := c.cc.Invoke(ctx, "/api.user.User/GetUserLookNum", in, out, opts...)
  243. if err != nil {
  244. return nil, err
  245. }
  246. return out, nil
  247. }
  248. // UserServer is the server API for User service.
  249. // All implementations must embed UnimplementedUserServer
  250. // for forward compatibility
  251. type UserServer interface {
  252. // 更新用户信息
  253. UpdateUserInformation(context.Context, *common.UpdateInformationRequest) (*emptypb.Empty, error)
  254. // 获取用户详情
  255. GetUserInfo(context.Context, *emptypb.Empty) (*UserInfo, error)
  256. // 获取用户详情
  257. GetUserDBMsg(context.Context, *common.PersonIDParam) (*common.PersonMsg, error)
  258. // 用户发送验证码
  259. SendPhoneCode(context.Context, *common.SendPhoneCodeRequest) (*emptypb.Empty, error)
  260. // 用户验证验证码
  261. CheckPhoneCode(context.Context, *common.CheckPhoneCodeRequest) (*emptypb.Empty, error)
  262. // 检查用户是否与接待员关联
  263. CheckUserPartnerIsRelationship(context.Context, *common.PartnerIDParam) (*chat.CheckUserPartnerIsRelationshipReply, error)
  264. // 创建用户与接待员的关联
  265. CreateUserPartnerRoom(context.Context, *common.PartnerIDParam) (*chat.RoomReply, error)
  266. // 获取接待员的确认通过页面信息
  267. GetPartnerCircleInfo(context.Context, *KeyRequest) (*common.AddFriendMessageInfo, error)
  268. // 用户获取主页信息
  269. UserGetHomeInfo(context.Context, *common.PersonParam) (*common.HomeInfo, error)
  270. // 通过用户IDs查看用户信息列表
  271. FindUserDBList(context.Context, *common.PersonIDList) (*common.PersonDBReply, error)
  272. // 查看看过我的列表
  273. FindLookList(context.Context, *common.ListPageRequest) (*statistics.LookAndLikeListReply, error)
  274. // 查看我喜欢的列表
  275. FindLikeList(context.Context, *common.ListPageRequest) (*statistics.LookAndLikeListReply, error)
  276. // 查看喜欢我的列表
  277. FindLikedList(context.Context, *common.ListPageRequest) (*statistics.LookAndLikeListReply, error)
  278. // 获取用户的访客数以及关注数
  279. GetLookAndLikeStatisticsMessage(context.Context, *emptypb.Empty) (*statistics.LookAndLikeMessageReply, error)
  280. // 微信SDK初始化
  281. WxConf(context.Context, *common.WxConfReq) (*common.WxConfResponse, error)
  282. // 获取标签列表
  283. FindTagListBySex(context.Context, *common.SexReq) (*common.TagListReply, error)
  284. // 获取在线列表
  285. FindOnlineList(context.Context, *common.ListPage2Request) (*common.OnlinePersonListReply, error)
  286. // 七天内列表(当前会话)
  287. FindWithinSevenDayRoomList(context.Context, *common.ListPageRequest) (*UserFindChatListReply, error)
  288. // 七天外列表(更早的聊天记录)
  289. FindOverSevenDayRoomList(context.Context, *common.ListPageRequest) (*UserFindChatListReply, error)
  290. // 用户获取ta的主页访客、关注数
  291. UserGetPersonLikedAndLooked(context.Context, *common.PersonParam) (*common.LookedAndLikedNum, error)
  292. // 获取用户的金额信息
  293. GetUserBalance(context.Context, *emptypb.Empty) (*UserBalance, error)
  294. // 获取用户访问数详情
  295. GetUserLookNum(context.Context, *emptypb.Empty) (*statistics.LookMessageReply, error)
  296. mustEmbedUnimplementedUserServer()
  297. }
  298. // UnimplementedUserServer must be embedded to have forward compatible implementations.
  299. type UnimplementedUserServer struct {
  300. }
  301. func (UnimplementedUserServer) UpdateUserInformation(context.Context, *common.UpdateInformationRequest) (*emptypb.Empty, error) {
  302. return nil, status.Errorf(codes.Unimplemented, "method UpdateUserInformation not implemented")
  303. }
  304. func (UnimplementedUserServer) GetUserInfo(context.Context, *emptypb.Empty) (*UserInfo, error) {
  305. return nil, status.Errorf(codes.Unimplemented, "method GetUserInfo not implemented")
  306. }
  307. func (UnimplementedUserServer) GetUserDBMsg(context.Context, *common.PersonIDParam) (*common.PersonMsg, error) {
  308. return nil, status.Errorf(codes.Unimplemented, "method GetUserDBMsg not implemented")
  309. }
  310. func (UnimplementedUserServer) SendPhoneCode(context.Context, *common.SendPhoneCodeRequest) (*emptypb.Empty, error) {
  311. return nil, status.Errorf(codes.Unimplemented, "method SendPhoneCode not implemented")
  312. }
  313. func (UnimplementedUserServer) CheckPhoneCode(context.Context, *common.CheckPhoneCodeRequest) (*emptypb.Empty, error) {
  314. return nil, status.Errorf(codes.Unimplemented, "method CheckPhoneCode not implemented")
  315. }
  316. func (UnimplementedUserServer) CheckUserPartnerIsRelationship(context.Context, *common.PartnerIDParam) (*chat.CheckUserPartnerIsRelationshipReply, error) {
  317. return nil, status.Errorf(codes.Unimplemented, "method CheckUserPartnerIsRelationship not implemented")
  318. }
  319. func (UnimplementedUserServer) CreateUserPartnerRoom(context.Context, *common.PartnerIDParam) (*chat.RoomReply, error) {
  320. return nil, status.Errorf(codes.Unimplemented, "method CreateUserPartnerRoom not implemented")
  321. }
  322. func (UnimplementedUserServer) GetPartnerCircleInfo(context.Context, *KeyRequest) (*common.AddFriendMessageInfo, error) {
  323. return nil, status.Errorf(codes.Unimplemented, "method GetPartnerCircleInfo not implemented")
  324. }
  325. func (UnimplementedUserServer) UserGetHomeInfo(context.Context, *common.PersonParam) (*common.HomeInfo, error) {
  326. return nil, status.Errorf(codes.Unimplemented, "method UserGetHomeInfo not implemented")
  327. }
  328. func (UnimplementedUserServer) FindUserDBList(context.Context, *common.PersonIDList) (*common.PersonDBReply, error) {
  329. return nil, status.Errorf(codes.Unimplemented, "method FindUserDBList not implemented")
  330. }
  331. func (UnimplementedUserServer) FindLookList(context.Context, *common.ListPageRequest) (*statistics.LookAndLikeListReply, error) {
  332. return nil, status.Errorf(codes.Unimplemented, "method FindLookList not implemented")
  333. }
  334. func (UnimplementedUserServer) FindLikeList(context.Context, *common.ListPageRequest) (*statistics.LookAndLikeListReply, error) {
  335. return nil, status.Errorf(codes.Unimplemented, "method FindLikeList not implemented")
  336. }
  337. func (UnimplementedUserServer) FindLikedList(context.Context, *common.ListPageRequest) (*statistics.LookAndLikeListReply, error) {
  338. return nil, status.Errorf(codes.Unimplemented, "method FindLikedList not implemented")
  339. }
  340. func (UnimplementedUserServer) GetLookAndLikeStatisticsMessage(context.Context, *emptypb.Empty) (*statistics.LookAndLikeMessageReply, error) {
  341. return nil, status.Errorf(codes.Unimplemented, "method GetLookAndLikeStatisticsMessage not implemented")
  342. }
  343. func (UnimplementedUserServer) WxConf(context.Context, *common.WxConfReq) (*common.WxConfResponse, error) {
  344. return nil, status.Errorf(codes.Unimplemented, "method WxConf not implemented")
  345. }
  346. func (UnimplementedUserServer) FindTagListBySex(context.Context, *common.SexReq) (*common.TagListReply, error) {
  347. return nil, status.Errorf(codes.Unimplemented, "method FindTagListBySex not implemented")
  348. }
  349. func (UnimplementedUserServer) FindOnlineList(context.Context, *common.ListPage2Request) (*common.OnlinePersonListReply, error) {
  350. return nil, status.Errorf(codes.Unimplemented, "method FindOnlineList not implemented")
  351. }
  352. func (UnimplementedUserServer) FindWithinSevenDayRoomList(context.Context, *common.ListPageRequest) (*UserFindChatListReply, error) {
  353. return nil, status.Errorf(codes.Unimplemented, "method FindWithinSevenDayRoomList not implemented")
  354. }
  355. func (UnimplementedUserServer) FindOverSevenDayRoomList(context.Context, *common.ListPageRequest) (*UserFindChatListReply, error) {
  356. return nil, status.Errorf(codes.Unimplemented, "method FindOverSevenDayRoomList not implemented")
  357. }
  358. func (UnimplementedUserServer) UserGetPersonLikedAndLooked(context.Context, *common.PersonParam) (*common.LookedAndLikedNum, error) {
  359. return nil, status.Errorf(codes.Unimplemented, "method UserGetPersonLikedAndLooked not implemented")
  360. }
  361. func (UnimplementedUserServer) GetUserBalance(context.Context, *emptypb.Empty) (*UserBalance, error) {
  362. return nil, status.Errorf(codes.Unimplemented, "method GetUserBalance not implemented")
  363. }
  364. func (UnimplementedUserServer) GetUserLookNum(context.Context, *emptypb.Empty) (*statistics.LookMessageReply, error) {
  365. return nil, status.Errorf(codes.Unimplemented, "method GetUserLookNum not implemented")
  366. }
  367. func (UnimplementedUserServer) mustEmbedUnimplementedUserServer() {}
  368. // UnsafeUserServer may be embedded to opt out of forward compatibility for this service.
  369. // Use of this interface is not recommended, as added methods to UserServer will
  370. // result in compilation errors.
  371. type UnsafeUserServer interface {
  372. mustEmbedUnimplementedUserServer()
  373. }
  374. func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer) {
  375. s.RegisterService(&User_ServiceDesc, srv)
  376. }
  377. func _User_UpdateUserInformation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  378. in := new(common.UpdateInformationRequest)
  379. if err := dec(in); err != nil {
  380. return nil, err
  381. }
  382. if interceptor == nil {
  383. return srv.(UserServer).UpdateUserInformation(ctx, in)
  384. }
  385. info := &grpc.UnaryServerInfo{
  386. Server: srv,
  387. FullMethod: "/api.user.User/UpdateUserInformation",
  388. }
  389. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  390. return srv.(UserServer).UpdateUserInformation(ctx, req.(*common.UpdateInformationRequest))
  391. }
  392. return interceptor(ctx, in, info, handler)
  393. }
  394. func _User_GetUserInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  395. in := new(emptypb.Empty)
  396. if err := dec(in); err != nil {
  397. return nil, err
  398. }
  399. if interceptor == nil {
  400. return srv.(UserServer).GetUserInfo(ctx, in)
  401. }
  402. info := &grpc.UnaryServerInfo{
  403. Server: srv,
  404. FullMethod: "/api.user.User/GetUserInfo",
  405. }
  406. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  407. return srv.(UserServer).GetUserInfo(ctx, req.(*emptypb.Empty))
  408. }
  409. return interceptor(ctx, in, info, handler)
  410. }
  411. func _User_GetUserDBMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  412. in := new(common.PersonIDParam)
  413. if err := dec(in); err != nil {
  414. return nil, err
  415. }
  416. if interceptor == nil {
  417. return srv.(UserServer).GetUserDBMsg(ctx, in)
  418. }
  419. info := &grpc.UnaryServerInfo{
  420. Server: srv,
  421. FullMethod: "/api.user.User/GetUserDBMsg",
  422. }
  423. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  424. return srv.(UserServer).GetUserDBMsg(ctx, req.(*common.PersonIDParam))
  425. }
  426. return interceptor(ctx, in, info, handler)
  427. }
  428. func _User_SendPhoneCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  429. in := new(common.SendPhoneCodeRequest)
  430. if err := dec(in); err != nil {
  431. return nil, err
  432. }
  433. if interceptor == nil {
  434. return srv.(UserServer).SendPhoneCode(ctx, in)
  435. }
  436. info := &grpc.UnaryServerInfo{
  437. Server: srv,
  438. FullMethod: "/api.user.User/SendPhoneCode",
  439. }
  440. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  441. return srv.(UserServer).SendPhoneCode(ctx, req.(*common.SendPhoneCodeRequest))
  442. }
  443. return interceptor(ctx, in, info, handler)
  444. }
  445. func _User_CheckPhoneCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  446. in := new(common.CheckPhoneCodeRequest)
  447. if err := dec(in); err != nil {
  448. return nil, err
  449. }
  450. if interceptor == nil {
  451. return srv.(UserServer).CheckPhoneCode(ctx, in)
  452. }
  453. info := &grpc.UnaryServerInfo{
  454. Server: srv,
  455. FullMethod: "/api.user.User/CheckPhoneCode",
  456. }
  457. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  458. return srv.(UserServer).CheckPhoneCode(ctx, req.(*common.CheckPhoneCodeRequest))
  459. }
  460. return interceptor(ctx, in, info, handler)
  461. }
  462. func _User_CheckUserPartnerIsRelationship_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  463. in := new(common.PartnerIDParam)
  464. if err := dec(in); err != nil {
  465. return nil, err
  466. }
  467. if interceptor == nil {
  468. return srv.(UserServer).CheckUserPartnerIsRelationship(ctx, in)
  469. }
  470. info := &grpc.UnaryServerInfo{
  471. Server: srv,
  472. FullMethod: "/api.user.User/CheckUserPartnerIsRelationship",
  473. }
  474. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  475. return srv.(UserServer).CheckUserPartnerIsRelationship(ctx, req.(*common.PartnerIDParam))
  476. }
  477. return interceptor(ctx, in, info, handler)
  478. }
  479. func _User_CreateUserPartnerRoom_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  480. in := new(common.PartnerIDParam)
  481. if err := dec(in); err != nil {
  482. return nil, err
  483. }
  484. if interceptor == nil {
  485. return srv.(UserServer).CreateUserPartnerRoom(ctx, in)
  486. }
  487. info := &grpc.UnaryServerInfo{
  488. Server: srv,
  489. FullMethod: "/api.user.User/CreateUserPartnerRoom",
  490. }
  491. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  492. return srv.(UserServer).CreateUserPartnerRoom(ctx, req.(*common.PartnerIDParam))
  493. }
  494. return interceptor(ctx, in, info, handler)
  495. }
  496. func _User_GetPartnerCircleInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  497. in := new(KeyRequest)
  498. if err := dec(in); err != nil {
  499. return nil, err
  500. }
  501. if interceptor == nil {
  502. return srv.(UserServer).GetPartnerCircleInfo(ctx, in)
  503. }
  504. info := &grpc.UnaryServerInfo{
  505. Server: srv,
  506. FullMethod: "/api.user.User/GetPartnerCircleInfo",
  507. }
  508. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  509. return srv.(UserServer).GetPartnerCircleInfo(ctx, req.(*KeyRequest))
  510. }
  511. return interceptor(ctx, in, info, handler)
  512. }
  513. func _User_UserGetHomeInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  514. in := new(common.PersonParam)
  515. if err := dec(in); err != nil {
  516. return nil, err
  517. }
  518. if interceptor == nil {
  519. return srv.(UserServer).UserGetHomeInfo(ctx, in)
  520. }
  521. info := &grpc.UnaryServerInfo{
  522. Server: srv,
  523. FullMethod: "/api.user.User/UserGetHomeInfo",
  524. }
  525. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  526. return srv.(UserServer).UserGetHomeInfo(ctx, req.(*common.PersonParam))
  527. }
  528. return interceptor(ctx, in, info, handler)
  529. }
  530. func _User_FindUserDBList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  531. in := new(common.PersonIDList)
  532. if err := dec(in); err != nil {
  533. return nil, err
  534. }
  535. if interceptor == nil {
  536. return srv.(UserServer).FindUserDBList(ctx, in)
  537. }
  538. info := &grpc.UnaryServerInfo{
  539. Server: srv,
  540. FullMethod: "/api.user.User/FindUserDBList",
  541. }
  542. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  543. return srv.(UserServer).FindUserDBList(ctx, req.(*common.PersonIDList))
  544. }
  545. return interceptor(ctx, in, info, handler)
  546. }
  547. func _User_FindLookList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  548. in := new(common.ListPageRequest)
  549. if err := dec(in); err != nil {
  550. return nil, err
  551. }
  552. if interceptor == nil {
  553. return srv.(UserServer).FindLookList(ctx, in)
  554. }
  555. info := &grpc.UnaryServerInfo{
  556. Server: srv,
  557. FullMethod: "/api.user.User/FindLookList",
  558. }
  559. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  560. return srv.(UserServer).FindLookList(ctx, req.(*common.ListPageRequest))
  561. }
  562. return interceptor(ctx, in, info, handler)
  563. }
  564. func _User_FindLikeList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  565. in := new(common.ListPageRequest)
  566. if err := dec(in); err != nil {
  567. return nil, err
  568. }
  569. if interceptor == nil {
  570. return srv.(UserServer).FindLikeList(ctx, in)
  571. }
  572. info := &grpc.UnaryServerInfo{
  573. Server: srv,
  574. FullMethod: "/api.user.User/FindLikeList",
  575. }
  576. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  577. return srv.(UserServer).FindLikeList(ctx, req.(*common.ListPageRequest))
  578. }
  579. return interceptor(ctx, in, info, handler)
  580. }
  581. func _User_FindLikedList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  582. in := new(common.ListPageRequest)
  583. if err := dec(in); err != nil {
  584. return nil, err
  585. }
  586. if interceptor == nil {
  587. return srv.(UserServer).FindLikedList(ctx, in)
  588. }
  589. info := &grpc.UnaryServerInfo{
  590. Server: srv,
  591. FullMethod: "/api.user.User/FindLikedList",
  592. }
  593. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  594. return srv.(UserServer).FindLikedList(ctx, req.(*common.ListPageRequest))
  595. }
  596. return interceptor(ctx, in, info, handler)
  597. }
  598. func _User_GetLookAndLikeStatisticsMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  599. in := new(emptypb.Empty)
  600. if err := dec(in); err != nil {
  601. return nil, err
  602. }
  603. if interceptor == nil {
  604. return srv.(UserServer).GetLookAndLikeStatisticsMessage(ctx, in)
  605. }
  606. info := &grpc.UnaryServerInfo{
  607. Server: srv,
  608. FullMethod: "/api.user.User/GetLookAndLikeStatisticsMessage",
  609. }
  610. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  611. return srv.(UserServer).GetLookAndLikeStatisticsMessage(ctx, req.(*emptypb.Empty))
  612. }
  613. return interceptor(ctx, in, info, handler)
  614. }
  615. func _User_WxConf_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  616. in := new(common.WxConfReq)
  617. if err := dec(in); err != nil {
  618. return nil, err
  619. }
  620. if interceptor == nil {
  621. return srv.(UserServer).WxConf(ctx, in)
  622. }
  623. info := &grpc.UnaryServerInfo{
  624. Server: srv,
  625. FullMethod: "/api.user.User/WxConf",
  626. }
  627. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  628. return srv.(UserServer).WxConf(ctx, req.(*common.WxConfReq))
  629. }
  630. return interceptor(ctx, in, info, handler)
  631. }
  632. func _User_FindTagListBySex_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  633. in := new(common.SexReq)
  634. if err := dec(in); err != nil {
  635. return nil, err
  636. }
  637. if interceptor == nil {
  638. return srv.(UserServer).FindTagListBySex(ctx, in)
  639. }
  640. info := &grpc.UnaryServerInfo{
  641. Server: srv,
  642. FullMethod: "/api.user.User/FindTagListBySex",
  643. }
  644. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  645. return srv.(UserServer).FindTagListBySex(ctx, req.(*common.SexReq))
  646. }
  647. return interceptor(ctx, in, info, handler)
  648. }
  649. func _User_FindOnlineList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  650. in := new(common.ListPage2Request)
  651. if err := dec(in); err != nil {
  652. return nil, err
  653. }
  654. if interceptor == nil {
  655. return srv.(UserServer).FindOnlineList(ctx, in)
  656. }
  657. info := &grpc.UnaryServerInfo{
  658. Server: srv,
  659. FullMethod: "/api.user.User/FindOnlineList",
  660. }
  661. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  662. return srv.(UserServer).FindOnlineList(ctx, req.(*common.ListPage2Request))
  663. }
  664. return interceptor(ctx, in, info, handler)
  665. }
  666. func _User_FindWithinSevenDayRoomList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  667. in := new(common.ListPageRequest)
  668. if err := dec(in); err != nil {
  669. return nil, err
  670. }
  671. if interceptor == nil {
  672. return srv.(UserServer).FindWithinSevenDayRoomList(ctx, in)
  673. }
  674. info := &grpc.UnaryServerInfo{
  675. Server: srv,
  676. FullMethod: "/api.user.User/FindWithinSevenDayRoomList",
  677. }
  678. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  679. return srv.(UserServer).FindWithinSevenDayRoomList(ctx, req.(*common.ListPageRequest))
  680. }
  681. return interceptor(ctx, in, info, handler)
  682. }
  683. func _User_FindOverSevenDayRoomList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  684. in := new(common.ListPageRequest)
  685. if err := dec(in); err != nil {
  686. return nil, err
  687. }
  688. if interceptor == nil {
  689. return srv.(UserServer).FindOverSevenDayRoomList(ctx, in)
  690. }
  691. info := &grpc.UnaryServerInfo{
  692. Server: srv,
  693. FullMethod: "/api.user.User/FindOverSevenDayRoomList",
  694. }
  695. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  696. return srv.(UserServer).FindOverSevenDayRoomList(ctx, req.(*common.ListPageRequest))
  697. }
  698. return interceptor(ctx, in, info, handler)
  699. }
  700. func _User_UserGetPersonLikedAndLooked_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  701. in := new(common.PersonParam)
  702. if err := dec(in); err != nil {
  703. return nil, err
  704. }
  705. if interceptor == nil {
  706. return srv.(UserServer).UserGetPersonLikedAndLooked(ctx, in)
  707. }
  708. info := &grpc.UnaryServerInfo{
  709. Server: srv,
  710. FullMethod: "/api.user.User/UserGetPersonLikedAndLooked",
  711. }
  712. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  713. return srv.(UserServer).UserGetPersonLikedAndLooked(ctx, req.(*common.PersonParam))
  714. }
  715. return interceptor(ctx, in, info, handler)
  716. }
  717. func _User_GetUserBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  718. in := new(emptypb.Empty)
  719. if err := dec(in); err != nil {
  720. return nil, err
  721. }
  722. if interceptor == nil {
  723. return srv.(UserServer).GetUserBalance(ctx, in)
  724. }
  725. info := &grpc.UnaryServerInfo{
  726. Server: srv,
  727. FullMethod: "/api.user.User/GetUserBalance",
  728. }
  729. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  730. return srv.(UserServer).GetUserBalance(ctx, req.(*emptypb.Empty))
  731. }
  732. return interceptor(ctx, in, info, handler)
  733. }
  734. func _User_GetUserLookNum_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  735. in := new(emptypb.Empty)
  736. if err := dec(in); err != nil {
  737. return nil, err
  738. }
  739. if interceptor == nil {
  740. return srv.(UserServer).GetUserLookNum(ctx, in)
  741. }
  742. info := &grpc.UnaryServerInfo{
  743. Server: srv,
  744. FullMethod: "/api.user.User/GetUserLookNum",
  745. }
  746. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  747. return srv.(UserServer).GetUserLookNum(ctx, req.(*emptypb.Empty))
  748. }
  749. return interceptor(ctx, in, info, handler)
  750. }
  751. // User_ServiceDesc is the grpc.ServiceDesc for User service.
  752. // It's only intended for direct use with grpc.RegisterService,
  753. // and not to be introspected or modified (even as a copy)
  754. var User_ServiceDesc = grpc.ServiceDesc{
  755. ServiceName: "api.user.User",
  756. HandlerType: (*UserServer)(nil),
  757. Methods: []grpc.MethodDesc{
  758. {
  759. MethodName: "UpdateUserInformation",
  760. Handler: _User_UpdateUserInformation_Handler,
  761. },
  762. {
  763. MethodName: "GetUserInfo",
  764. Handler: _User_GetUserInfo_Handler,
  765. },
  766. {
  767. MethodName: "GetUserDBMsg",
  768. Handler: _User_GetUserDBMsg_Handler,
  769. },
  770. {
  771. MethodName: "SendPhoneCode",
  772. Handler: _User_SendPhoneCode_Handler,
  773. },
  774. {
  775. MethodName: "CheckPhoneCode",
  776. Handler: _User_CheckPhoneCode_Handler,
  777. },
  778. {
  779. MethodName: "CheckUserPartnerIsRelationship",
  780. Handler: _User_CheckUserPartnerIsRelationship_Handler,
  781. },
  782. {
  783. MethodName: "CreateUserPartnerRoom",
  784. Handler: _User_CreateUserPartnerRoom_Handler,
  785. },
  786. {
  787. MethodName: "GetPartnerCircleInfo",
  788. Handler: _User_GetPartnerCircleInfo_Handler,
  789. },
  790. {
  791. MethodName: "UserGetHomeInfo",
  792. Handler: _User_UserGetHomeInfo_Handler,
  793. },
  794. {
  795. MethodName: "FindUserDBList",
  796. Handler: _User_FindUserDBList_Handler,
  797. },
  798. {
  799. MethodName: "FindLookList",
  800. Handler: _User_FindLookList_Handler,
  801. },
  802. {
  803. MethodName: "FindLikeList",
  804. Handler: _User_FindLikeList_Handler,
  805. },
  806. {
  807. MethodName: "FindLikedList",
  808. Handler: _User_FindLikedList_Handler,
  809. },
  810. {
  811. MethodName: "GetLookAndLikeStatisticsMessage",
  812. Handler: _User_GetLookAndLikeStatisticsMessage_Handler,
  813. },
  814. {
  815. MethodName: "WxConf",
  816. Handler: _User_WxConf_Handler,
  817. },
  818. {
  819. MethodName: "FindTagListBySex",
  820. Handler: _User_FindTagListBySex_Handler,
  821. },
  822. {
  823. MethodName: "FindOnlineList",
  824. Handler: _User_FindOnlineList_Handler,
  825. },
  826. {
  827. MethodName: "FindWithinSevenDayRoomList",
  828. Handler: _User_FindWithinSevenDayRoomList_Handler,
  829. },
  830. {
  831. MethodName: "FindOverSevenDayRoomList",
  832. Handler: _User_FindOverSevenDayRoomList_Handler,
  833. },
  834. {
  835. MethodName: "UserGetPersonLikedAndLooked",
  836. Handler: _User_UserGetPersonLikedAndLooked_Handler,
  837. },
  838. {
  839. MethodName: "GetUserBalance",
  840. Handler: _User_GetUserBalance_Handler,
  841. },
  842. {
  843. MethodName: "GetUserLookNum",
  844. Handler: _User_GetUserLookNum_Handler,
  845. },
  846. },
  847. Streams: []grpc.StreamDesc{},
  848. Metadata: "user.proto",
  849. }