user_grpc.pb.go 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095
  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. 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. CreateUserPersonRoom(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*chat.RoomReply, 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 *emptypb.Empty, 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.ListPage2Request, opts ...grpc.CallOption) (*common.OnlinePersonListReply, error)
  55. // 七天内列表(当前会话)
  56. FindWithinSevenDayRoomList(ctx context.Context, in *common.ListPageRequest, opts ...grpc.CallOption) (*UserFindChatListReply, error)
  57. // 七天外列表(更早的聊天记录)
  58. FindOverSevenDayRoomList(ctx context.Context, in *common.ListPageRequest, opts ...grpc.CallOption) (*UserFindChatListReply, error)
  59. // 用户获取ta的主页访客、关注数
  60. UserGetPersonLikedAndLooked(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*common.LookedAndLikedNum, error)
  61. // 获取用户的金额信息
  62. GetUserBalance(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*UserBalance, error)
  63. // 获取用户访问数详情
  64. GetUserLookNum(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*statistics.LookMessageReply, error)
  65. // 用户查询聊天记录
  66. FindChatRecordList(ctx context.Context, in *common.FindChatRecordListRequest, opts ...grpc.CallOption) (*common.ChatRecordListReply, error)
  67. // 用户查询房间信息
  68. FindChatRoomMsg(ctx context.Context, in *common.FindChatRoomMsgRequest, opts ...grpc.CallOption) (*common.ChatRoomMsg, error)
  69. // 用户完善资料
  70. UserFinishInformation(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
  71. // 用户完善情况
  72. UserInformationStatus(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*InformationStatus, error)
  73. // 用户获取完善资料奖励
  74. UserGetInformationAward(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
  75. }
  76. type userClient struct {
  77. cc grpc.ClientConnInterface
  78. }
  79. func NewUserClient(cc grpc.ClientConnInterface) UserClient {
  80. return &userClient{cc}
  81. }
  82. func (c *userClient) UpdateUserInformation(ctx context.Context, in *common.UpdateInformationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  83. out := new(emptypb.Empty)
  84. err := c.cc.Invoke(ctx, "/api.user.User/UpdateUserInformation", in, out, opts...)
  85. if err != nil {
  86. return nil, err
  87. }
  88. return out, nil
  89. }
  90. func (c *userClient) GetUserInfo(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*UserInfo, error) {
  91. out := new(UserInfo)
  92. err := c.cc.Invoke(ctx, "/api.user.User/GetUserInfo", in, out, opts...)
  93. if err != nil {
  94. return nil, err
  95. }
  96. return out, nil
  97. }
  98. func (c *userClient) GetUserDBMsg(ctx context.Context, in *common.PersonIDParam, opts ...grpc.CallOption) (*common.PersonMsg, error) {
  99. out := new(common.PersonMsg)
  100. err := c.cc.Invoke(ctx, "/api.user.User/GetUserDBMsg", in, out, opts...)
  101. if err != nil {
  102. return nil, err
  103. }
  104. return out, nil
  105. }
  106. func (c *userClient) SendPhoneCode(ctx context.Context, in *common.SendPhoneCodeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  107. out := new(emptypb.Empty)
  108. err := c.cc.Invoke(ctx, "/api.user.User/SendPhoneCode", in, out, opts...)
  109. if err != nil {
  110. return nil, err
  111. }
  112. return out, nil
  113. }
  114. func (c *userClient) CheckPhoneCode(ctx context.Context, in *common.CheckPhoneCodeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  115. out := new(emptypb.Empty)
  116. err := c.cc.Invoke(ctx, "/api.user.User/CheckPhoneCode", in, out, opts...)
  117. if err != nil {
  118. return nil, err
  119. }
  120. return out, nil
  121. }
  122. func (c *userClient) CheckUserPartnerIsRelationship(ctx context.Context, in *common.PartnerIDParam, opts ...grpc.CallOption) (*chat.CheckUserPartnerIsRelationshipReply, error) {
  123. out := new(chat.CheckUserPartnerIsRelationshipReply)
  124. err := c.cc.Invoke(ctx, "/api.user.User/CheckUserPartnerIsRelationship", in, out, opts...)
  125. if err != nil {
  126. return nil, err
  127. }
  128. return out, nil
  129. }
  130. func (c *userClient) CreateUserPersonRoom(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*chat.RoomReply, error) {
  131. out := new(chat.RoomReply)
  132. err := c.cc.Invoke(ctx, "/api.user.User/CreateUserPersonRoom", in, out, opts...)
  133. if err != nil {
  134. return nil, err
  135. }
  136. return out, nil
  137. }
  138. func (c *userClient) GetPartnerCircleInfo(ctx context.Context, in *KeyRequest, opts ...grpc.CallOption) (*common.AddFriendMessageInfo, error) {
  139. out := new(common.AddFriendMessageInfo)
  140. err := c.cc.Invoke(ctx, "/api.user.User/GetPartnerCircleInfo", in, out, opts...)
  141. if err != nil {
  142. return nil, err
  143. }
  144. return out, nil
  145. }
  146. func (c *userClient) UserGetHomeInfo(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*common.HomeInfo, error) {
  147. out := new(common.HomeInfo)
  148. err := c.cc.Invoke(ctx, "/api.user.User/UserGetHomeInfo", in, out, opts...)
  149. if err != nil {
  150. return nil, err
  151. }
  152. return out, nil
  153. }
  154. func (c *userClient) FindUserDBList(ctx context.Context, in *common.PersonIDList, opts ...grpc.CallOption) (*common.PersonDBReply, error) {
  155. out := new(common.PersonDBReply)
  156. err := c.cc.Invoke(ctx, "/api.user.User/FindUserDBList", in, out, opts...)
  157. if err != nil {
  158. return nil, err
  159. }
  160. return out, nil
  161. }
  162. func (c *userClient) FindLookList(ctx context.Context, in *common.ListPageRequest, opts ...grpc.CallOption) (*statistics.LookAndLikeListReply, error) {
  163. out := new(statistics.LookAndLikeListReply)
  164. err := c.cc.Invoke(ctx, "/api.user.User/FindLookList", in, out, opts...)
  165. if err != nil {
  166. return nil, err
  167. }
  168. return out, nil
  169. }
  170. func (c *userClient) FindLikeList(ctx context.Context, in *common.ListPageRequest, opts ...grpc.CallOption) (*statistics.LookAndLikeListReply, error) {
  171. out := new(statistics.LookAndLikeListReply)
  172. err := c.cc.Invoke(ctx, "/api.user.User/FindLikeList", in, out, opts...)
  173. if err != nil {
  174. return nil, err
  175. }
  176. return out, nil
  177. }
  178. func (c *userClient) FindLikedList(ctx context.Context, in *common.ListPageRequest, opts ...grpc.CallOption) (*statistics.LookAndLikeListReply, error) {
  179. out := new(statistics.LookAndLikeListReply)
  180. err := c.cc.Invoke(ctx, "/api.user.User/FindLikedList", in, out, opts...)
  181. if err != nil {
  182. return nil, err
  183. }
  184. return out, nil
  185. }
  186. func (c *userClient) GetLookAndLikeStatisticsMessage(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*statistics.LookAndLikeMessageReply, error) {
  187. out := new(statistics.LookAndLikeMessageReply)
  188. err := c.cc.Invoke(ctx, "/api.user.User/GetLookAndLikeStatisticsMessage", in, out, opts...)
  189. if err != nil {
  190. return nil, err
  191. }
  192. return out, nil
  193. }
  194. func (c *userClient) WxConf(ctx context.Context, in *common.WxConfReq, opts ...grpc.CallOption) (*common.WxConfResponse, error) {
  195. out := new(common.WxConfResponse)
  196. err := c.cc.Invoke(ctx, "/api.user.User/WxConf", in, out, opts...)
  197. if err != nil {
  198. return nil, err
  199. }
  200. return out, nil
  201. }
  202. func (c *userClient) FindTagListBySex(ctx context.Context, in *common.SexReq, opts ...grpc.CallOption) (*common.TagListReply, error) {
  203. out := new(common.TagListReply)
  204. err := c.cc.Invoke(ctx, "/api.user.User/FindTagListBySex", in, out, opts...)
  205. if err != nil {
  206. return nil, err
  207. }
  208. return out, nil
  209. }
  210. func (c *userClient) FindOnlineList(ctx context.Context, in *common.ListPage2Request, opts ...grpc.CallOption) (*common.OnlinePersonListReply, error) {
  211. out := new(common.OnlinePersonListReply)
  212. err := c.cc.Invoke(ctx, "/api.user.User/FindOnlineList", in, out, opts...)
  213. if err != nil {
  214. return nil, err
  215. }
  216. return out, nil
  217. }
  218. func (c *userClient) FindWithinSevenDayRoomList(ctx context.Context, in *common.ListPageRequest, opts ...grpc.CallOption) (*UserFindChatListReply, error) {
  219. out := new(UserFindChatListReply)
  220. err := c.cc.Invoke(ctx, "/api.user.User/FindWithinSevenDayRoomList", in, out, opts...)
  221. if err != nil {
  222. return nil, err
  223. }
  224. return out, nil
  225. }
  226. func (c *userClient) FindOverSevenDayRoomList(ctx context.Context, in *common.ListPageRequest, opts ...grpc.CallOption) (*UserFindChatListReply, error) {
  227. out := new(UserFindChatListReply)
  228. err := c.cc.Invoke(ctx, "/api.user.User/FindOverSevenDayRoomList", in, out, opts...)
  229. if err != nil {
  230. return nil, err
  231. }
  232. return out, nil
  233. }
  234. func (c *userClient) UserGetPersonLikedAndLooked(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*common.LookedAndLikedNum, error) {
  235. out := new(common.LookedAndLikedNum)
  236. err := c.cc.Invoke(ctx, "/api.user.User/UserGetPersonLikedAndLooked", in, out, opts...)
  237. if err != nil {
  238. return nil, err
  239. }
  240. return out, nil
  241. }
  242. func (c *userClient) GetUserBalance(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*UserBalance, error) {
  243. out := new(UserBalance)
  244. err := c.cc.Invoke(ctx, "/api.user.User/GetUserBalance", in, out, opts...)
  245. if err != nil {
  246. return nil, err
  247. }
  248. return out, nil
  249. }
  250. func (c *userClient) GetUserLookNum(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*statistics.LookMessageReply, error) {
  251. out := new(statistics.LookMessageReply)
  252. err := c.cc.Invoke(ctx, "/api.user.User/GetUserLookNum", in, out, opts...)
  253. if err != nil {
  254. return nil, err
  255. }
  256. return out, nil
  257. }
  258. func (c *userClient) FindChatRecordList(ctx context.Context, in *common.FindChatRecordListRequest, opts ...grpc.CallOption) (*common.ChatRecordListReply, error) {
  259. out := new(common.ChatRecordListReply)
  260. err := c.cc.Invoke(ctx, "/api.user.User/FindChatRecordList", in, out, opts...)
  261. if err != nil {
  262. return nil, err
  263. }
  264. return out, nil
  265. }
  266. func (c *userClient) FindChatRoomMsg(ctx context.Context, in *common.FindChatRoomMsgRequest, opts ...grpc.CallOption) (*common.ChatRoomMsg, error) {
  267. out := new(common.ChatRoomMsg)
  268. err := c.cc.Invoke(ctx, "/api.user.User/FindChatRoomMsg", in, out, opts...)
  269. if err != nil {
  270. return nil, err
  271. }
  272. return out, nil
  273. }
  274. func (c *userClient) UserFinishInformation(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  275. out := new(emptypb.Empty)
  276. err := c.cc.Invoke(ctx, "/api.user.User/UserFinishInformation", in, out, opts...)
  277. if err != nil {
  278. return nil, err
  279. }
  280. return out, nil
  281. }
  282. func (c *userClient) UserInformationStatus(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*InformationStatus, error) {
  283. out := new(InformationStatus)
  284. err := c.cc.Invoke(ctx, "/api.user.User/UserInformationStatus", in, out, opts...)
  285. if err != nil {
  286. return nil, err
  287. }
  288. return out, nil
  289. }
  290. func (c *userClient) UserGetInformationAward(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  291. out := new(emptypb.Empty)
  292. err := c.cc.Invoke(ctx, "/api.user.User/UserGetInformationAward", in, out, opts...)
  293. if err != nil {
  294. return nil, err
  295. }
  296. return out, nil
  297. }
  298. // UserServer is the server API for User service.
  299. // All implementations must embed UnimplementedUserServer
  300. // for forward compatibility
  301. type UserServer interface {
  302. // 更新用户信息
  303. UpdateUserInformation(context.Context, *common.UpdateInformationRequest) (*emptypb.Empty, error)
  304. // 获取用户详情
  305. GetUserInfo(context.Context, *emptypb.Empty) (*UserInfo, error)
  306. // 获取用户详情
  307. GetUserDBMsg(context.Context, *common.PersonIDParam) (*common.PersonMsg, error)
  308. // 用户发送验证码
  309. SendPhoneCode(context.Context, *common.SendPhoneCodeRequest) (*emptypb.Empty, error)
  310. // 用户验证验证码
  311. CheckPhoneCode(context.Context, *common.CheckPhoneCodeRequest) (*emptypb.Empty, error)
  312. // 检查用户是否与接待员关联
  313. CheckUserPartnerIsRelationship(context.Context, *common.PartnerIDParam) (*chat.CheckUserPartnerIsRelationshipReply, error)
  314. // 创建用户与接待员的关联
  315. CreateUserPersonRoom(context.Context, *common.PersonParam) (*chat.RoomReply, error)
  316. // 获取接待员的确认通过页面信息
  317. GetPartnerCircleInfo(context.Context, *KeyRequest) (*common.AddFriendMessageInfo, error)
  318. // 用户获取主页信息
  319. UserGetHomeInfo(context.Context, *common.PersonParam) (*common.HomeInfo, error)
  320. // 通过用户IDs查看用户信息列表
  321. FindUserDBList(context.Context, *common.PersonIDList) (*common.PersonDBReply, error)
  322. // 查看看过我的列表
  323. FindLookList(context.Context, *common.ListPageRequest) (*statistics.LookAndLikeListReply, error)
  324. // 查看我喜欢的列表
  325. FindLikeList(context.Context, *common.ListPageRequest) (*statistics.LookAndLikeListReply, error)
  326. // 查看喜欢我的列表
  327. FindLikedList(context.Context, *common.ListPageRequest) (*statistics.LookAndLikeListReply, error)
  328. // 获取用户的访客数以及关注数
  329. GetLookAndLikeStatisticsMessage(context.Context, *emptypb.Empty) (*statistics.LookAndLikeMessageReply, error)
  330. // 微信SDK初始化
  331. WxConf(context.Context, *common.WxConfReq) (*common.WxConfResponse, error)
  332. // 获取标签列表
  333. FindTagListBySex(context.Context, *common.SexReq) (*common.TagListReply, error)
  334. // 获取在线列表
  335. FindOnlineList(context.Context, *common.ListPage2Request) (*common.OnlinePersonListReply, error)
  336. // 七天内列表(当前会话)
  337. FindWithinSevenDayRoomList(context.Context, *common.ListPageRequest) (*UserFindChatListReply, error)
  338. // 七天外列表(更早的聊天记录)
  339. FindOverSevenDayRoomList(context.Context, *common.ListPageRequest) (*UserFindChatListReply, error)
  340. // 用户获取ta的主页访客、关注数
  341. UserGetPersonLikedAndLooked(context.Context, *common.PersonParam) (*common.LookedAndLikedNum, error)
  342. // 获取用户的金额信息
  343. GetUserBalance(context.Context, *emptypb.Empty) (*UserBalance, error)
  344. // 获取用户访问数详情
  345. GetUserLookNum(context.Context, *emptypb.Empty) (*statistics.LookMessageReply, error)
  346. // 用户查询聊天记录
  347. FindChatRecordList(context.Context, *common.FindChatRecordListRequest) (*common.ChatRecordListReply, error)
  348. // 用户查询房间信息
  349. FindChatRoomMsg(context.Context, *common.FindChatRoomMsgRequest) (*common.ChatRoomMsg, error)
  350. // 用户完善资料
  351. UserFinishInformation(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
  352. // 用户完善情况
  353. UserInformationStatus(context.Context, *emptypb.Empty) (*InformationStatus, error)
  354. // 用户获取完善资料奖励
  355. UserGetInformationAward(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
  356. mustEmbedUnimplementedUserServer()
  357. }
  358. // UnimplementedUserServer must be embedded to have forward compatible implementations.
  359. type UnimplementedUserServer struct {
  360. }
  361. func (UnimplementedUserServer) UpdateUserInformation(context.Context, *common.UpdateInformationRequest) (*emptypb.Empty, error) {
  362. return nil, status.Errorf(codes.Unimplemented, "method UpdateUserInformation not implemented")
  363. }
  364. func (UnimplementedUserServer) GetUserInfo(context.Context, *emptypb.Empty) (*UserInfo, error) {
  365. return nil, status.Errorf(codes.Unimplemented, "method GetUserInfo not implemented")
  366. }
  367. func (UnimplementedUserServer) GetUserDBMsg(context.Context, *common.PersonIDParam) (*common.PersonMsg, error) {
  368. return nil, status.Errorf(codes.Unimplemented, "method GetUserDBMsg not implemented")
  369. }
  370. func (UnimplementedUserServer) SendPhoneCode(context.Context, *common.SendPhoneCodeRequest) (*emptypb.Empty, error) {
  371. return nil, status.Errorf(codes.Unimplemented, "method SendPhoneCode not implemented")
  372. }
  373. func (UnimplementedUserServer) CheckPhoneCode(context.Context, *common.CheckPhoneCodeRequest) (*emptypb.Empty, error) {
  374. return nil, status.Errorf(codes.Unimplemented, "method CheckPhoneCode not implemented")
  375. }
  376. func (UnimplementedUserServer) CheckUserPartnerIsRelationship(context.Context, *common.PartnerIDParam) (*chat.CheckUserPartnerIsRelationshipReply, error) {
  377. return nil, status.Errorf(codes.Unimplemented, "method CheckUserPartnerIsRelationship not implemented")
  378. }
  379. func (UnimplementedUserServer) CreateUserPersonRoom(context.Context, *common.PersonParam) (*chat.RoomReply, error) {
  380. return nil, status.Errorf(codes.Unimplemented, "method CreateUserPersonRoom not implemented")
  381. }
  382. func (UnimplementedUserServer) GetPartnerCircleInfo(context.Context, *KeyRequest) (*common.AddFriendMessageInfo, error) {
  383. return nil, status.Errorf(codes.Unimplemented, "method GetPartnerCircleInfo not implemented")
  384. }
  385. func (UnimplementedUserServer) UserGetHomeInfo(context.Context, *common.PersonParam) (*common.HomeInfo, error) {
  386. return nil, status.Errorf(codes.Unimplemented, "method UserGetHomeInfo not implemented")
  387. }
  388. func (UnimplementedUserServer) FindUserDBList(context.Context, *common.PersonIDList) (*common.PersonDBReply, error) {
  389. return nil, status.Errorf(codes.Unimplemented, "method FindUserDBList not implemented")
  390. }
  391. func (UnimplementedUserServer) FindLookList(context.Context, *common.ListPageRequest) (*statistics.LookAndLikeListReply, error) {
  392. return nil, status.Errorf(codes.Unimplemented, "method FindLookList not implemented")
  393. }
  394. func (UnimplementedUserServer) FindLikeList(context.Context, *common.ListPageRequest) (*statistics.LookAndLikeListReply, error) {
  395. return nil, status.Errorf(codes.Unimplemented, "method FindLikeList not implemented")
  396. }
  397. func (UnimplementedUserServer) FindLikedList(context.Context, *common.ListPageRequest) (*statistics.LookAndLikeListReply, error) {
  398. return nil, status.Errorf(codes.Unimplemented, "method FindLikedList not implemented")
  399. }
  400. func (UnimplementedUserServer) GetLookAndLikeStatisticsMessage(context.Context, *emptypb.Empty) (*statistics.LookAndLikeMessageReply, error) {
  401. return nil, status.Errorf(codes.Unimplemented, "method GetLookAndLikeStatisticsMessage not implemented")
  402. }
  403. func (UnimplementedUserServer) WxConf(context.Context, *common.WxConfReq) (*common.WxConfResponse, error) {
  404. return nil, status.Errorf(codes.Unimplemented, "method WxConf not implemented")
  405. }
  406. func (UnimplementedUserServer) FindTagListBySex(context.Context, *common.SexReq) (*common.TagListReply, error) {
  407. return nil, status.Errorf(codes.Unimplemented, "method FindTagListBySex not implemented")
  408. }
  409. func (UnimplementedUserServer) FindOnlineList(context.Context, *common.ListPage2Request) (*common.OnlinePersonListReply, error) {
  410. return nil, status.Errorf(codes.Unimplemented, "method FindOnlineList not implemented")
  411. }
  412. func (UnimplementedUserServer) FindWithinSevenDayRoomList(context.Context, *common.ListPageRequest) (*UserFindChatListReply, error) {
  413. return nil, status.Errorf(codes.Unimplemented, "method FindWithinSevenDayRoomList not implemented")
  414. }
  415. func (UnimplementedUserServer) FindOverSevenDayRoomList(context.Context, *common.ListPageRequest) (*UserFindChatListReply, error) {
  416. return nil, status.Errorf(codes.Unimplemented, "method FindOverSevenDayRoomList not implemented")
  417. }
  418. func (UnimplementedUserServer) UserGetPersonLikedAndLooked(context.Context, *common.PersonParam) (*common.LookedAndLikedNum, error) {
  419. return nil, status.Errorf(codes.Unimplemented, "method UserGetPersonLikedAndLooked not implemented")
  420. }
  421. func (UnimplementedUserServer) GetUserBalance(context.Context, *emptypb.Empty) (*UserBalance, error) {
  422. return nil, status.Errorf(codes.Unimplemented, "method GetUserBalance not implemented")
  423. }
  424. func (UnimplementedUserServer) GetUserLookNum(context.Context, *emptypb.Empty) (*statistics.LookMessageReply, error) {
  425. return nil, status.Errorf(codes.Unimplemented, "method GetUserLookNum not implemented")
  426. }
  427. func (UnimplementedUserServer) FindChatRecordList(context.Context, *common.FindChatRecordListRequest) (*common.ChatRecordListReply, error) {
  428. return nil, status.Errorf(codes.Unimplemented, "method FindChatRecordList not implemented")
  429. }
  430. func (UnimplementedUserServer) FindChatRoomMsg(context.Context, *common.FindChatRoomMsgRequest) (*common.ChatRoomMsg, error) {
  431. return nil, status.Errorf(codes.Unimplemented, "method FindChatRoomMsg not implemented")
  432. }
  433. func (UnimplementedUserServer) UserFinishInformation(context.Context, *emptypb.Empty) (*emptypb.Empty, error) {
  434. return nil, status.Errorf(codes.Unimplemented, "method UserFinishInformation not implemented")
  435. }
  436. func (UnimplementedUserServer) UserInformationStatus(context.Context, *emptypb.Empty) (*InformationStatus, error) {
  437. return nil, status.Errorf(codes.Unimplemented, "method UserInformationStatus not implemented")
  438. }
  439. func (UnimplementedUserServer) UserGetInformationAward(context.Context, *emptypb.Empty) (*emptypb.Empty, error) {
  440. return nil, status.Errorf(codes.Unimplemented, "method UserGetInformationAward not implemented")
  441. }
  442. func (UnimplementedUserServer) mustEmbedUnimplementedUserServer() {}
  443. // UnsafeUserServer may be embedded to opt out of forward compatibility for this service.
  444. // Use of this interface is not recommended, as added methods to UserServer will
  445. // result in compilation errors.
  446. type UnsafeUserServer interface {
  447. mustEmbedUnimplementedUserServer()
  448. }
  449. func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer) {
  450. s.RegisterService(&User_ServiceDesc, srv)
  451. }
  452. func _User_UpdateUserInformation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  453. in := new(common.UpdateInformationRequest)
  454. if err := dec(in); err != nil {
  455. return nil, err
  456. }
  457. if interceptor == nil {
  458. return srv.(UserServer).UpdateUserInformation(ctx, in)
  459. }
  460. info := &grpc.UnaryServerInfo{
  461. Server: srv,
  462. FullMethod: "/api.user.User/UpdateUserInformation",
  463. }
  464. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  465. return srv.(UserServer).UpdateUserInformation(ctx, req.(*common.UpdateInformationRequest))
  466. }
  467. return interceptor(ctx, in, info, handler)
  468. }
  469. func _User_GetUserInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  470. in := new(emptypb.Empty)
  471. if err := dec(in); err != nil {
  472. return nil, err
  473. }
  474. if interceptor == nil {
  475. return srv.(UserServer).GetUserInfo(ctx, in)
  476. }
  477. info := &grpc.UnaryServerInfo{
  478. Server: srv,
  479. FullMethod: "/api.user.User/GetUserInfo",
  480. }
  481. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  482. return srv.(UserServer).GetUserInfo(ctx, req.(*emptypb.Empty))
  483. }
  484. return interceptor(ctx, in, info, handler)
  485. }
  486. func _User_GetUserDBMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  487. in := new(common.PersonIDParam)
  488. if err := dec(in); err != nil {
  489. return nil, err
  490. }
  491. if interceptor == nil {
  492. return srv.(UserServer).GetUserDBMsg(ctx, in)
  493. }
  494. info := &grpc.UnaryServerInfo{
  495. Server: srv,
  496. FullMethod: "/api.user.User/GetUserDBMsg",
  497. }
  498. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  499. return srv.(UserServer).GetUserDBMsg(ctx, req.(*common.PersonIDParam))
  500. }
  501. return interceptor(ctx, in, info, handler)
  502. }
  503. func _User_SendPhoneCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  504. in := new(common.SendPhoneCodeRequest)
  505. if err := dec(in); err != nil {
  506. return nil, err
  507. }
  508. if interceptor == nil {
  509. return srv.(UserServer).SendPhoneCode(ctx, in)
  510. }
  511. info := &grpc.UnaryServerInfo{
  512. Server: srv,
  513. FullMethod: "/api.user.User/SendPhoneCode",
  514. }
  515. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  516. return srv.(UserServer).SendPhoneCode(ctx, req.(*common.SendPhoneCodeRequest))
  517. }
  518. return interceptor(ctx, in, info, handler)
  519. }
  520. func _User_CheckPhoneCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  521. in := new(common.CheckPhoneCodeRequest)
  522. if err := dec(in); err != nil {
  523. return nil, err
  524. }
  525. if interceptor == nil {
  526. return srv.(UserServer).CheckPhoneCode(ctx, in)
  527. }
  528. info := &grpc.UnaryServerInfo{
  529. Server: srv,
  530. FullMethod: "/api.user.User/CheckPhoneCode",
  531. }
  532. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  533. return srv.(UserServer).CheckPhoneCode(ctx, req.(*common.CheckPhoneCodeRequest))
  534. }
  535. return interceptor(ctx, in, info, handler)
  536. }
  537. func _User_CheckUserPartnerIsRelationship_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  538. in := new(common.PartnerIDParam)
  539. if err := dec(in); err != nil {
  540. return nil, err
  541. }
  542. if interceptor == nil {
  543. return srv.(UserServer).CheckUserPartnerIsRelationship(ctx, in)
  544. }
  545. info := &grpc.UnaryServerInfo{
  546. Server: srv,
  547. FullMethod: "/api.user.User/CheckUserPartnerIsRelationship",
  548. }
  549. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  550. return srv.(UserServer).CheckUserPartnerIsRelationship(ctx, req.(*common.PartnerIDParam))
  551. }
  552. return interceptor(ctx, in, info, handler)
  553. }
  554. func _User_CreateUserPersonRoom_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  555. in := new(common.PersonParam)
  556. if err := dec(in); err != nil {
  557. return nil, err
  558. }
  559. if interceptor == nil {
  560. return srv.(UserServer).CreateUserPersonRoom(ctx, in)
  561. }
  562. info := &grpc.UnaryServerInfo{
  563. Server: srv,
  564. FullMethod: "/api.user.User/CreateUserPersonRoom",
  565. }
  566. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  567. return srv.(UserServer).CreateUserPersonRoom(ctx, req.(*common.PersonParam))
  568. }
  569. return interceptor(ctx, in, info, handler)
  570. }
  571. func _User_GetPartnerCircleInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  572. in := new(KeyRequest)
  573. if err := dec(in); err != nil {
  574. return nil, err
  575. }
  576. if interceptor == nil {
  577. return srv.(UserServer).GetPartnerCircleInfo(ctx, in)
  578. }
  579. info := &grpc.UnaryServerInfo{
  580. Server: srv,
  581. FullMethod: "/api.user.User/GetPartnerCircleInfo",
  582. }
  583. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  584. return srv.(UserServer).GetPartnerCircleInfo(ctx, req.(*KeyRequest))
  585. }
  586. return interceptor(ctx, in, info, handler)
  587. }
  588. func _User_UserGetHomeInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  589. in := new(common.PersonParam)
  590. if err := dec(in); err != nil {
  591. return nil, err
  592. }
  593. if interceptor == nil {
  594. return srv.(UserServer).UserGetHomeInfo(ctx, in)
  595. }
  596. info := &grpc.UnaryServerInfo{
  597. Server: srv,
  598. FullMethod: "/api.user.User/UserGetHomeInfo",
  599. }
  600. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  601. return srv.(UserServer).UserGetHomeInfo(ctx, req.(*common.PersonParam))
  602. }
  603. return interceptor(ctx, in, info, handler)
  604. }
  605. func _User_FindUserDBList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  606. in := new(common.PersonIDList)
  607. if err := dec(in); err != nil {
  608. return nil, err
  609. }
  610. if interceptor == nil {
  611. return srv.(UserServer).FindUserDBList(ctx, in)
  612. }
  613. info := &grpc.UnaryServerInfo{
  614. Server: srv,
  615. FullMethod: "/api.user.User/FindUserDBList",
  616. }
  617. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  618. return srv.(UserServer).FindUserDBList(ctx, req.(*common.PersonIDList))
  619. }
  620. return interceptor(ctx, in, info, handler)
  621. }
  622. func _User_FindLookList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  623. in := new(common.ListPageRequest)
  624. if err := dec(in); err != nil {
  625. return nil, err
  626. }
  627. if interceptor == nil {
  628. return srv.(UserServer).FindLookList(ctx, in)
  629. }
  630. info := &grpc.UnaryServerInfo{
  631. Server: srv,
  632. FullMethod: "/api.user.User/FindLookList",
  633. }
  634. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  635. return srv.(UserServer).FindLookList(ctx, req.(*common.ListPageRequest))
  636. }
  637. return interceptor(ctx, in, info, handler)
  638. }
  639. func _User_FindLikeList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  640. in := new(common.ListPageRequest)
  641. if err := dec(in); err != nil {
  642. return nil, err
  643. }
  644. if interceptor == nil {
  645. return srv.(UserServer).FindLikeList(ctx, in)
  646. }
  647. info := &grpc.UnaryServerInfo{
  648. Server: srv,
  649. FullMethod: "/api.user.User/FindLikeList",
  650. }
  651. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  652. return srv.(UserServer).FindLikeList(ctx, req.(*common.ListPageRequest))
  653. }
  654. return interceptor(ctx, in, info, handler)
  655. }
  656. func _User_FindLikedList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  657. in := new(common.ListPageRequest)
  658. if err := dec(in); err != nil {
  659. return nil, err
  660. }
  661. if interceptor == nil {
  662. return srv.(UserServer).FindLikedList(ctx, in)
  663. }
  664. info := &grpc.UnaryServerInfo{
  665. Server: srv,
  666. FullMethod: "/api.user.User/FindLikedList",
  667. }
  668. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  669. return srv.(UserServer).FindLikedList(ctx, req.(*common.ListPageRequest))
  670. }
  671. return interceptor(ctx, in, info, handler)
  672. }
  673. func _User_GetLookAndLikeStatisticsMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  674. in := new(emptypb.Empty)
  675. if err := dec(in); err != nil {
  676. return nil, err
  677. }
  678. if interceptor == nil {
  679. return srv.(UserServer).GetLookAndLikeStatisticsMessage(ctx, in)
  680. }
  681. info := &grpc.UnaryServerInfo{
  682. Server: srv,
  683. FullMethod: "/api.user.User/GetLookAndLikeStatisticsMessage",
  684. }
  685. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  686. return srv.(UserServer).GetLookAndLikeStatisticsMessage(ctx, req.(*emptypb.Empty))
  687. }
  688. return interceptor(ctx, in, info, handler)
  689. }
  690. func _User_WxConf_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  691. in := new(common.WxConfReq)
  692. if err := dec(in); err != nil {
  693. return nil, err
  694. }
  695. if interceptor == nil {
  696. return srv.(UserServer).WxConf(ctx, in)
  697. }
  698. info := &grpc.UnaryServerInfo{
  699. Server: srv,
  700. FullMethod: "/api.user.User/WxConf",
  701. }
  702. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  703. return srv.(UserServer).WxConf(ctx, req.(*common.WxConfReq))
  704. }
  705. return interceptor(ctx, in, info, handler)
  706. }
  707. func _User_FindTagListBySex_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  708. in := new(common.SexReq)
  709. if err := dec(in); err != nil {
  710. return nil, err
  711. }
  712. if interceptor == nil {
  713. return srv.(UserServer).FindTagListBySex(ctx, in)
  714. }
  715. info := &grpc.UnaryServerInfo{
  716. Server: srv,
  717. FullMethod: "/api.user.User/FindTagListBySex",
  718. }
  719. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  720. return srv.(UserServer).FindTagListBySex(ctx, req.(*common.SexReq))
  721. }
  722. return interceptor(ctx, in, info, handler)
  723. }
  724. func _User_FindOnlineList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  725. in := new(common.ListPage2Request)
  726. if err := dec(in); err != nil {
  727. return nil, err
  728. }
  729. if interceptor == nil {
  730. return srv.(UserServer).FindOnlineList(ctx, in)
  731. }
  732. info := &grpc.UnaryServerInfo{
  733. Server: srv,
  734. FullMethod: "/api.user.User/FindOnlineList",
  735. }
  736. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  737. return srv.(UserServer).FindOnlineList(ctx, req.(*common.ListPage2Request))
  738. }
  739. return interceptor(ctx, in, info, handler)
  740. }
  741. func _User_FindWithinSevenDayRoomList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  742. in := new(common.ListPageRequest)
  743. if err := dec(in); err != nil {
  744. return nil, err
  745. }
  746. if interceptor == nil {
  747. return srv.(UserServer).FindWithinSevenDayRoomList(ctx, in)
  748. }
  749. info := &grpc.UnaryServerInfo{
  750. Server: srv,
  751. FullMethod: "/api.user.User/FindWithinSevenDayRoomList",
  752. }
  753. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  754. return srv.(UserServer).FindWithinSevenDayRoomList(ctx, req.(*common.ListPageRequest))
  755. }
  756. return interceptor(ctx, in, info, handler)
  757. }
  758. func _User_FindOverSevenDayRoomList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  759. in := new(common.ListPageRequest)
  760. if err := dec(in); err != nil {
  761. return nil, err
  762. }
  763. if interceptor == nil {
  764. return srv.(UserServer).FindOverSevenDayRoomList(ctx, in)
  765. }
  766. info := &grpc.UnaryServerInfo{
  767. Server: srv,
  768. FullMethod: "/api.user.User/FindOverSevenDayRoomList",
  769. }
  770. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  771. return srv.(UserServer).FindOverSevenDayRoomList(ctx, req.(*common.ListPageRequest))
  772. }
  773. return interceptor(ctx, in, info, handler)
  774. }
  775. func _User_UserGetPersonLikedAndLooked_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  776. in := new(common.PersonParam)
  777. if err := dec(in); err != nil {
  778. return nil, err
  779. }
  780. if interceptor == nil {
  781. return srv.(UserServer).UserGetPersonLikedAndLooked(ctx, in)
  782. }
  783. info := &grpc.UnaryServerInfo{
  784. Server: srv,
  785. FullMethod: "/api.user.User/UserGetPersonLikedAndLooked",
  786. }
  787. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  788. return srv.(UserServer).UserGetPersonLikedAndLooked(ctx, req.(*common.PersonParam))
  789. }
  790. return interceptor(ctx, in, info, handler)
  791. }
  792. func _User_GetUserBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  793. in := new(emptypb.Empty)
  794. if err := dec(in); err != nil {
  795. return nil, err
  796. }
  797. if interceptor == nil {
  798. return srv.(UserServer).GetUserBalance(ctx, in)
  799. }
  800. info := &grpc.UnaryServerInfo{
  801. Server: srv,
  802. FullMethod: "/api.user.User/GetUserBalance",
  803. }
  804. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  805. return srv.(UserServer).GetUserBalance(ctx, req.(*emptypb.Empty))
  806. }
  807. return interceptor(ctx, in, info, handler)
  808. }
  809. func _User_GetUserLookNum_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  810. in := new(emptypb.Empty)
  811. if err := dec(in); err != nil {
  812. return nil, err
  813. }
  814. if interceptor == nil {
  815. return srv.(UserServer).GetUserLookNum(ctx, in)
  816. }
  817. info := &grpc.UnaryServerInfo{
  818. Server: srv,
  819. FullMethod: "/api.user.User/GetUserLookNum",
  820. }
  821. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  822. return srv.(UserServer).GetUserLookNum(ctx, req.(*emptypb.Empty))
  823. }
  824. return interceptor(ctx, in, info, handler)
  825. }
  826. func _User_FindChatRecordList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  827. in := new(common.FindChatRecordListRequest)
  828. if err := dec(in); err != nil {
  829. return nil, err
  830. }
  831. if interceptor == nil {
  832. return srv.(UserServer).FindChatRecordList(ctx, in)
  833. }
  834. info := &grpc.UnaryServerInfo{
  835. Server: srv,
  836. FullMethod: "/api.user.User/FindChatRecordList",
  837. }
  838. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  839. return srv.(UserServer).FindChatRecordList(ctx, req.(*common.FindChatRecordListRequest))
  840. }
  841. return interceptor(ctx, in, info, handler)
  842. }
  843. func _User_FindChatRoomMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  844. in := new(common.FindChatRoomMsgRequest)
  845. if err := dec(in); err != nil {
  846. return nil, err
  847. }
  848. if interceptor == nil {
  849. return srv.(UserServer).FindChatRoomMsg(ctx, in)
  850. }
  851. info := &grpc.UnaryServerInfo{
  852. Server: srv,
  853. FullMethod: "/api.user.User/FindChatRoomMsg",
  854. }
  855. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  856. return srv.(UserServer).FindChatRoomMsg(ctx, req.(*common.FindChatRoomMsgRequest))
  857. }
  858. return interceptor(ctx, in, info, handler)
  859. }
  860. func _User_UserFinishInformation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  861. in := new(emptypb.Empty)
  862. if err := dec(in); err != nil {
  863. return nil, err
  864. }
  865. if interceptor == nil {
  866. return srv.(UserServer).UserFinishInformation(ctx, in)
  867. }
  868. info := &grpc.UnaryServerInfo{
  869. Server: srv,
  870. FullMethod: "/api.user.User/UserFinishInformation",
  871. }
  872. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  873. return srv.(UserServer).UserFinishInformation(ctx, req.(*emptypb.Empty))
  874. }
  875. return interceptor(ctx, in, info, handler)
  876. }
  877. func _User_UserInformationStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  878. in := new(emptypb.Empty)
  879. if err := dec(in); err != nil {
  880. return nil, err
  881. }
  882. if interceptor == nil {
  883. return srv.(UserServer).UserInformationStatus(ctx, in)
  884. }
  885. info := &grpc.UnaryServerInfo{
  886. Server: srv,
  887. FullMethod: "/api.user.User/UserInformationStatus",
  888. }
  889. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  890. return srv.(UserServer).UserInformationStatus(ctx, req.(*emptypb.Empty))
  891. }
  892. return interceptor(ctx, in, info, handler)
  893. }
  894. func _User_UserGetInformationAward_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  895. in := new(emptypb.Empty)
  896. if err := dec(in); err != nil {
  897. return nil, err
  898. }
  899. if interceptor == nil {
  900. return srv.(UserServer).UserGetInformationAward(ctx, in)
  901. }
  902. info := &grpc.UnaryServerInfo{
  903. Server: srv,
  904. FullMethod: "/api.user.User/UserGetInformationAward",
  905. }
  906. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  907. return srv.(UserServer).UserGetInformationAward(ctx, req.(*emptypb.Empty))
  908. }
  909. return interceptor(ctx, in, info, handler)
  910. }
  911. // User_ServiceDesc is the grpc.ServiceDesc for User service.
  912. // It's only intended for direct use with grpc.RegisterService,
  913. // and not to be introspected or modified (even as a copy)
  914. var User_ServiceDesc = grpc.ServiceDesc{
  915. ServiceName: "api.user.User",
  916. HandlerType: (*UserServer)(nil),
  917. Methods: []grpc.MethodDesc{
  918. {
  919. MethodName: "UpdateUserInformation",
  920. Handler: _User_UpdateUserInformation_Handler,
  921. },
  922. {
  923. MethodName: "GetUserInfo",
  924. Handler: _User_GetUserInfo_Handler,
  925. },
  926. {
  927. MethodName: "GetUserDBMsg",
  928. Handler: _User_GetUserDBMsg_Handler,
  929. },
  930. {
  931. MethodName: "SendPhoneCode",
  932. Handler: _User_SendPhoneCode_Handler,
  933. },
  934. {
  935. MethodName: "CheckPhoneCode",
  936. Handler: _User_CheckPhoneCode_Handler,
  937. },
  938. {
  939. MethodName: "CheckUserPartnerIsRelationship",
  940. Handler: _User_CheckUserPartnerIsRelationship_Handler,
  941. },
  942. {
  943. MethodName: "CreateUserPersonRoom",
  944. Handler: _User_CreateUserPersonRoom_Handler,
  945. },
  946. {
  947. MethodName: "GetPartnerCircleInfo",
  948. Handler: _User_GetPartnerCircleInfo_Handler,
  949. },
  950. {
  951. MethodName: "UserGetHomeInfo",
  952. Handler: _User_UserGetHomeInfo_Handler,
  953. },
  954. {
  955. MethodName: "FindUserDBList",
  956. Handler: _User_FindUserDBList_Handler,
  957. },
  958. {
  959. MethodName: "FindLookList",
  960. Handler: _User_FindLookList_Handler,
  961. },
  962. {
  963. MethodName: "FindLikeList",
  964. Handler: _User_FindLikeList_Handler,
  965. },
  966. {
  967. MethodName: "FindLikedList",
  968. Handler: _User_FindLikedList_Handler,
  969. },
  970. {
  971. MethodName: "GetLookAndLikeStatisticsMessage",
  972. Handler: _User_GetLookAndLikeStatisticsMessage_Handler,
  973. },
  974. {
  975. MethodName: "WxConf",
  976. Handler: _User_WxConf_Handler,
  977. },
  978. {
  979. MethodName: "FindTagListBySex",
  980. Handler: _User_FindTagListBySex_Handler,
  981. },
  982. {
  983. MethodName: "FindOnlineList",
  984. Handler: _User_FindOnlineList_Handler,
  985. },
  986. {
  987. MethodName: "FindWithinSevenDayRoomList",
  988. Handler: _User_FindWithinSevenDayRoomList_Handler,
  989. },
  990. {
  991. MethodName: "FindOverSevenDayRoomList",
  992. Handler: _User_FindOverSevenDayRoomList_Handler,
  993. },
  994. {
  995. MethodName: "UserGetPersonLikedAndLooked",
  996. Handler: _User_UserGetPersonLikedAndLooked_Handler,
  997. },
  998. {
  999. MethodName: "GetUserBalance",
  1000. Handler: _User_GetUserBalance_Handler,
  1001. },
  1002. {
  1003. MethodName: "GetUserLookNum",
  1004. Handler: _User_GetUserLookNum_Handler,
  1005. },
  1006. {
  1007. MethodName: "FindChatRecordList",
  1008. Handler: _User_FindChatRecordList_Handler,
  1009. },
  1010. {
  1011. MethodName: "FindChatRoomMsg",
  1012. Handler: _User_FindChatRoomMsg_Handler,
  1013. },
  1014. {
  1015. MethodName: "UserFinishInformation",
  1016. Handler: _User_UserFinishInformation_Handler,
  1017. },
  1018. {
  1019. MethodName: "UserInformationStatus",
  1020. Handler: _User_UserInformationStatus_Handler,
  1021. },
  1022. {
  1023. MethodName: "UserGetInformationAward",
  1024. Handler: _User_UserGetInformationAward_Handler,
  1025. },
  1026. },
  1027. Streams: []grpc.StreamDesc{},
  1028. Metadata: "user.proto",
  1029. }