user_grpc.pb.go 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867
  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. GetUserDBMsg(ctx context.Context, in *common.PersonIDParam, opts ...grpc.CallOption) (*common.PersonMsg, error)
  27. // 获取用户访问数详情
  28. GetUserLookNum(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*statistics.LookMessageReply, error)
  29. // 用户发送验证码
  30. SendPhoneCode(ctx context.Context, in *common.SendPhoneCodeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  31. // 用户验证验证码
  32. CheckPhoneCode(ctx context.Context, in *common.CheckPhoneCodeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  33. // 检查用户是否与接待员关联
  34. CheckUserPartnerIsRelationship(ctx context.Context, in *common.PartnerIDParam, opts ...grpc.CallOption) (*chat.CheckUserPartnerIsRelationshipReply, error)
  35. // 创建用户与接待员的关联
  36. CreateUserPartnerRoom(ctx context.Context, in *common.PartnerIDParam, opts ...grpc.CallOption) (*chat.RoomReply, error)
  37. // 获取接待员的确认通过页面信息
  38. GetPartnerCircleInfo(ctx context.Context, in *KeyRequest, opts ...grpc.CallOption) (*common.AddFriendMessageInfo, error)
  39. // 用户获取主页信息
  40. UserGetHomeInfo(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*common.HomeInfo, error)
  41. // 通过用户IDs查看用户信息列表
  42. FindUserDBList(ctx context.Context, in *common.PersonIDList, opts ...grpc.CallOption) (*common.PersonDBReply, error)
  43. // 查看看过我的列表
  44. FindLookList(ctx context.Context, in *common.ListPageRequest, opts ...grpc.CallOption) (*statistics.LookAndLikeListReply, error)
  45. // 查看我喜欢的列表
  46. FindLikeList(ctx context.Context, in *common.ListPageRequest, opts ...grpc.CallOption) (*statistics.LookAndLikeListReply, error)
  47. // 查看喜欢我的列表
  48. FindLikedList(ctx context.Context, in *common.ListPageRequest, opts ...grpc.CallOption) (*statistics.LookAndLikeListReply, error)
  49. // 获取用户的访客数以及关注数
  50. GetLookAndLikeStatisticsMessage(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*statistics.LookAndLikeMessageReply, error)
  51. // 微信SDK初始化
  52. WxConf(ctx context.Context, in *common.WxConfReq, opts ...grpc.CallOption) (*common.WxConfResponse, error)
  53. // 获取标签列表
  54. FindTagListBySex(ctx context.Context, in *common.SexReq, opts ...grpc.CallOption) (*common.TagListReply, error)
  55. // 获取标签列表
  56. FindOnlineList(ctx context.Context, in *common.ListPage2Request, opts ...grpc.CallOption) (*common.OnlinePersonListReply, error)
  57. // 七天内列表(当前会话)
  58. FindWithinSevenDayRoomList(ctx context.Context, in *common.ListPageRequest, opts ...grpc.CallOption) (*UserFindChatListReply, error)
  59. // 七天外列表(更早的聊天记录)
  60. FindOverSevenDayRoomList(ctx context.Context, in *common.ListPageRequest, opts ...grpc.CallOption) (*UserFindChatListReply, error)
  61. // 用户获取ta的主页访客、关注数
  62. UserGetPersonLikedAndLooked(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*common.LookedAndLikedNum, error)
  63. }
  64. type userClient struct {
  65. cc grpc.ClientConnInterface
  66. }
  67. func NewUserClient(cc grpc.ClientConnInterface) UserClient {
  68. return &userClient{cc}
  69. }
  70. func (c *userClient) UpdateUserInformation(ctx context.Context, in *common.UpdateInformationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  71. out := new(emptypb.Empty)
  72. err := c.cc.Invoke(ctx, "/api.user.User/UpdateUserInformation", in, out, opts...)
  73. if err != nil {
  74. return nil, err
  75. }
  76. return out, nil
  77. }
  78. func (c *userClient) GetUserInfo(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*UserInfo, error) {
  79. out := new(UserInfo)
  80. err := c.cc.Invoke(ctx, "/api.user.User/GetUserInfo", in, out, opts...)
  81. if err != nil {
  82. return nil, err
  83. }
  84. return out, nil
  85. }
  86. func (c *userClient) GetUserDBMsg(ctx context.Context, in *common.PersonIDParam, opts ...grpc.CallOption) (*common.PersonMsg, error) {
  87. out := new(common.PersonMsg)
  88. err := c.cc.Invoke(ctx, "/api.user.User/GetUserDBMsg", in, out, opts...)
  89. if err != nil {
  90. return nil, err
  91. }
  92. return out, nil
  93. }
  94. func (c *userClient) GetUserLookNum(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*statistics.LookMessageReply, error) {
  95. out := new(statistics.LookMessageReply)
  96. err := c.cc.Invoke(ctx, "/api.user.User/GetUserLookNum", in, out, opts...)
  97. if err != nil {
  98. return nil, err
  99. }
  100. return out, nil
  101. }
  102. func (c *userClient) SendPhoneCode(ctx context.Context, in *common.SendPhoneCodeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  103. out := new(emptypb.Empty)
  104. err := c.cc.Invoke(ctx, "/api.user.User/SendPhoneCode", in, out, opts...)
  105. if err != nil {
  106. return nil, err
  107. }
  108. return out, nil
  109. }
  110. func (c *userClient) CheckPhoneCode(ctx context.Context, in *common.CheckPhoneCodeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  111. out := new(emptypb.Empty)
  112. err := c.cc.Invoke(ctx, "/api.user.User/CheckPhoneCode", in, out, opts...)
  113. if err != nil {
  114. return nil, err
  115. }
  116. return out, nil
  117. }
  118. func (c *userClient) CheckUserPartnerIsRelationship(ctx context.Context, in *common.PartnerIDParam, opts ...grpc.CallOption) (*chat.CheckUserPartnerIsRelationshipReply, error) {
  119. out := new(chat.CheckUserPartnerIsRelationshipReply)
  120. err := c.cc.Invoke(ctx, "/api.user.User/CheckUserPartnerIsRelationship", in, out, opts...)
  121. if err != nil {
  122. return nil, err
  123. }
  124. return out, nil
  125. }
  126. func (c *userClient) CreateUserPartnerRoom(ctx context.Context, in *common.PartnerIDParam, opts ...grpc.CallOption) (*chat.RoomReply, error) {
  127. out := new(chat.RoomReply)
  128. err := c.cc.Invoke(ctx, "/api.user.User/CreateUserPartnerRoom", in, out, opts...)
  129. if err != nil {
  130. return nil, err
  131. }
  132. return out, nil
  133. }
  134. func (c *userClient) GetPartnerCircleInfo(ctx context.Context, in *KeyRequest, opts ...grpc.CallOption) (*common.AddFriendMessageInfo, error) {
  135. out := new(common.AddFriendMessageInfo)
  136. err := c.cc.Invoke(ctx, "/api.user.User/GetPartnerCircleInfo", in, out, opts...)
  137. if err != nil {
  138. return nil, err
  139. }
  140. return out, nil
  141. }
  142. func (c *userClient) UserGetHomeInfo(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*common.HomeInfo, error) {
  143. out := new(common.HomeInfo)
  144. err := c.cc.Invoke(ctx, "/api.user.User/UserGetHomeInfo", in, out, opts...)
  145. if err != nil {
  146. return nil, err
  147. }
  148. return out, nil
  149. }
  150. func (c *userClient) FindUserDBList(ctx context.Context, in *common.PersonIDList, opts ...grpc.CallOption) (*common.PersonDBReply, error) {
  151. out := new(common.PersonDBReply)
  152. err := c.cc.Invoke(ctx, "/api.user.User/FindUserDBList", in, out, opts...)
  153. if err != nil {
  154. return nil, err
  155. }
  156. return out, nil
  157. }
  158. func (c *userClient) FindLookList(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/FindLookList", in, out, opts...)
  161. if err != nil {
  162. return nil, err
  163. }
  164. return out, nil
  165. }
  166. func (c *userClient) FindLikeList(ctx context.Context, in *common.ListPageRequest, opts ...grpc.CallOption) (*statistics.LookAndLikeListReply, error) {
  167. out := new(statistics.LookAndLikeListReply)
  168. err := c.cc.Invoke(ctx, "/api.user.User/FindLikeList", in, out, opts...)
  169. if err != nil {
  170. return nil, err
  171. }
  172. return out, nil
  173. }
  174. func (c *userClient) FindLikedList(ctx context.Context, in *common.ListPageRequest, opts ...grpc.CallOption) (*statistics.LookAndLikeListReply, error) {
  175. out := new(statistics.LookAndLikeListReply)
  176. err := c.cc.Invoke(ctx, "/api.user.User/FindLikedList", in, out, opts...)
  177. if err != nil {
  178. return nil, err
  179. }
  180. return out, nil
  181. }
  182. func (c *userClient) GetLookAndLikeStatisticsMessage(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*statistics.LookAndLikeMessageReply, error) {
  183. out := new(statistics.LookAndLikeMessageReply)
  184. err := c.cc.Invoke(ctx, "/api.user.User/GetLookAndLikeStatisticsMessage", in, out, opts...)
  185. if err != nil {
  186. return nil, err
  187. }
  188. return out, nil
  189. }
  190. func (c *userClient) WxConf(ctx context.Context, in *common.WxConfReq, opts ...grpc.CallOption) (*common.WxConfResponse, error) {
  191. out := new(common.WxConfResponse)
  192. err := c.cc.Invoke(ctx, "/api.user.User/WxConf", in, out, opts...)
  193. if err != nil {
  194. return nil, err
  195. }
  196. return out, nil
  197. }
  198. func (c *userClient) FindTagListBySex(ctx context.Context, in *common.SexReq, opts ...grpc.CallOption) (*common.TagListReply, error) {
  199. out := new(common.TagListReply)
  200. err := c.cc.Invoke(ctx, "/api.user.User/FindTagListBySex", in, out, opts...)
  201. if err != nil {
  202. return nil, err
  203. }
  204. return out, nil
  205. }
  206. func (c *userClient) FindOnlineList(ctx context.Context, in *common.ListPage2Request, opts ...grpc.CallOption) (*common.OnlinePersonListReply, error) {
  207. out := new(common.OnlinePersonListReply)
  208. err := c.cc.Invoke(ctx, "/api.user.User/FindOnlineList", in, out, opts...)
  209. if err != nil {
  210. return nil, err
  211. }
  212. return out, nil
  213. }
  214. func (c *userClient) FindWithinSevenDayRoomList(ctx context.Context, in *common.ListPageRequest, opts ...grpc.CallOption) (*UserFindChatListReply, error) {
  215. out := new(UserFindChatListReply)
  216. err := c.cc.Invoke(ctx, "/api.user.User/FindWithinSevenDayRoomList", in, out, opts...)
  217. if err != nil {
  218. return nil, err
  219. }
  220. return out, nil
  221. }
  222. func (c *userClient) FindOverSevenDayRoomList(ctx context.Context, in *common.ListPageRequest, opts ...grpc.CallOption) (*UserFindChatListReply, error) {
  223. out := new(UserFindChatListReply)
  224. err := c.cc.Invoke(ctx, "/api.user.User/FindOverSevenDayRoomList", in, out, opts...)
  225. if err != nil {
  226. return nil, err
  227. }
  228. return out, nil
  229. }
  230. func (c *userClient) UserGetPersonLikedAndLooked(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*common.LookedAndLikedNum, error) {
  231. out := new(common.LookedAndLikedNum)
  232. err := c.cc.Invoke(ctx, "/api.user.User/UserGetPersonLikedAndLooked", in, out, opts...)
  233. if err != nil {
  234. return nil, err
  235. }
  236. return out, nil
  237. }
  238. // UserServer is the server API for User service.
  239. // All implementations must embed UnimplementedUserServer
  240. // for forward compatibility
  241. type UserServer interface {
  242. // 更新用户信息
  243. UpdateUserInformation(context.Context, *common.UpdateInformationRequest) (*emptypb.Empty, error)
  244. // 获取用户详情
  245. GetUserInfo(context.Context, *emptypb.Empty) (*UserInfo, error)
  246. // 获取用户详情
  247. GetUserDBMsg(context.Context, *common.PersonIDParam) (*common.PersonMsg, error)
  248. // 获取用户访问数详情
  249. GetUserLookNum(context.Context, *emptypb.Empty) (*statistics.LookMessageReply, error)
  250. // 用户发送验证码
  251. SendPhoneCode(context.Context, *common.SendPhoneCodeRequest) (*emptypb.Empty, error)
  252. // 用户验证验证码
  253. CheckPhoneCode(context.Context, *common.CheckPhoneCodeRequest) (*emptypb.Empty, error)
  254. // 检查用户是否与接待员关联
  255. CheckUserPartnerIsRelationship(context.Context, *common.PartnerIDParam) (*chat.CheckUserPartnerIsRelationshipReply, error)
  256. // 创建用户与接待员的关联
  257. CreateUserPartnerRoom(context.Context, *common.PartnerIDParam) (*chat.RoomReply, error)
  258. // 获取接待员的确认通过页面信息
  259. GetPartnerCircleInfo(context.Context, *KeyRequest) (*common.AddFriendMessageInfo, error)
  260. // 用户获取主页信息
  261. UserGetHomeInfo(context.Context, *common.PersonParam) (*common.HomeInfo, error)
  262. // 通过用户IDs查看用户信息列表
  263. FindUserDBList(context.Context, *common.PersonIDList) (*common.PersonDBReply, error)
  264. // 查看看过我的列表
  265. FindLookList(context.Context, *common.ListPageRequest) (*statistics.LookAndLikeListReply, error)
  266. // 查看我喜欢的列表
  267. FindLikeList(context.Context, *common.ListPageRequest) (*statistics.LookAndLikeListReply, error)
  268. // 查看喜欢我的列表
  269. FindLikedList(context.Context, *common.ListPageRequest) (*statistics.LookAndLikeListReply, error)
  270. // 获取用户的访客数以及关注数
  271. GetLookAndLikeStatisticsMessage(context.Context, *common.PersonParam) (*statistics.LookAndLikeMessageReply, error)
  272. // 微信SDK初始化
  273. WxConf(context.Context, *common.WxConfReq) (*common.WxConfResponse, error)
  274. // 获取标签列表
  275. FindTagListBySex(context.Context, *common.SexReq) (*common.TagListReply, error)
  276. // 获取标签列表
  277. FindOnlineList(context.Context, *common.ListPage2Request) (*common.OnlinePersonListReply, error)
  278. // 七天内列表(当前会话)
  279. FindWithinSevenDayRoomList(context.Context, *common.ListPageRequest) (*UserFindChatListReply, error)
  280. // 七天外列表(更早的聊天记录)
  281. FindOverSevenDayRoomList(context.Context, *common.ListPageRequest) (*UserFindChatListReply, error)
  282. // 用户获取ta的主页访客、关注数
  283. UserGetPersonLikedAndLooked(context.Context, *common.PersonParam) (*common.LookedAndLikedNum, error)
  284. mustEmbedUnimplementedUserServer()
  285. }
  286. // UnimplementedUserServer must be embedded to have forward compatible implementations.
  287. type UnimplementedUserServer struct {
  288. }
  289. func (UnimplementedUserServer) UpdateUserInformation(context.Context, *common.UpdateInformationRequest) (*emptypb.Empty, error) {
  290. return nil, status.Errorf(codes.Unimplemented, "method UpdateUserInformation not implemented")
  291. }
  292. func (UnimplementedUserServer) GetUserInfo(context.Context, *emptypb.Empty) (*UserInfo, error) {
  293. return nil, status.Errorf(codes.Unimplemented, "method GetUserInfo not implemented")
  294. }
  295. func (UnimplementedUserServer) GetUserDBMsg(context.Context, *common.PersonIDParam) (*common.PersonMsg, error) {
  296. return nil, status.Errorf(codes.Unimplemented, "method GetUserDBMsg not implemented")
  297. }
  298. func (UnimplementedUserServer) GetUserLookNum(context.Context, *emptypb.Empty) (*statistics.LookMessageReply, error) {
  299. return nil, status.Errorf(codes.Unimplemented, "method GetUserLookNum not implemented")
  300. }
  301. func (UnimplementedUserServer) SendPhoneCode(context.Context, *common.SendPhoneCodeRequest) (*emptypb.Empty, error) {
  302. return nil, status.Errorf(codes.Unimplemented, "method SendPhoneCode not implemented")
  303. }
  304. func (UnimplementedUserServer) CheckPhoneCode(context.Context, *common.CheckPhoneCodeRequest) (*emptypb.Empty, error) {
  305. return nil, status.Errorf(codes.Unimplemented, "method CheckPhoneCode not implemented")
  306. }
  307. func (UnimplementedUserServer) CheckUserPartnerIsRelationship(context.Context, *common.PartnerIDParam) (*chat.CheckUserPartnerIsRelationshipReply, error) {
  308. return nil, status.Errorf(codes.Unimplemented, "method CheckUserPartnerIsRelationship not implemented")
  309. }
  310. func (UnimplementedUserServer) CreateUserPartnerRoom(context.Context, *common.PartnerIDParam) (*chat.RoomReply, error) {
  311. return nil, status.Errorf(codes.Unimplemented, "method CreateUserPartnerRoom not implemented")
  312. }
  313. func (UnimplementedUserServer) GetPartnerCircleInfo(context.Context, *KeyRequest) (*common.AddFriendMessageInfo, error) {
  314. return nil, status.Errorf(codes.Unimplemented, "method GetPartnerCircleInfo not implemented")
  315. }
  316. func (UnimplementedUserServer) UserGetHomeInfo(context.Context, *common.PersonParam) (*common.HomeInfo, error) {
  317. return nil, status.Errorf(codes.Unimplemented, "method UserGetHomeInfo not implemented")
  318. }
  319. func (UnimplementedUserServer) FindUserDBList(context.Context, *common.PersonIDList) (*common.PersonDBReply, error) {
  320. return nil, status.Errorf(codes.Unimplemented, "method FindUserDBList not implemented")
  321. }
  322. func (UnimplementedUserServer) FindLookList(context.Context, *common.ListPageRequest) (*statistics.LookAndLikeListReply, error) {
  323. return nil, status.Errorf(codes.Unimplemented, "method FindLookList not implemented")
  324. }
  325. func (UnimplementedUserServer) FindLikeList(context.Context, *common.ListPageRequest) (*statistics.LookAndLikeListReply, error) {
  326. return nil, status.Errorf(codes.Unimplemented, "method FindLikeList not implemented")
  327. }
  328. func (UnimplementedUserServer) FindLikedList(context.Context, *common.ListPageRequest) (*statistics.LookAndLikeListReply, error) {
  329. return nil, status.Errorf(codes.Unimplemented, "method FindLikedList not implemented")
  330. }
  331. func (UnimplementedUserServer) GetLookAndLikeStatisticsMessage(context.Context, *common.PersonParam) (*statistics.LookAndLikeMessageReply, error) {
  332. return nil, status.Errorf(codes.Unimplemented, "method GetLookAndLikeStatisticsMessage not implemented")
  333. }
  334. func (UnimplementedUserServer) WxConf(context.Context, *common.WxConfReq) (*common.WxConfResponse, error) {
  335. return nil, status.Errorf(codes.Unimplemented, "method WxConf not implemented")
  336. }
  337. func (UnimplementedUserServer) FindTagListBySex(context.Context, *common.SexReq) (*common.TagListReply, error) {
  338. return nil, status.Errorf(codes.Unimplemented, "method FindTagListBySex not implemented")
  339. }
  340. func (UnimplementedUserServer) FindOnlineList(context.Context, *common.ListPage2Request) (*common.OnlinePersonListReply, error) {
  341. return nil, status.Errorf(codes.Unimplemented, "method FindOnlineList not implemented")
  342. }
  343. func (UnimplementedUserServer) FindWithinSevenDayRoomList(context.Context, *common.ListPageRequest) (*UserFindChatListReply, error) {
  344. return nil, status.Errorf(codes.Unimplemented, "method FindWithinSevenDayRoomList not implemented")
  345. }
  346. func (UnimplementedUserServer) FindOverSevenDayRoomList(context.Context, *common.ListPageRequest) (*UserFindChatListReply, error) {
  347. return nil, status.Errorf(codes.Unimplemented, "method FindOverSevenDayRoomList not implemented")
  348. }
  349. func (UnimplementedUserServer) UserGetPersonLikedAndLooked(context.Context, *common.PersonParam) (*common.LookedAndLikedNum, error) {
  350. return nil, status.Errorf(codes.Unimplemented, "method UserGetPersonLikedAndLooked not implemented")
  351. }
  352. func (UnimplementedUserServer) mustEmbedUnimplementedUserServer() {}
  353. // UnsafeUserServer may be embedded to opt out of forward compatibility for this service.
  354. // Use of this interface is not recommended, as added methods to UserServer will
  355. // result in compilation errors.
  356. type UnsafeUserServer interface {
  357. mustEmbedUnimplementedUserServer()
  358. }
  359. func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer) {
  360. s.RegisterService(&User_ServiceDesc, srv)
  361. }
  362. func _User_UpdateUserInformation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  363. in := new(common.UpdateInformationRequest)
  364. if err := dec(in); err != nil {
  365. return nil, err
  366. }
  367. if interceptor == nil {
  368. return srv.(UserServer).UpdateUserInformation(ctx, in)
  369. }
  370. info := &grpc.UnaryServerInfo{
  371. Server: srv,
  372. FullMethod: "/api.user.User/UpdateUserInformation",
  373. }
  374. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  375. return srv.(UserServer).UpdateUserInformation(ctx, req.(*common.UpdateInformationRequest))
  376. }
  377. return interceptor(ctx, in, info, handler)
  378. }
  379. func _User_GetUserInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  380. in := new(emptypb.Empty)
  381. if err := dec(in); err != nil {
  382. return nil, err
  383. }
  384. if interceptor == nil {
  385. return srv.(UserServer).GetUserInfo(ctx, in)
  386. }
  387. info := &grpc.UnaryServerInfo{
  388. Server: srv,
  389. FullMethod: "/api.user.User/GetUserInfo",
  390. }
  391. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  392. return srv.(UserServer).GetUserInfo(ctx, req.(*emptypb.Empty))
  393. }
  394. return interceptor(ctx, in, info, handler)
  395. }
  396. func _User_GetUserDBMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  397. in := new(common.PersonIDParam)
  398. if err := dec(in); err != nil {
  399. return nil, err
  400. }
  401. if interceptor == nil {
  402. return srv.(UserServer).GetUserDBMsg(ctx, in)
  403. }
  404. info := &grpc.UnaryServerInfo{
  405. Server: srv,
  406. FullMethod: "/api.user.User/GetUserDBMsg",
  407. }
  408. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  409. return srv.(UserServer).GetUserDBMsg(ctx, req.(*common.PersonIDParam))
  410. }
  411. return interceptor(ctx, in, info, handler)
  412. }
  413. func _User_GetUserLookNum_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  414. in := new(emptypb.Empty)
  415. if err := dec(in); err != nil {
  416. return nil, err
  417. }
  418. if interceptor == nil {
  419. return srv.(UserServer).GetUserLookNum(ctx, in)
  420. }
  421. info := &grpc.UnaryServerInfo{
  422. Server: srv,
  423. FullMethod: "/api.user.User/GetUserLookNum",
  424. }
  425. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  426. return srv.(UserServer).GetUserLookNum(ctx, req.(*emptypb.Empty))
  427. }
  428. return interceptor(ctx, in, info, handler)
  429. }
  430. func _User_SendPhoneCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  431. in := new(common.SendPhoneCodeRequest)
  432. if err := dec(in); err != nil {
  433. return nil, err
  434. }
  435. if interceptor == nil {
  436. return srv.(UserServer).SendPhoneCode(ctx, in)
  437. }
  438. info := &grpc.UnaryServerInfo{
  439. Server: srv,
  440. FullMethod: "/api.user.User/SendPhoneCode",
  441. }
  442. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  443. return srv.(UserServer).SendPhoneCode(ctx, req.(*common.SendPhoneCodeRequest))
  444. }
  445. return interceptor(ctx, in, info, handler)
  446. }
  447. func _User_CheckPhoneCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  448. in := new(common.CheckPhoneCodeRequest)
  449. if err := dec(in); err != nil {
  450. return nil, err
  451. }
  452. if interceptor == nil {
  453. return srv.(UserServer).CheckPhoneCode(ctx, in)
  454. }
  455. info := &grpc.UnaryServerInfo{
  456. Server: srv,
  457. FullMethod: "/api.user.User/CheckPhoneCode",
  458. }
  459. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  460. return srv.(UserServer).CheckPhoneCode(ctx, req.(*common.CheckPhoneCodeRequest))
  461. }
  462. return interceptor(ctx, in, info, handler)
  463. }
  464. func _User_CheckUserPartnerIsRelationship_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  465. in := new(common.PartnerIDParam)
  466. if err := dec(in); err != nil {
  467. return nil, err
  468. }
  469. if interceptor == nil {
  470. return srv.(UserServer).CheckUserPartnerIsRelationship(ctx, in)
  471. }
  472. info := &grpc.UnaryServerInfo{
  473. Server: srv,
  474. FullMethod: "/api.user.User/CheckUserPartnerIsRelationship",
  475. }
  476. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  477. return srv.(UserServer).CheckUserPartnerIsRelationship(ctx, req.(*common.PartnerIDParam))
  478. }
  479. return interceptor(ctx, in, info, handler)
  480. }
  481. func _User_CreateUserPartnerRoom_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  482. in := new(common.PartnerIDParam)
  483. if err := dec(in); err != nil {
  484. return nil, err
  485. }
  486. if interceptor == nil {
  487. return srv.(UserServer).CreateUserPartnerRoom(ctx, in)
  488. }
  489. info := &grpc.UnaryServerInfo{
  490. Server: srv,
  491. FullMethod: "/api.user.User/CreateUserPartnerRoom",
  492. }
  493. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  494. return srv.(UserServer).CreateUserPartnerRoom(ctx, req.(*common.PartnerIDParam))
  495. }
  496. return interceptor(ctx, in, info, handler)
  497. }
  498. func _User_GetPartnerCircleInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  499. in := new(KeyRequest)
  500. if err := dec(in); err != nil {
  501. return nil, err
  502. }
  503. if interceptor == nil {
  504. return srv.(UserServer).GetPartnerCircleInfo(ctx, in)
  505. }
  506. info := &grpc.UnaryServerInfo{
  507. Server: srv,
  508. FullMethod: "/api.user.User/GetPartnerCircleInfo",
  509. }
  510. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  511. return srv.(UserServer).GetPartnerCircleInfo(ctx, req.(*KeyRequest))
  512. }
  513. return interceptor(ctx, in, info, handler)
  514. }
  515. func _User_UserGetHomeInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  516. in := new(common.PersonParam)
  517. if err := dec(in); err != nil {
  518. return nil, err
  519. }
  520. if interceptor == nil {
  521. return srv.(UserServer).UserGetHomeInfo(ctx, in)
  522. }
  523. info := &grpc.UnaryServerInfo{
  524. Server: srv,
  525. FullMethod: "/api.user.User/UserGetHomeInfo",
  526. }
  527. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  528. return srv.(UserServer).UserGetHomeInfo(ctx, req.(*common.PersonParam))
  529. }
  530. return interceptor(ctx, in, info, handler)
  531. }
  532. func _User_FindUserDBList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  533. in := new(common.PersonIDList)
  534. if err := dec(in); err != nil {
  535. return nil, err
  536. }
  537. if interceptor == nil {
  538. return srv.(UserServer).FindUserDBList(ctx, in)
  539. }
  540. info := &grpc.UnaryServerInfo{
  541. Server: srv,
  542. FullMethod: "/api.user.User/FindUserDBList",
  543. }
  544. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  545. return srv.(UserServer).FindUserDBList(ctx, req.(*common.PersonIDList))
  546. }
  547. return interceptor(ctx, in, info, handler)
  548. }
  549. func _User_FindLookList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  550. in := new(common.ListPageRequest)
  551. if err := dec(in); err != nil {
  552. return nil, err
  553. }
  554. if interceptor == nil {
  555. return srv.(UserServer).FindLookList(ctx, in)
  556. }
  557. info := &grpc.UnaryServerInfo{
  558. Server: srv,
  559. FullMethod: "/api.user.User/FindLookList",
  560. }
  561. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  562. return srv.(UserServer).FindLookList(ctx, req.(*common.ListPageRequest))
  563. }
  564. return interceptor(ctx, in, info, handler)
  565. }
  566. func _User_FindLikeList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  567. in := new(common.ListPageRequest)
  568. if err := dec(in); err != nil {
  569. return nil, err
  570. }
  571. if interceptor == nil {
  572. return srv.(UserServer).FindLikeList(ctx, in)
  573. }
  574. info := &grpc.UnaryServerInfo{
  575. Server: srv,
  576. FullMethod: "/api.user.User/FindLikeList",
  577. }
  578. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  579. return srv.(UserServer).FindLikeList(ctx, req.(*common.ListPageRequest))
  580. }
  581. return interceptor(ctx, in, info, handler)
  582. }
  583. func _User_FindLikedList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  584. in := new(common.ListPageRequest)
  585. if err := dec(in); err != nil {
  586. return nil, err
  587. }
  588. if interceptor == nil {
  589. return srv.(UserServer).FindLikedList(ctx, in)
  590. }
  591. info := &grpc.UnaryServerInfo{
  592. Server: srv,
  593. FullMethod: "/api.user.User/FindLikedList",
  594. }
  595. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  596. return srv.(UserServer).FindLikedList(ctx, req.(*common.ListPageRequest))
  597. }
  598. return interceptor(ctx, in, info, handler)
  599. }
  600. func _User_GetLookAndLikeStatisticsMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  601. in := new(common.PersonParam)
  602. if err := dec(in); err != nil {
  603. return nil, err
  604. }
  605. if interceptor == nil {
  606. return srv.(UserServer).GetLookAndLikeStatisticsMessage(ctx, in)
  607. }
  608. info := &grpc.UnaryServerInfo{
  609. Server: srv,
  610. FullMethod: "/api.user.User/GetLookAndLikeStatisticsMessage",
  611. }
  612. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  613. return srv.(UserServer).GetLookAndLikeStatisticsMessage(ctx, req.(*common.PersonParam))
  614. }
  615. return interceptor(ctx, in, info, handler)
  616. }
  617. func _User_WxConf_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  618. in := new(common.WxConfReq)
  619. if err := dec(in); err != nil {
  620. return nil, err
  621. }
  622. if interceptor == nil {
  623. return srv.(UserServer).WxConf(ctx, in)
  624. }
  625. info := &grpc.UnaryServerInfo{
  626. Server: srv,
  627. FullMethod: "/api.user.User/WxConf",
  628. }
  629. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  630. return srv.(UserServer).WxConf(ctx, req.(*common.WxConfReq))
  631. }
  632. return interceptor(ctx, in, info, handler)
  633. }
  634. func _User_FindTagListBySex_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  635. in := new(common.SexReq)
  636. if err := dec(in); err != nil {
  637. return nil, err
  638. }
  639. if interceptor == nil {
  640. return srv.(UserServer).FindTagListBySex(ctx, in)
  641. }
  642. info := &grpc.UnaryServerInfo{
  643. Server: srv,
  644. FullMethod: "/api.user.User/FindTagListBySex",
  645. }
  646. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  647. return srv.(UserServer).FindTagListBySex(ctx, req.(*common.SexReq))
  648. }
  649. return interceptor(ctx, in, info, handler)
  650. }
  651. func _User_FindOnlineList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  652. in := new(common.ListPage2Request)
  653. if err := dec(in); err != nil {
  654. return nil, err
  655. }
  656. if interceptor == nil {
  657. return srv.(UserServer).FindOnlineList(ctx, in)
  658. }
  659. info := &grpc.UnaryServerInfo{
  660. Server: srv,
  661. FullMethod: "/api.user.User/FindOnlineList",
  662. }
  663. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  664. return srv.(UserServer).FindOnlineList(ctx, req.(*common.ListPage2Request))
  665. }
  666. return interceptor(ctx, in, info, handler)
  667. }
  668. func _User_FindWithinSevenDayRoomList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  669. in := new(common.ListPageRequest)
  670. if err := dec(in); err != nil {
  671. return nil, err
  672. }
  673. if interceptor == nil {
  674. return srv.(UserServer).FindWithinSevenDayRoomList(ctx, in)
  675. }
  676. info := &grpc.UnaryServerInfo{
  677. Server: srv,
  678. FullMethod: "/api.user.User/FindWithinSevenDayRoomList",
  679. }
  680. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  681. return srv.(UserServer).FindWithinSevenDayRoomList(ctx, req.(*common.ListPageRequest))
  682. }
  683. return interceptor(ctx, in, info, handler)
  684. }
  685. func _User_FindOverSevenDayRoomList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  686. in := new(common.ListPageRequest)
  687. if err := dec(in); err != nil {
  688. return nil, err
  689. }
  690. if interceptor == nil {
  691. return srv.(UserServer).FindOverSevenDayRoomList(ctx, in)
  692. }
  693. info := &grpc.UnaryServerInfo{
  694. Server: srv,
  695. FullMethod: "/api.user.User/FindOverSevenDayRoomList",
  696. }
  697. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  698. return srv.(UserServer).FindOverSevenDayRoomList(ctx, req.(*common.ListPageRequest))
  699. }
  700. return interceptor(ctx, in, info, handler)
  701. }
  702. func _User_UserGetPersonLikedAndLooked_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  703. in := new(common.PersonParam)
  704. if err := dec(in); err != nil {
  705. return nil, err
  706. }
  707. if interceptor == nil {
  708. return srv.(UserServer).UserGetPersonLikedAndLooked(ctx, in)
  709. }
  710. info := &grpc.UnaryServerInfo{
  711. Server: srv,
  712. FullMethod: "/api.user.User/UserGetPersonLikedAndLooked",
  713. }
  714. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  715. return srv.(UserServer).UserGetPersonLikedAndLooked(ctx, req.(*common.PersonParam))
  716. }
  717. return interceptor(ctx, in, info, handler)
  718. }
  719. // User_ServiceDesc is the grpc.ServiceDesc for User service.
  720. // It's only intended for direct use with grpc.RegisterService,
  721. // and not to be introspected or modified (even as a copy)
  722. var User_ServiceDesc = grpc.ServiceDesc{
  723. ServiceName: "api.user.User",
  724. HandlerType: (*UserServer)(nil),
  725. Methods: []grpc.MethodDesc{
  726. {
  727. MethodName: "UpdateUserInformation",
  728. Handler: _User_UpdateUserInformation_Handler,
  729. },
  730. {
  731. MethodName: "GetUserInfo",
  732. Handler: _User_GetUserInfo_Handler,
  733. },
  734. {
  735. MethodName: "GetUserDBMsg",
  736. Handler: _User_GetUserDBMsg_Handler,
  737. },
  738. {
  739. MethodName: "GetUserLookNum",
  740. Handler: _User_GetUserLookNum_Handler,
  741. },
  742. {
  743. MethodName: "SendPhoneCode",
  744. Handler: _User_SendPhoneCode_Handler,
  745. },
  746. {
  747. MethodName: "CheckPhoneCode",
  748. Handler: _User_CheckPhoneCode_Handler,
  749. },
  750. {
  751. MethodName: "CheckUserPartnerIsRelationship",
  752. Handler: _User_CheckUserPartnerIsRelationship_Handler,
  753. },
  754. {
  755. MethodName: "CreateUserPartnerRoom",
  756. Handler: _User_CreateUserPartnerRoom_Handler,
  757. },
  758. {
  759. MethodName: "GetPartnerCircleInfo",
  760. Handler: _User_GetPartnerCircleInfo_Handler,
  761. },
  762. {
  763. MethodName: "UserGetHomeInfo",
  764. Handler: _User_UserGetHomeInfo_Handler,
  765. },
  766. {
  767. MethodName: "FindUserDBList",
  768. Handler: _User_FindUserDBList_Handler,
  769. },
  770. {
  771. MethodName: "FindLookList",
  772. Handler: _User_FindLookList_Handler,
  773. },
  774. {
  775. MethodName: "FindLikeList",
  776. Handler: _User_FindLikeList_Handler,
  777. },
  778. {
  779. MethodName: "FindLikedList",
  780. Handler: _User_FindLikedList_Handler,
  781. },
  782. {
  783. MethodName: "GetLookAndLikeStatisticsMessage",
  784. Handler: _User_GetLookAndLikeStatisticsMessage_Handler,
  785. },
  786. {
  787. MethodName: "WxConf",
  788. Handler: _User_WxConf_Handler,
  789. },
  790. {
  791. MethodName: "FindTagListBySex",
  792. Handler: _User_FindTagListBySex_Handler,
  793. },
  794. {
  795. MethodName: "FindOnlineList",
  796. Handler: _User_FindOnlineList_Handler,
  797. },
  798. {
  799. MethodName: "FindWithinSevenDayRoomList",
  800. Handler: _User_FindWithinSevenDayRoomList_Handler,
  801. },
  802. {
  803. MethodName: "FindOverSevenDayRoomList",
  804. Handler: _User_FindOverSevenDayRoomList_Handler,
  805. },
  806. {
  807. MethodName: "UserGetPersonLikedAndLooked",
  808. Handler: _User_UserGetPersonLikedAndLooked_Handler,
  809. },
  810. },
  811. Streams: []grpc.StreamDesc{},
  812. Metadata: "user.proto",
  813. }