user_grpc.pb.go 24 KB

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