user_grpc.pb.go 67 KB

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