user_grpc.pb.go 27 KB

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