user_grpc.pb.go 66 KB

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