user_grpc.pb.go 28 KB

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