user_grpc.pb.go 52 KB

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