user_grpc.pb.go 22 KB

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