user_grpc.pb.go 59 KB

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