user_grpc.pb.go 47 KB

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