user_grpc.pb.go 60 KB

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