user_grpc.pb.go 62 KB

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