user_grpc.pb.go 50 KB

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