user_grpc.pb.go 25 KB

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