user_grpc.pb.go 33 KB

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