user_grpc.pb.go 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753
  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. type userClient struct {
  59. cc grpc.ClientConnInterface
  60. }
  61. func NewUserClient(cc grpc.ClientConnInterface) UserClient {
  62. return &userClient{cc}
  63. }
  64. func (c *userClient) UpdateUserInformation(ctx context.Context, in *common.UpdateInformationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  65. out := new(emptypb.Empty)
  66. err := c.cc.Invoke(ctx, "/api.user.User/UpdateUserInformation", in, out, opts...)
  67. if err != nil {
  68. return nil, err
  69. }
  70. return out, nil
  71. }
  72. func (c *userClient) GetUserInfo(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*UserInfo, error) {
  73. out := new(UserInfo)
  74. err := c.cc.Invoke(ctx, "/api.user.User/GetUserInfo", in, out, opts...)
  75. if err != nil {
  76. return nil, err
  77. }
  78. return out, nil
  79. }
  80. func (c *userClient) GetUserDBMsg(ctx context.Context, in *common.PersonIDParam, opts ...grpc.CallOption) (*common.PersonMsg, error) {
  81. out := new(common.PersonMsg)
  82. err := c.cc.Invoke(ctx, "/api.user.User/GetUserDBMsg", in, out, opts...)
  83. if err != nil {
  84. return nil, err
  85. }
  86. return out, nil
  87. }
  88. func (c *userClient) GetUserLookNum(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*statistics.LookMessageReply, error) {
  89. out := new(statistics.LookMessageReply)
  90. err := c.cc.Invoke(ctx, "/api.user.User/GetUserLookNum", 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 *common.PersonParam, 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. // UserServer is the server API for User service.
  209. // All implementations must embed UnimplementedUserServer
  210. // for forward compatibility
  211. type UserServer interface {
  212. // 更新用户信息
  213. UpdateUserInformation(context.Context, *common.UpdateInformationRequest) (*emptypb.Empty, error)
  214. // 获取用户详情
  215. GetUserInfo(context.Context, *emptypb.Empty) (*UserInfo, error)
  216. // 获取用户详情
  217. GetUserDBMsg(context.Context, *common.PersonIDParam) (*common.PersonMsg, error)
  218. // 获取用户访问数详情
  219. GetUserLookNum(context.Context, *emptypb.Empty) (*statistics.LookMessageReply, error)
  220. // 用户发送验证码
  221. SendPhoneCode(context.Context, *common.SendPhoneCodeRequest) (*emptypb.Empty, error)
  222. // 用户验证验证码
  223. CheckPhoneCode(context.Context, *common.CheckPhoneCodeRequest) (*emptypb.Empty, error)
  224. // 检查用户是否与接待员关联
  225. CheckUserPartnerIsRelationship(context.Context, *common.PartnerIDParam) (*chat.CheckUserPartnerIsRelationshipReply, error)
  226. // 创建用户与接待员的关联
  227. CreateUserPartnerRoom(context.Context, *common.PartnerIDParam) (*chat.RoomReply, error)
  228. // 获取接待员的确认通过页面信息
  229. GetPartnerCircleInfo(context.Context, *KeyRequest) (*common.AddFriendMessageInfo, error)
  230. // 用户获取主页信息
  231. UserGetHomeInfo(context.Context, *common.PersonParam) (*common.HomeInfo, error)
  232. // 通过用户IDs查看用户信息列表
  233. FindUserDBList(context.Context, *common.PersonIDList) (*common.PersonDBReply, error)
  234. // 查看看过我的列表
  235. FindLookList(context.Context, *common.ListPageRequest) (*statistics.LookAndLikeListReply, error)
  236. // 查看我喜欢的列表
  237. FindLikeList(context.Context, *common.ListPageRequest) (*statistics.LookAndLikeListReply, error)
  238. // 查看喜欢我的列表
  239. FindLikedList(context.Context, *common.ListPageRequest) (*statistics.LookAndLikeListReply, error)
  240. // 获取用户的访客数以及关注数
  241. GetLookAndLikeStatisticsMessage(context.Context, *common.PersonParam) (*statistics.LookAndLikeMessageReply, error)
  242. // 微信SDK初始化
  243. WxConf(context.Context, *common.WxConfReq) (*common.WxConfResponse, error)
  244. // 获取标签列表
  245. FindTagListBySex(context.Context, *common.SexReq) (*common.TagListReply, error)
  246. // 获取标签列表
  247. FindOnlineList(context.Context, *common.ListPage2Request) (*common.OnlinePersonListReply, error)
  248. mustEmbedUnimplementedUserServer()
  249. }
  250. // UnimplementedUserServer must be embedded to have forward compatible implementations.
  251. type UnimplementedUserServer struct {
  252. }
  253. func (UnimplementedUserServer) UpdateUserInformation(context.Context, *common.UpdateInformationRequest) (*emptypb.Empty, error) {
  254. return nil, status.Errorf(codes.Unimplemented, "method UpdateUserInformation not implemented")
  255. }
  256. func (UnimplementedUserServer) GetUserInfo(context.Context, *emptypb.Empty) (*UserInfo, error) {
  257. return nil, status.Errorf(codes.Unimplemented, "method GetUserInfo not implemented")
  258. }
  259. func (UnimplementedUserServer) GetUserDBMsg(context.Context, *common.PersonIDParam) (*common.PersonMsg, error) {
  260. return nil, status.Errorf(codes.Unimplemented, "method GetUserDBMsg not implemented")
  261. }
  262. func (UnimplementedUserServer) GetUserLookNum(context.Context, *emptypb.Empty) (*statistics.LookMessageReply, error) {
  263. return nil, status.Errorf(codes.Unimplemented, "method GetUserLookNum not implemented")
  264. }
  265. func (UnimplementedUserServer) SendPhoneCode(context.Context, *common.SendPhoneCodeRequest) (*emptypb.Empty, error) {
  266. return nil, status.Errorf(codes.Unimplemented, "method SendPhoneCode not implemented")
  267. }
  268. func (UnimplementedUserServer) CheckPhoneCode(context.Context, *common.CheckPhoneCodeRequest) (*emptypb.Empty, error) {
  269. return nil, status.Errorf(codes.Unimplemented, "method CheckPhoneCode not implemented")
  270. }
  271. func (UnimplementedUserServer) CheckUserPartnerIsRelationship(context.Context, *common.PartnerIDParam) (*chat.CheckUserPartnerIsRelationshipReply, error) {
  272. return nil, status.Errorf(codes.Unimplemented, "method CheckUserPartnerIsRelationship not implemented")
  273. }
  274. func (UnimplementedUserServer) CreateUserPartnerRoom(context.Context, *common.PartnerIDParam) (*chat.RoomReply, error) {
  275. return nil, status.Errorf(codes.Unimplemented, "method CreateUserPartnerRoom not implemented")
  276. }
  277. func (UnimplementedUserServer) GetPartnerCircleInfo(context.Context, *KeyRequest) (*common.AddFriendMessageInfo, error) {
  278. return nil, status.Errorf(codes.Unimplemented, "method GetPartnerCircleInfo not implemented")
  279. }
  280. func (UnimplementedUserServer) UserGetHomeInfo(context.Context, *common.PersonParam) (*common.HomeInfo, error) {
  281. return nil, status.Errorf(codes.Unimplemented, "method UserGetHomeInfo not implemented")
  282. }
  283. func (UnimplementedUserServer) FindUserDBList(context.Context, *common.PersonIDList) (*common.PersonDBReply, error) {
  284. return nil, status.Errorf(codes.Unimplemented, "method FindUserDBList not implemented")
  285. }
  286. func (UnimplementedUserServer) FindLookList(context.Context, *common.ListPageRequest) (*statistics.LookAndLikeListReply, error) {
  287. return nil, status.Errorf(codes.Unimplemented, "method FindLookList not implemented")
  288. }
  289. func (UnimplementedUserServer) FindLikeList(context.Context, *common.ListPageRequest) (*statistics.LookAndLikeListReply, error) {
  290. return nil, status.Errorf(codes.Unimplemented, "method FindLikeList not implemented")
  291. }
  292. func (UnimplementedUserServer) FindLikedList(context.Context, *common.ListPageRequest) (*statistics.LookAndLikeListReply, error) {
  293. return nil, status.Errorf(codes.Unimplemented, "method FindLikedList not implemented")
  294. }
  295. func (UnimplementedUserServer) GetLookAndLikeStatisticsMessage(context.Context, *common.PersonParam) (*statistics.LookAndLikeMessageReply, error) {
  296. return nil, status.Errorf(codes.Unimplemented, "method GetLookAndLikeStatisticsMessage not implemented")
  297. }
  298. func (UnimplementedUserServer) WxConf(context.Context, *common.WxConfReq) (*common.WxConfResponse, error) {
  299. return nil, status.Errorf(codes.Unimplemented, "method WxConf not implemented")
  300. }
  301. func (UnimplementedUserServer) FindTagListBySex(context.Context, *common.SexReq) (*common.TagListReply, error) {
  302. return nil, status.Errorf(codes.Unimplemented, "method FindTagListBySex not implemented")
  303. }
  304. func (UnimplementedUserServer) FindOnlineList(context.Context, *common.ListPage2Request) (*common.OnlinePersonListReply, error) {
  305. return nil, status.Errorf(codes.Unimplemented, "method FindOnlineList not implemented")
  306. }
  307. func (UnimplementedUserServer) mustEmbedUnimplementedUserServer() {}
  308. // UnsafeUserServer may be embedded to opt out of forward compatibility for this service.
  309. // Use of this interface is not recommended, as added methods to UserServer will
  310. // result in compilation errors.
  311. type UnsafeUserServer interface {
  312. mustEmbedUnimplementedUserServer()
  313. }
  314. func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer) {
  315. s.RegisterService(&User_ServiceDesc, srv)
  316. }
  317. func _User_UpdateUserInformation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  318. in := new(common.UpdateInformationRequest)
  319. if err := dec(in); err != nil {
  320. return nil, err
  321. }
  322. if interceptor == nil {
  323. return srv.(UserServer).UpdateUserInformation(ctx, in)
  324. }
  325. info := &grpc.UnaryServerInfo{
  326. Server: srv,
  327. FullMethod: "/api.user.User/UpdateUserInformation",
  328. }
  329. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  330. return srv.(UserServer).UpdateUserInformation(ctx, req.(*common.UpdateInformationRequest))
  331. }
  332. return interceptor(ctx, in, info, handler)
  333. }
  334. func _User_GetUserInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  335. in := new(emptypb.Empty)
  336. if err := dec(in); err != nil {
  337. return nil, err
  338. }
  339. if interceptor == nil {
  340. return srv.(UserServer).GetUserInfo(ctx, in)
  341. }
  342. info := &grpc.UnaryServerInfo{
  343. Server: srv,
  344. FullMethod: "/api.user.User/GetUserInfo",
  345. }
  346. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  347. return srv.(UserServer).GetUserInfo(ctx, req.(*emptypb.Empty))
  348. }
  349. return interceptor(ctx, in, info, handler)
  350. }
  351. func _User_GetUserDBMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  352. in := new(common.PersonIDParam)
  353. if err := dec(in); err != nil {
  354. return nil, err
  355. }
  356. if interceptor == nil {
  357. return srv.(UserServer).GetUserDBMsg(ctx, in)
  358. }
  359. info := &grpc.UnaryServerInfo{
  360. Server: srv,
  361. FullMethod: "/api.user.User/GetUserDBMsg",
  362. }
  363. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  364. return srv.(UserServer).GetUserDBMsg(ctx, req.(*common.PersonIDParam))
  365. }
  366. return interceptor(ctx, in, info, handler)
  367. }
  368. func _User_GetUserLookNum_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  369. in := new(emptypb.Empty)
  370. if err := dec(in); err != nil {
  371. return nil, err
  372. }
  373. if interceptor == nil {
  374. return srv.(UserServer).GetUserLookNum(ctx, in)
  375. }
  376. info := &grpc.UnaryServerInfo{
  377. Server: srv,
  378. FullMethod: "/api.user.User/GetUserLookNum",
  379. }
  380. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  381. return srv.(UserServer).GetUserLookNum(ctx, req.(*emptypb.Empty))
  382. }
  383. return interceptor(ctx, in, info, handler)
  384. }
  385. func _User_SendPhoneCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  386. in := new(common.SendPhoneCodeRequest)
  387. if err := dec(in); err != nil {
  388. return nil, err
  389. }
  390. if interceptor == nil {
  391. return srv.(UserServer).SendPhoneCode(ctx, in)
  392. }
  393. info := &grpc.UnaryServerInfo{
  394. Server: srv,
  395. FullMethod: "/api.user.User/SendPhoneCode",
  396. }
  397. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  398. return srv.(UserServer).SendPhoneCode(ctx, req.(*common.SendPhoneCodeRequest))
  399. }
  400. return interceptor(ctx, in, info, handler)
  401. }
  402. func _User_CheckPhoneCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  403. in := new(common.CheckPhoneCodeRequest)
  404. if err := dec(in); err != nil {
  405. return nil, err
  406. }
  407. if interceptor == nil {
  408. return srv.(UserServer).CheckPhoneCode(ctx, in)
  409. }
  410. info := &grpc.UnaryServerInfo{
  411. Server: srv,
  412. FullMethod: "/api.user.User/CheckPhoneCode",
  413. }
  414. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  415. return srv.(UserServer).CheckPhoneCode(ctx, req.(*common.CheckPhoneCodeRequest))
  416. }
  417. return interceptor(ctx, in, info, handler)
  418. }
  419. func _User_CheckUserPartnerIsRelationship_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  420. in := new(common.PartnerIDParam)
  421. if err := dec(in); err != nil {
  422. return nil, err
  423. }
  424. if interceptor == nil {
  425. return srv.(UserServer).CheckUserPartnerIsRelationship(ctx, in)
  426. }
  427. info := &grpc.UnaryServerInfo{
  428. Server: srv,
  429. FullMethod: "/api.user.User/CheckUserPartnerIsRelationship",
  430. }
  431. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  432. return srv.(UserServer).CheckUserPartnerIsRelationship(ctx, req.(*common.PartnerIDParam))
  433. }
  434. return interceptor(ctx, in, info, handler)
  435. }
  436. func _User_CreateUserPartnerRoom_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  437. in := new(common.PartnerIDParam)
  438. if err := dec(in); err != nil {
  439. return nil, err
  440. }
  441. if interceptor == nil {
  442. return srv.(UserServer).CreateUserPartnerRoom(ctx, in)
  443. }
  444. info := &grpc.UnaryServerInfo{
  445. Server: srv,
  446. FullMethod: "/api.user.User/CreateUserPartnerRoom",
  447. }
  448. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  449. return srv.(UserServer).CreateUserPartnerRoom(ctx, req.(*common.PartnerIDParam))
  450. }
  451. return interceptor(ctx, in, info, handler)
  452. }
  453. func _User_GetPartnerCircleInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  454. in := new(KeyRequest)
  455. if err := dec(in); err != nil {
  456. return nil, err
  457. }
  458. if interceptor == nil {
  459. return srv.(UserServer).GetPartnerCircleInfo(ctx, in)
  460. }
  461. info := &grpc.UnaryServerInfo{
  462. Server: srv,
  463. FullMethod: "/api.user.User/GetPartnerCircleInfo",
  464. }
  465. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  466. return srv.(UserServer).GetPartnerCircleInfo(ctx, req.(*KeyRequest))
  467. }
  468. return interceptor(ctx, in, info, handler)
  469. }
  470. func _User_UserGetHomeInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  471. in := new(common.PersonParam)
  472. if err := dec(in); err != nil {
  473. return nil, err
  474. }
  475. if interceptor == nil {
  476. return srv.(UserServer).UserGetHomeInfo(ctx, in)
  477. }
  478. info := &grpc.UnaryServerInfo{
  479. Server: srv,
  480. FullMethod: "/api.user.User/UserGetHomeInfo",
  481. }
  482. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  483. return srv.(UserServer).UserGetHomeInfo(ctx, req.(*common.PersonParam))
  484. }
  485. return interceptor(ctx, in, info, handler)
  486. }
  487. func _User_FindUserDBList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  488. in := new(common.PersonIDList)
  489. if err := dec(in); err != nil {
  490. return nil, err
  491. }
  492. if interceptor == nil {
  493. return srv.(UserServer).FindUserDBList(ctx, in)
  494. }
  495. info := &grpc.UnaryServerInfo{
  496. Server: srv,
  497. FullMethod: "/api.user.User/FindUserDBList",
  498. }
  499. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  500. return srv.(UserServer).FindUserDBList(ctx, req.(*common.PersonIDList))
  501. }
  502. return interceptor(ctx, in, info, handler)
  503. }
  504. func _User_FindLookList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  505. in := new(common.ListPageRequest)
  506. if err := dec(in); err != nil {
  507. return nil, err
  508. }
  509. if interceptor == nil {
  510. return srv.(UserServer).FindLookList(ctx, in)
  511. }
  512. info := &grpc.UnaryServerInfo{
  513. Server: srv,
  514. FullMethod: "/api.user.User/FindLookList",
  515. }
  516. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  517. return srv.(UserServer).FindLookList(ctx, req.(*common.ListPageRequest))
  518. }
  519. return interceptor(ctx, in, info, handler)
  520. }
  521. func _User_FindLikeList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  522. in := new(common.ListPageRequest)
  523. if err := dec(in); err != nil {
  524. return nil, err
  525. }
  526. if interceptor == nil {
  527. return srv.(UserServer).FindLikeList(ctx, in)
  528. }
  529. info := &grpc.UnaryServerInfo{
  530. Server: srv,
  531. FullMethod: "/api.user.User/FindLikeList",
  532. }
  533. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  534. return srv.(UserServer).FindLikeList(ctx, req.(*common.ListPageRequest))
  535. }
  536. return interceptor(ctx, in, info, handler)
  537. }
  538. func _User_FindLikedList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  539. in := new(common.ListPageRequest)
  540. if err := dec(in); err != nil {
  541. return nil, err
  542. }
  543. if interceptor == nil {
  544. return srv.(UserServer).FindLikedList(ctx, in)
  545. }
  546. info := &grpc.UnaryServerInfo{
  547. Server: srv,
  548. FullMethod: "/api.user.User/FindLikedList",
  549. }
  550. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  551. return srv.(UserServer).FindLikedList(ctx, req.(*common.ListPageRequest))
  552. }
  553. return interceptor(ctx, in, info, handler)
  554. }
  555. func _User_GetLookAndLikeStatisticsMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  556. in := new(common.PersonParam)
  557. if err := dec(in); err != nil {
  558. return nil, err
  559. }
  560. if interceptor == nil {
  561. return srv.(UserServer).GetLookAndLikeStatisticsMessage(ctx, in)
  562. }
  563. info := &grpc.UnaryServerInfo{
  564. Server: srv,
  565. FullMethod: "/api.user.User/GetLookAndLikeStatisticsMessage",
  566. }
  567. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  568. return srv.(UserServer).GetLookAndLikeStatisticsMessage(ctx, req.(*common.PersonParam))
  569. }
  570. return interceptor(ctx, in, info, handler)
  571. }
  572. func _User_WxConf_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  573. in := new(common.WxConfReq)
  574. if err := dec(in); err != nil {
  575. return nil, err
  576. }
  577. if interceptor == nil {
  578. return srv.(UserServer).WxConf(ctx, in)
  579. }
  580. info := &grpc.UnaryServerInfo{
  581. Server: srv,
  582. FullMethod: "/api.user.User/WxConf",
  583. }
  584. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  585. return srv.(UserServer).WxConf(ctx, req.(*common.WxConfReq))
  586. }
  587. return interceptor(ctx, in, info, handler)
  588. }
  589. func _User_FindTagListBySex_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  590. in := new(common.SexReq)
  591. if err := dec(in); err != nil {
  592. return nil, err
  593. }
  594. if interceptor == nil {
  595. return srv.(UserServer).FindTagListBySex(ctx, in)
  596. }
  597. info := &grpc.UnaryServerInfo{
  598. Server: srv,
  599. FullMethod: "/api.user.User/FindTagListBySex",
  600. }
  601. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  602. return srv.(UserServer).FindTagListBySex(ctx, req.(*common.SexReq))
  603. }
  604. return interceptor(ctx, in, info, handler)
  605. }
  606. func _User_FindOnlineList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  607. in := new(common.ListPage2Request)
  608. if err := dec(in); err != nil {
  609. return nil, err
  610. }
  611. if interceptor == nil {
  612. return srv.(UserServer).FindOnlineList(ctx, in)
  613. }
  614. info := &grpc.UnaryServerInfo{
  615. Server: srv,
  616. FullMethod: "/api.user.User/FindOnlineList",
  617. }
  618. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  619. return srv.(UserServer).FindOnlineList(ctx, req.(*common.ListPage2Request))
  620. }
  621. return interceptor(ctx, in, info, handler)
  622. }
  623. // User_ServiceDesc is the grpc.ServiceDesc for User service.
  624. // It's only intended for direct use with grpc.RegisterService,
  625. // and not to be introspected or modified (even as a copy)
  626. var User_ServiceDesc = grpc.ServiceDesc{
  627. ServiceName: "api.user.User",
  628. HandlerType: (*UserServer)(nil),
  629. Methods: []grpc.MethodDesc{
  630. {
  631. MethodName: "UpdateUserInformation",
  632. Handler: _User_UpdateUserInformation_Handler,
  633. },
  634. {
  635. MethodName: "GetUserInfo",
  636. Handler: _User_GetUserInfo_Handler,
  637. },
  638. {
  639. MethodName: "GetUserDBMsg",
  640. Handler: _User_GetUserDBMsg_Handler,
  641. },
  642. {
  643. MethodName: "GetUserLookNum",
  644. Handler: _User_GetUserLookNum_Handler,
  645. },
  646. {
  647. MethodName: "SendPhoneCode",
  648. Handler: _User_SendPhoneCode_Handler,
  649. },
  650. {
  651. MethodName: "CheckPhoneCode",
  652. Handler: _User_CheckPhoneCode_Handler,
  653. },
  654. {
  655. MethodName: "CheckUserPartnerIsRelationship",
  656. Handler: _User_CheckUserPartnerIsRelationship_Handler,
  657. },
  658. {
  659. MethodName: "CreateUserPartnerRoom",
  660. Handler: _User_CreateUserPartnerRoom_Handler,
  661. },
  662. {
  663. MethodName: "GetPartnerCircleInfo",
  664. Handler: _User_GetPartnerCircleInfo_Handler,
  665. },
  666. {
  667. MethodName: "UserGetHomeInfo",
  668. Handler: _User_UserGetHomeInfo_Handler,
  669. },
  670. {
  671. MethodName: "FindUserDBList",
  672. Handler: _User_FindUserDBList_Handler,
  673. },
  674. {
  675. MethodName: "FindLookList",
  676. Handler: _User_FindLookList_Handler,
  677. },
  678. {
  679. MethodName: "FindLikeList",
  680. Handler: _User_FindLikeList_Handler,
  681. },
  682. {
  683. MethodName: "FindLikedList",
  684. Handler: _User_FindLikedList_Handler,
  685. },
  686. {
  687. MethodName: "GetLookAndLikeStatisticsMessage",
  688. Handler: _User_GetLookAndLikeStatisticsMessage_Handler,
  689. },
  690. {
  691. MethodName: "WxConf",
  692. Handler: _User_WxConf_Handler,
  693. },
  694. {
  695. MethodName: "FindTagListBySex",
  696. Handler: _User_FindTagListBySex_Handler,
  697. },
  698. {
  699. MethodName: "FindOnlineList",
  700. Handler: _User_FindOnlineList_Handler,
  701. },
  702. },
  703. Streams: []grpc.StreamDesc{},
  704. Metadata: "user.proto",
  705. }