user_grpc.pb.go 21 KB

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