user_grpc.pb.go 71 KB

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