user_grpc.pb.go 49 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247
  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. type userClient struct {
  85. cc grpc.ClientConnInterface
  86. }
  87. func NewUserClient(cc grpc.ClientConnInterface) UserClient {
  88. return &userClient{cc}
  89. }
  90. func (c *userClient) UpdateUserInformation(ctx context.Context, in *common.UpdateInformationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  91. out := new(emptypb.Empty)
  92. err := c.cc.Invoke(ctx, "/api.user.User/UpdateUserInformation", in, out, opts...)
  93. if err != nil {
  94. return nil, err
  95. }
  96. return out, nil
  97. }
  98. func (c *userClient) GetUserInfo(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*UserInfo, error) {
  99. out := new(UserInfo)
  100. err := c.cc.Invoke(ctx, "/api.user.User/GetUserInfo", in, out, opts...)
  101. if err != nil {
  102. return nil, err
  103. }
  104. return out, nil
  105. }
  106. func (c *userClient) GetUserDBMsg(ctx context.Context, in *common.PersonIDParam, opts ...grpc.CallOption) (*common.PersonMsg, error) {
  107. out := new(common.PersonMsg)
  108. err := c.cc.Invoke(ctx, "/api.user.User/GetUserDBMsg", in, out, opts...)
  109. if err != nil {
  110. return nil, err
  111. }
  112. return out, nil
  113. }
  114. func (c *userClient) SendPhoneCode(ctx context.Context, in *common.SendPhoneCodeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  115. out := new(emptypb.Empty)
  116. err := c.cc.Invoke(ctx, "/api.user.User/SendPhoneCode", in, out, opts...)
  117. if err != nil {
  118. return nil, err
  119. }
  120. return out, nil
  121. }
  122. func (c *userClient) CheckPhoneCode(ctx context.Context, in *common.CheckPhoneCodeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  123. out := new(emptypb.Empty)
  124. err := c.cc.Invoke(ctx, "/api.user.User/CheckPhoneCode", in, out, opts...)
  125. if err != nil {
  126. return nil, err
  127. }
  128. return out, nil
  129. }
  130. func (c *userClient) CheckUserPartnerIsRelationship(ctx context.Context, in *common.PartnerIDParam, opts ...grpc.CallOption) (*chat.CheckUserPartnerIsRelationshipReply, error) {
  131. out := new(chat.CheckUserPartnerIsRelationshipReply)
  132. err := c.cc.Invoke(ctx, "/api.user.User/CheckUserPartnerIsRelationship", in, out, opts...)
  133. if err != nil {
  134. return nil, err
  135. }
  136. return out, nil
  137. }
  138. func (c *userClient) CreateUserPersonRoom(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*chat.RoomReply, error) {
  139. out := new(chat.RoomReply)
  140. err := c.cc.Invoke(ctx, "/api.user.User/CreateUserPersonRoom", in, out, opts...)
  141. if err != nil {
  142. return nil, err
  143. }
  144. return out, nil
  145. }
  146. func (c *userClient) GetPartnerCircleInfo(ctx context.Context, in *KeyRequest, opts ...grpc.CallOption) (*common.AddFriendMessageInfo, error) {
  147. out := new(common.AddFriendMessageInfo)
  148. err := c.cc.Invoke(ctx, "/api.user.User/GetPartnerCircleInfo", in, out, opts...)
  149. if err != nil {
  150. return nil, err
  151. }
  152. return out, nil
  153. }
  154. func (c *userClient) UserGetHomeInfo(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*common.HomeInfo, error) {
  155. out := new(common.HomeInfo)
  156. err := c.cc.Invoke(ctx, "/api.user.User/UserGetHomeInfo", in, out, opts...)
  157. if err != nil {
  158. return nil, err
  159. }
  160. return out, nil
  161. }
  162. func (c *userClient) FindUserDBList(ctx context.Context, in *common.PersonIDList, opts ...grpc.CallOption) (*common.PersonDBReply, error) {
  163. out := new(common.PersonDBReply)
  164. err := c.cc.Invoke(ctx, "/api.user.User/FindUserDBList", in, out, opts...)
  165. if err != nil {
  166. return nil, err
  167. }
  168. return out, nil
  169. }
  170. func (c *userClient) FindLookList(ctx context.Context, in *common.ListPageRequest, opts ...grpc.CallOption) (*statistics.LookAndLikeListReply, error) {
  171. out := new(statistics.LookAndLikeListReply)
  172. err := c.cc.Invoke(ctx, "/api.user.User/FindLookList", in, out, opts...)
  173. if err != nil {
  174. return nil, err
  175. }
  176. return out, nil
  177. }
  178. func (c *userClient) FindLikeList(ctx context.Context, in *common.ListPageRequest, opts ...grpc.CallOption) (*statistics.LookAndLikeListReply, error) {
  179. out := new(statistics.LookAndLikeListReply)
  180. err := c.cc.Invoke(ctx, "/api.user.User/FindLikeList", in, out, opts...)
  181. if err != nil {
  182. return nil, err
  183. }
  184. return out, nil
  185. }
  186. func (c *userClient) FindLikedList(ctx context.Context, in *common.ListPageRequest, opts ...grpc.CallOption) (*statistics.LookAndLikeListReply, error) {
  187. out := new(statistics.LookAndLikeListReply)
  188. err := c.cc.Invoke(ctx, "/api.user.User/FindLikedList", in, out, opts...)
  189. if err != nil {
  190. return nil, err
  191. }
  192. return out, nil
  193. }
  194. func (c *userClient) GetLookAndLikeStatisticsMessage(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*statistics.LookAndLikeMessageReply, error) {
  195. out := new(statistics.LookAndLikeMessageReply)
  196. err := c.cc.Invoke(ctx, "/api.user.User/GetLookAndLikeStatisticsMessage", in, out, opts...)
  197. if err != nil {
  198. return nil, err
  199. }
  200. return out, nil
  201. }
  202. func (c *userClient) WxConf(ctx context.Context, in *common.WxConfReq, opts ...grpc.CallOption) (*common.WxConfResponse, error) {
  203. out := new(common.WxConfResponse)
  204. err := c.cc.Invoke(ctx, "/api.user.User/WxConf", in, out, opts...)
  205. if err != nil {
  206. return nil, err
  207. }
  208. return out, nil
  209. }
  210. func (c *userClient) FindTagListBySex(ctx context.Context, in *common.SexReq, opts ...grpc.CallOption) (*common.TagListReply, error) {
  211. out := new(common.TagListReply)
  212. err := c.cc.Invoke(ctx, "/api.user.User/FindTagListBySex", in, out, opts...)
  213. if err != nil {
  214. return nil, err
  215. }
  216. return out, nil
  217. }
  218. func (c *userClient) FindOnlineList(ctx context.Context, in *common.ListPage2Request, opts ...grpc.CallOption) (*common.OnlinePersonListReply, error) {
  219. out := new(common.OnlinePersonListReply)
  220. err := c.cc.Invoke(ctx, "/api.user.User/FindOnlineList", in, out, opts...)
  221. if err != nil {
  222. return nil, err
  223. }
  224. return out, nil
  225. }
  226. func (c *userClient) FindWithinSevenDayRoomList(ctx context.Context, in *common.ListPageRequest, opts ...grpc.CallOption) (*UserFindChatListReply, error) {
  227. out := new(UserFindChatListReply)
  228. err := c.cc.Invoke(ctx, "/api.user.User/FindWithinSevenDayRoomList", in, out, opts...)
  229. if err != nil {
  230. return nil, err
  231. }
  232. return out, nil
  233. }
  234. func (c *userClient) FindOverSevenDayRoomList(ctx context.Context, in *common.ListPageRequest, opts ...grpc.CallOption) (*UserFindChatListReply, error) {
  235. out := new(UserFindChatListReply)
  236. err := c.cc.Invoke(ctx, "/api.user.User/FindOverSevenDayRoomList", in, out, opts...)
  237. if err != nil {
  238. return nil, err
  239. }
  240. return out, nil
  241. }
  242. func (c *userClient) UserGetPersonLikedAndLooked(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*common.LookedAndLikedNum, error) {
  243. out := new(common.LookedAndLikedNum)
  244. err := c.cc.Invoke(ctx, "/api.user.User/UserGetPersonLikedAndLooked", in, out, opts...)
  245. if err != nil {
  246. return nil, err
  247. }
  248. return out, nil
  249. }
  250. func (c *userClient) GetUserBalance(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*UserBalance, error) {
  251. out := new(UserBalance)
  252. err := c.cc.Invoke(ctx, "/api.user.User/GetUserBalance", in, out, opts...)
  253. if err != nil {
  254. return nil, err
  255. }
  256. return out, nil
  257. }
  258. func (c *userClient) GetUserLookNum(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*statistics.LookMessageReply, error) {
  259. out := new(statistics.LookMessageReply)
  260. err := c.cc.Invoke(ctx, "/api.user.User/GetUserLookNum", in, out, opts...)
  261. if err != nil {
  262. return nil, err
  263. }
  264. return out, nil
  265. }
  266. func (c *userClient) FindChatRecordList(ctx context.Context, in *common.FindChatRecordListRequest, opts ...grpc.CallOption) (*common.ChatRecordListReply, error) {
  267. out := new(common.ChatRecordListReply)
  268. err := c.cc.Invoke(ctx, "/api.user.User/FindChatRecordList", in, out, opts...)
  269. if err != nil {
  270. return nil, err
  271. }
  272. return out, nil
  273. }
  274. func (c *userClient) FindChatRoomMsg(ctx context.Context, in *common.FindChatRoomMsgRequest, opts ...grpc.CallOption) (*common.ChatRoomMsg, error) {
  275. out := new(common.ChatRoomMsg)
  276. err := c.cc.Invoke(ctx, "/api.user.User/FindChatRoomMsg", in, out, opts...)
  277. if err != nil {
  278. return nil, err
  279. }
  280. return out, nil
  281. }
  282. func (c *userClient) GetUserIsLike(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*common.IsLike, error) {
  283. out := new(common.IsLike)
  284. err := c.cc.Invoke(ctx, "/api.user.User/GetUserIsLike", in, out, opts...)
  285. if err != nil {
  286. return nil, err
  287. }
  288. return out, nil
  289. }
  290. func (c *userClient) UserFinishInformation(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  291. out := new(emptypb.Empty)
  292. err := c.cc.Invoke(ctx, "/api.user.User/UserFinishInformation", in, out, opts...)
  293. if err != nil {
  294. return nil, err
  295. }
  296. return out, nil
  297. }
  298. func (c *userClient) UserInformationStatus(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*InformationStatus, error) {
  299. out := new(InformationStatus)
  300. err := c.cc.Invoke(ctx, "/api.user.User/UserInformationStatus", in, out, opts...)
  301. if err != nil {
  302. return nil, err
  303. }
  304. return out, nil
  305. }
  306. func (c *userClient) UserGetInformationAward(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  307. out := new(emptypb.Empty)
  308. err := c.cc.Invoke(ctx, "/api.user.User/UserGetInformationAward", in, out, opts...)
  309. if err != nil {
  310. return nil, err
  311. }
  312. return out, nil
  313. }
  314. func (c *userClient) UserGetChatCard(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*ChatCardInfo, error) {
  315. out := new(ChatCardInfo)
  316. err := c.cc.Invoke(ctx, "/api.user.User/UserGetChatCard", in, out, opts...)
  317. if err != nil {
  318. return nil, err
  319. }
  320. return out, nil
  321. }
  322. func (c *userClient) UserLike(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  323. out := new(emptypb.Empty)
  324. err := c.cc.Invoke(ctx, "/api.user.User/UserLike", in, out, opts...)
  325. if err != nil {
  326. return nil, err
  327. }
  328. return out, nil
  329. }
  330. func (c *userClient) UserUnLike(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  331. out := new(emptypb.Empty)
  332. err := c.cc.Invoke(ctx, "/api.user.User/UserUnLike", in, out, opts...)
  333. if err != nil {
  334. return nil, err
  335. }
  336. return out, nil
  337. }
  338. // UserServer is the server API for User service.
  339. // All implementations must embed UnimplementedUserServer
  340. // for forward compatibility
  341. type UserServer interface {
  342. // 更新用户信息
  343. UpdateUserInformation(context.Context, *common.UpdateInformationRequest) (*emptypb.Empty, error)
  344. // 获取用户详情
  345. GetUserInfo(context.Context, *emptypb.Empty) (*UserInfo, error)
  346. // 获取用户详情
  347. GetUserDBMsg(context.Context, *common.PersonIDParam) (*common.PersonMsg, error)
  348. // 用户发送验证码
  349. SendPhoneCode(context.Context, *common.SendPhoneCodeRequest) (*emptypb.Empty, error)
  350. // 用户验证验证码
  351. CheckPhoneCode(context.Context, *common.CheckPhoneCodeRequest) (*emptypb.Empty, error)
  352. // 检查用户是否与接待员关联
  353. CheckUserPartnerIsRelationship(context.Context, *common.PartnerIDParam) (*chat.CheckUserPartnerIsRelationshipReply, error)
  354. // 创建用户与接待员的关联
  355. CreateUserPersonRoom(context.Context, *common.PersonParam) (*chat.RoomReply, error)
  356. // 获取接待员的确认通过页面信息
  357. GetPartnerCircleInfo(context.Context, *KeyRequest) (*common.AddFriendMessageInfo, error)
  358. // 用户获取主页信息
  359. UserGetHomeInfo(context.Context, *common.PersonParam) (*common.HomeInfo, error)
  360. // 通过用户IDs查看用户信息列表
  361. FindUserDBList(context.Context, *common.PersonIDList) (*common.PersonDBReply, error)
  362. // 查看看过我的列表
  363. FindLookList(context.Context, *common.ListPageRequest) (*statistics.LookAndLikeListReply, error)
  364. // 查看我喜欢的列表
  365. FindLikeList(context.Context, *common.ListPageRequest) (*statistics.LookAndLikeListReply, error)
  366. // 查看喜欢我的列表
  367. FindLikedList(context.Context, *common.ListPageRequest) (*statistics.LookAndLikeListReply, error)
  368. // 获取用户的访客数以及关注数
  369. GetLookAndLikeStatisticsMessage(context.Context, *emptypb.Empty) (*statistics.LookAndLikeMessageReply, error)
  370. // 微信SDK初始化
  371. WxConf(context.Context, *common.WxConfReq) (*common.WxConfResponse, error)
  372. // 获取标签列表
  373. FindTagListBySex(context.Context, *common.SexReq) (*common.TagListReply, error)
  374. // 获取在线列表
  375. FindOnlineList(context.Context, *common.ListPage2Request) (*common.OnlinePersonListReply, error)
  376. // 七天内列表(当前会话)
  377. FindWithinSevenDayRoomList(context.Context, *common.ListPageRequest) (*UserFindChatListReply, error)
  378. // 七天外列表(更早的聊天记录)
  379. FindOverSevenDayRoomList(context.Context, *common.ListPageRequest) (*UserFindChatListReply, error)
  380. // 用户获取ta的主页访客、关注数
  381. UserGetPersonLikedAndLooked(context.Context, *common.PersonParam) (*common.LookedAndLikedNum, error)
  382. // 获取用户的金额信息
  383. GetUserBalance(context.Context, *emptypb.Empty) (*UserBalance, error)
  384. // 获取用户访问数详情
  385. GetUserLookNum(context.Context, *emptypb.Empty) (*statistics.LookMessageReply, error)
  386. // 用户查询聊天记录
  387. FindChatRecordList(context.Context, *common.FindChatRecordListRequest) (*common.ChatRecordListReply, error)
  388. // 用户查询房间信息
  389. FindChatRoomMsg(context.Context, *common.FindChatRoomMsgRequest) (*common.ChatRoomMsg, error)
  390. // 用户查询是否关注某人
  391. GetUserIsLike(context.Context, *common.PersonParam) (*common.IsLike, error)
  392. // 用户完善资料
  393. UserFinishInformation(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
  394. // 用户完善情况
  395. UserInformationStatus(context.Context, *emptypb.Empty) (*InformationStatus, error)
  396. // 用户获取完善资料奖励
  397. UserGetInformationAward(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
  398. // 用户获取聊天对象的资料卡片
  399. UserGetChatCard(context.Context, *common.PersonParam) (*ChatCardInfo, error)
  400. // 用户关注某人
  401. UserLike(context.Context, *common.PersonParam) (*emptypb.Empty, error)
  402. // 用户取关某人
  403. UserUnLike(context.Context, *common.PersonParam) (*emptypb.Empty, error)
  404. mustEmbedUnimplementedUserServer()
  405. }
  406. // UnimplementedUserServer must be embedded to have forward compatible implementations.
  407. type UnimplementedUserServer struct {
  408. }
  409. func (UnimplementedUserServer) UpdateUserInformation(context.Context, *common.UpdateInformationRequest) (*emptypb.Empty, error) {
  410. return nil, status.Errorf(codes.Unimplemented, "method UpdateUserInformation not implemented")
  411. }
  412. func (UnimplementedUserServer) GetUserInfo(context.Context, *emptypb.Empty) (*UserInfo, error) {
  413. return nil, status.Errorf(codes.Unimplemented, "method GetUserInfo not implemented")
  414. }
  415. func (UnimplementedUserServer) GetUserDBMsg(context.Context, *common.PersonIDParam) (*common.PersonMsg, error) {
  416. return nil, status.Errorf(codes.Unimplemented, "method GetUserDBMsg not implemented")
  417. }
  418. func (UnimplementedUserServer) SendPhoneCode(context.Context, *common.SendPhoneCodeRequest) (*emptypb.Empty, error) {
  419. return nil, status.Errorf(codes.Unimplemented, "method SendPhoneCode not implemented")
  420. }
  421. func (UnimplementedUserServer) CheckPhoneCode(context.Context, *common.CheckPhoneCodeRequest) (*emptypb.Empty, error) {
  422. return nil, status.Errorf(codes.Unimplemented, "method CheckPhoneCode not implemented")
  423. }
  424. func (UnimplementedUserServer) CheckUserPartnerIsRelationship(context.Context, *common.PartnerIDParam) (*chat.CheckUserPartnerIsRelationshipReply, error) {
  425. return nil, status.Errorf(codes.Unimplemented, "method CheckUserPartnerIsRelationship not implemented")
  426. }
  427. func (UnimplementedUserServer) CreateUserPersonRoom(context.Context, *common.PersonParam) (*chat.RoomReply, error) {
  428. return nil, status.Errorf(codes.Unimplemented, "method CreateUserPersonRoom not implemented")
  429. }
  430. func (UnimplementedUserServer) GetPartnerCircleInfo(context.Context, *KeyRequest) (*common.AddFriendMessageInfo, error) {
  431. return nil, status.Errorf(codes.Unimplemented, "method GetPartnerCircleInfo not implemented")
  432. }
  433. func (UnimplementedUserServer) UserGetHomeInfo(context.Context, *common.PersonParam) (*common.HomeInfo, error) {
  434. return nil, status.Errorf(codes.Unimplemented, "method UserGetHomeInfo not implemented")
  435. }
  436. func (UnimplementedUserServer) FindUserDBList(context.Context, *common.PersonIDList) (*common.PersonDBReply, error) {
  437. return nil, status.Errorf(codes.Unimplemented, "method FindUserDBList not implemented")
  438. }
  439. func (UnimplementedUserServer) FindLookList(context.Context, *common.ListPageRequest) (*statistics.LookAndLikeListReply, error) {
  440. return nil, status.Errorf(codes.Unimplemented, "method FindLookList not implemented")
  441. }
  442. func (UnimplementedUserServer) FindLikeList(context.Context, *common.ListPageRequest) (*statistics.LookAndLikeListReply, error) {
  443. return nil, status.Errorf(codes.Unimplemented, "method FindLikeList not implemented")
  444. }
  445. func (UnimplementedUserServer) FindLikedList(context.Context, *common.ListPageRequest) (*statistics.LookAndLikeListReply, error) {
  446. return nil, status.Errorf(codes.Unimplemented, "method FindLikedList not implemented")
  447. }
  448. func (UnimplementedUserServer) GetLookAndLikeStatisticsMessage(context.Context, *emptypb.Empty) (*statistics.LookAndLikeMessageReply, error) {
  449. return nil, status.Errorf(codes.Unimplemented, "method GetLookAndLikeStatisticsMessage not implemented")
  450. }
  451. func (UnimplementedUserServer) WxConf(context.Context, *common.WxConfReq) (*common.WxConfResponse, error) {
  452. return nil, status.Errorf(codes.Unimplemented, "method WxConf not implemented")
  453. }
  454. func (UnimplementedUserServer) FindTagListBySex(context.Context, *common.SexReq) (*common.TagListReply, error) {
  455. return nil, status.Errorf(codes.Unimplemented, "method FindTagListBySex not implemented")
  456. }
  457. func (UnimplementedUserServer) FindOnlineList(context.Context, *common.ListPage2Request) (*common.OnlinePersonListReply, error) {
  458. return nil, status.Errorf(codes.Unimplemented, "method FindOnlineList not implemented")
  459. }
  460. func (UnimplementedUserServer) FindWithinSevenDayRoomList(context.Context, *common.ListPageRequest) (*UserFindChatListReply, error) {
  461. return nil, status.Errorf(codes.Unimplemented, "method FindWithinSevenDayRoomList not implemented")
  462. }
  463. func (UnimplementedUserServer) FindOverSevenDayRoomList(context.Context, *common.ListPageRequest) (*UserFindChatListReply, error) {
  464. return nil, status.Errorf(codes.Unimplemented, "method FindOverSevenDayRoomList not implemented")
  465. }
  466. func (UnimplementedUserServer) UserGetPersonLikedAndLooked(context.Context, *common.PersonParam) (*common.LookedAndLikedNum, error) {
  467. return nil, status.Errorf(codes.Unimplemented, "method UserGetPersonLikedAndLooked not implemented")
  468. }
  469. func (UnimplementedUserServer) GetUserBalance(context.Context, *emptypb.Empty) (*UserBalance, error) {
  470. return nil, status.Errorf(codes.Unimplemented, "method GetUserBalance not implemented")
  471. }
  472. func (UnimplementedUserServer) GetUserLookNum(context.Context, *emptypb.Empty) (*statistics.LookMessageReply, error) {
  473. return nil, status.Errorf(codes.Unimplemented, "method GetUserLookNum not implemented")
  474. }
  475. func (UnimplementedUserServer) FindChatRecordList(context.Context, *common.FindChatRecordListRequest) (*common.ChatRecordListReply, error) {
  476. return nil, status.Errorf(codes.Unimplemented, "method FindChatRecordList not implemented")
  477. }
  478. func (UnimplementedUserServer) FindChatRoomMsg(context.Context, *common.FindChatRoomMsgRequest) (*common.ChatRoomMsg, error) {
  479. return nil, status.Errorf(codes.Unimplemented, "method FindChatRoomMsg not implemented")
  480. }
  481. func (UnimplementedUserServer) GetUserIsLike(context.Context, *common.PersonParam) (*common.IsLike, error) {
  482. return nil, status.Errorf(codes.Unimplemented, "method GetUserIsLike not implemented")
  483. }
  484. func (UnimplementedUserServer) UserFinishInformation(context.Context, *emptypb.Empty) (*emptypb.Empty, error) {
  485. return nil, status.Errorf(codes.Unimplemented, "method UserFinishInformation not implemented")
  486. }
  487. func (UnimplementedUserServer) UserInformationStatus(context.Context, *emptypb.Empty) (*InformationStatus, error) {
  488. return nil, status.Errorf(codes.Unimplemented, "method UserInformationStatus not implemented")
  489. }
  490. func (UnimplementedUserServer) UserGetInformationAward(context.Context, *emptypb.Empty) (*emptypb.Empty, error) {
  491. return nil, status.Errorf(codes.Unimplemented, "method UserGetInformationAward not implemented")
  492. }
  493. func (UnimplementedUserServer) UserGetChatCard(context.Context, *common.PersonParam) (*ChatCardInfo, error) {
  494. return nil, status.Errorf(codes.Unimplemented, "method UserGetChatCard not implemented")
  495. }
  496. func (UnimplementedUserServer) UserLike(context.Context, *common.PersonParam) (*emptypb.Empty, error) {
  497. return nil, status.Errorf(codes.Unimplemented, "method UserLike not implemented")
  498. }
  499. func (UnimplementedUserServer) UserUnLike(context.Context, *common.PersonParam) (*emptypb.Empty, error) {
  500. return nil, status.Errorf(codes.Unimplemented, "method UserUnLike not implemented")
  501. }
  502. func (UnimplementedUserServer) mustEmbedUnimplementedUserServer() {}
  503. // UnsafeUserServer may be embedded to opt out of forward compatibility for this service.
  504. // Use of this interface is not recommended, as added methods to UserServer will
  505. // result in compilation errors.
  506. type UnsafeUserServer interface {
  507. mustEmbedUnimplementedUserServer()
  508. }
  509. func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer) {
  510. s.RegisterService(&User_ServiceDesc, srv)
  511. }
  512. func _User_UpdateUserInformation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  513. in := new(common.UpdateInformationRequest)
  514. if err := dec(in); err != nil {
  515. return nil, err
  516. }
  517. if interceptor == nil {
  518. return srv.(UserServer).UpdateUserInformation(ctx, in)
  519. }
  520. info := &grpc.UnaryServerInfo{
  521. Server: srv,
  522. FullMethod: "/api.user.User/UpdateUserInformation",
  523. }
  524. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  525. return srv.(UserServer).UpdateUserInformation(ctx, req.(*common.UpdateInformationRequest))
  526. }
  527. return interceptor(ctx, in, info, handler)
  528. }
  529. func _User_GetUserInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  530. in := new(emptypb.Empty)
  531. if err := dec(in); err != nil {
  532. return nil, err
  533. }
  534. if interceptor == nil {
  535. return srv.(UserServer).GetUserInfo(ctx, in)
  536. }
  537. info := &grpc.UnaryServerInfo{
  538. Server: srv,
  539. FullMethod: "/api.user.User/GetUserInfo",
  540. }
  541. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  542. return srv.(UserServer).GetUserInfo(ctx, req.(*emptypb.Empty))
  543. }
  544. return interceptor(ctx, in, info, handler)
  545. }
  546. func _User_GetUserDBMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  547. in := new(common.PersonIDParam)
  548. if err := dec(in); err != nil {
  549. return nil, err
  550. }
  551. if interceptor == nil {
  552. return srv.(UserServer).GetUserDBMsg(ctx, in)
  553. }
  554. info := &grpc.UnaryServerInfo{
  555. Server: srv,
  556. FullMethod: "/api.user.User/GetUserDBMsg",
  557. }
  558. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  559. return srv.(UserServer).GetUserDBMsg(ctx, req.(*common.PersonIDParam))
  560. }
  561. return interceptor(ctx, in, info, handler)
  562. }
  563. func _User_SendPhoneCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  564. in := new(common.SendPhoneCodeRequest)
  565. if err := dec(in); err != nil {
  566. return nil, err
  567. }
  568. if interceptor == nil {
  569. return srv.(UserServer).SendPhoneCode(ctx, in)
  570. }
  571. info := &grpc.UnaryServerInfo{
  572. Server: srv,
  573. FullMethod: "/api.user.User/SendPhoneCode",
  574. }
  575. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  576. return srv.(UserServer).SendPhoneCode(ctx, req.(*common.SendPhoneCodeRequest))
  577. }
  578. return interceptor(ctx, in, info, handler)
  579. }
  580. func _User_CheckPhoneCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  581. in := new(common.CheckPhoneCodeRequest)
  582. if err := dec(in); err != nil {
  583. return nil, err
  584. }
  585. if interceptor == nil {
  586. return srv.(UserServer).CheckPhoneCode(ctx, in)
  587. }
  588. info := &grpc.UnaryServerInfo{
  589. Server: srv,
  590. FullMethod: "/api.user.User/CheckPhoneCode",
  591. }
  592. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  593. return srv.(UserServer).CheckPhoneCode(ctx, req.(*common.CheckPhoneCodeRequest))
  594. }
  595. return interceptor(ctx, in, info, handler)
  596. }
  597. func _User_CheckUserPartnerIsRelationship_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  598. in := new(common.PartnerIDParam)
  599. if err := dec(in); err != nil {
  600. return nil, err
  601. }
  602. if interceptor == nil {
  603. return srv.(UserServer).CheckUserPartnerIsRelationship(ctx, in)
  604. }
  605. info := &grpc.UnaryServerInfo{
  606. Server: srv,
  607. FullMethod: "/api.user.User/CheckUserPartnerIsRelationship",
  608. }
  609. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  610. return srv.(UserServer).CheckUserPartnerIsRelationship(ctx, req.(*common.PartnerIDParam))
  611. }
  612. return interceptor(ctx, in, info, handler)
  613. }
  614. func _User_CreateUserPersonRoom_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  615. in := new(common.PersonParam)
  616. if err := dec(in); err != nil {
  617. return nil, err
  618. }
  619. if interceptor == nil {
  620. return srv.(UserServer).CreateUserPersonRoom(ctx, in)
  621. }
  622. info := &grpc.UnaryServerInfo{
  623. Server: srv,
  624. FullMethod: "/api.user.User/CreateUserPersonRoom",
  625. }
  626. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  627. return srv.(UserServer).CreateUserPersonRoom(ctx, req.(*common.PersonParam))
  628. }
  629. return interceptor(ctx, in, info, handler)
  630. }
  631. func _User_GetPartnerCircleInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  632. in := new(KeyRequest)
  633. if err := dec(in); err != nil {
  634. return nil, err
  635. }
  636. if interceptor == nil {
  637. return srv.(UserServer).GetPartnerCircleInfo(ctx, in)
  638. }
  639. info := &grpc.UnaryServerInfo{
  640. Server: srv,
  641. FullMethod: "/api.user.User/GetPartnerCircleInfo",
  642. }
  643. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  644. return srv.(UserServer).GetPartnerCircleInfo(ctx, req.(*KeyRequest))
  645. }
  646. return interceptor(ctx, in, info, handler)
  647. }
  648. func _User_UserGetHomeInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  649. in := new(common.PersonParam)
  650. if err := dec(in); err != nil {
  651. return nil, err
  652. }
  653. if interceptor == nil {
  654. return srv.(UserServer).UserGetHomeInfo(ctx, in)
  655. }
  656. info := &grpc.UnaryServerInfo{
  657. Server: srv,
  658. FullMethod: "/api.user.User/UserGetHomeInfo",
  659. }
  660. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  661. return srv.(UserServer).UserGetHomeInfo(ctx, req.(*common.PersonParam))
  662. }
  663. return interceptor(ctx, in, info, handler)
  664. }
  665. func _User_FindUserDBList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  666. in := new(common.PersonIDList)
  667. if err := dec(in); err != nil {
  668. return nil, err
  669. }
  670. if interceptor == nil {
  671. return srv.(UserServer).FindUserDBList(ctx, in)
  672. }
  673. info := &grpc.UnaryServerInfo{
  674. Server: srv,
  675. FullMethod: "/api.user.User/FindUserDBList",
  676. }
  677. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  678. return srv.(UserServer).FindUserDBList(ctx, req.(*common.PersonIDList))
  679. }
  680. return interceptor(ctx, in, info, handler)
  681. }
  682. func _User_FindLookList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  683. in := new(common.ListPageRequest)
  684. if err := dec(in); err != nil {
  685. return nil, err
  686. }
  687. if interceptor == nil {
  688. return srv.(UserServer).FindLookList(ctx, in)
  689. }
  690. info := &grpc.UnaryServerInfo{
  691. Server: srv,
  692. FullMethod: "/api.user.User/FindLookList",
  693. }
  694. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  695. return srv.(UserServer).FindLookList(ctx, req.(*common.ListPageRequest))
  696. }
  697. return interceptor(ctx, in, info, handler)
  698. }
  699. func _User_FindLikeList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  700. in := new(common.ListPageRequest)
  701. if err := dec(in); err != nil {
  702. return nil, err
  703. }
  704. if interceptor == nil {
  705. return srv.(UserServer).FindLikeList(ctx, in)
  706. }
  707. info := &grpc.UnaryServerInfo{
  708. Server: srv,
  709. FullMethod: "/api.user.User/FindLikeList",
  710. }
  711. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  712. return srv.(UserServer).FindLikeList(ctx, req.(*common.ListPageRequest))
  713. }
  714. return interceptor(ctx, in, info, handler)
  715. }
  716. func _User_FindLikedList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  717. in := new(common.ListPageRequest)
  718. if err := dec(in); err != nil {
  719. return nil, err
  720. }
  721. if interceptor == nil {
  722. return srv.(UserServer).FindLikedList(ctx, in)
  723. }
  724. info := &grpc.UnaryServerInfo{
  725. Server: srv,
  726. FullMethod: "/api.user.User/FindLikedList",
  727. }
  728. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  729. return srv.(UserServer).FindLikedList(ctx, req.(*common.ListPageRequest))
  730. }
  731. return interceptor(ctx, in, info, handler)
  732. }
  733. func _User_GetLookAndLikeStatisticsMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  734. in := new(emptypb.Empty)
  735. if err := dec(in); err != nil {
  736. return nil, err
  737. }
  738. if interceptor == nil {
  739. return srv.(UserServer).GetLookAndLikeStatisticsMessage(ctx, in)
  740. }
  741. info := &grpc.UnaryServerInfo{
  742. Server: srv,
  743. FullMethod: "/api.user.User/GetLookAndLikeStatisticsMessage",
  744. }
  745. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  746. return srv.(UserServer).GetLookAndLikeStatisticsMessage(ctx, req.(*emptypb.Empty))
  747. }
  748. return interceptor(ctx, in, info, handler)
  749. }
  750. func _User_WxConf_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  751. in := new(common.WxConfReq)
  752. if err := dec(in); err != nil {
  753. return nil, err
  754. }
  755. if interceptor == nil {
  756. return srv.(UserServer).WxConf(ctx, in)
  757. }
  758. info := &grpc.UnaryServerInfo{
  759. Server: srv,
  760. FullMethod: "/api.user.User/WxConf",
  761. }
  762. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  763. return srv.(UserServer).WxConf(ctx, req.(*common.WxConfReq))
  764. }
  765. return interceptor(ctx, in, info, handler)
  766. }
  767. func _User_FindTagListBySex_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  768. in := new(common.SexReq)
  769. if err := dec(in); err != nil {
  770. return nil, err
  771. }
  772. if interceptor == nil {
  773. return srv.(UserServer).FindTagListBySex(ctx, in)
  774. }
  775. info := &grpc.UnaryServerInfo{
  776. Server: srv,
  777. FullMethod: "/api.user.User/FindTagListBySex",
  778. }
  779. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  780. return srv.(UserServer).FindTagListBySex(ctx, req.(*common.SexReq))
  781. }
  782. return interceptor(ctx, in, info, handler)
  783. }
  784. func _User_FindOnlineList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  785. in := new(common.ListPage2Request)
  786. if err := dec(in); err != nil {
  787. return nil, err
  788. }
  789. if interceptor == nil {
  790. return srv.(UserServer).FindOnlineList(ctx, in)
  791. }
  792. info := &grpc.UnaryServerInfo{
  793. Server: srv,
  794. FullMethod: "/api.user.User/FindOnlineList",
  795. }
  796. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  797. return srv.(UserServer).FindOnlineList(ctx, req.(*common.ListPage2Request))
  798. }
  799. return interceptor(ctx, in, info, handler)
  800. }
  801. func _User_FindWithinSevenDayRoomList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  802. in := new(common.ListPageRequest)
  803. if err := dec(in); err != nil {
  804. return nil, err
  805. }
  806. if interceptor == nil {
  807. return srv.(UserServer).FindWithinSevenDayRoomList(ctx, in)
  808. }
  809. info := &grpc.UnaryServerInfo{
  810. Server: srv,
  811. FullMethod: "/api.user.User/FindWithinSevenDayRoomList",
  812. }
  813. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  814. return srv.(UserServer).FindWithinSevenDayRoomList(ctx, req.(*common.ListPageRequest))
  815. }
  816. return interceptor(ctx, in, info, handler)
  817. }
  818. func _User_FindOverSevenDayRoomList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  819. in := new(common.ListPageRequest)
  820. if err := dec(in); err != nil {
  821. return nil, err
  822. }
  823. if interceptor == nil {
  824. return srv.(UserServer).FindOverSevenDayRoomList(ctx, in)
  825. }
  826. info := &grpc.UnaryServerInfo{
  827. Server: srv,
  828. FullMethod: "/api.user.User/FindOverSevenDayRoomList",
  829. }
  830. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  831. return srv.(UserServer).FindOverSevenDayRoomList(ctx, req.(*common.ListPageRequest))
  832. }
  833. return interceptor(ctx, in, info, handler)
  834. }
  835. func _User_UserGetPersonLikedAndLooked_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  836. in := new(common.PersonParam)
  837. if err := dec(in); err != nil {
  838. return nil, err
  839. }
  840. if interceptor == nil {
  841. return srv.(UserServer).UserGetPersonLikedAndLooked(ctx, in)
  842. }
  843. info := &grpc.UnaryServerInfo{
  844. Server: srv,
  845. FullMethod: "/api.user.User/UserGetPersonLikedAndLooked",
  846. }
  847. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  848. return srv.(UserServer).UserGetPersonLikedAndLooked(ctx, req.(*common.PersonParam))
  849. }
  850. return interceptor(ctx, in, info, handler)
  851. }
  852. func _User_GetUserBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  853. in := new(emptypb.Empty)
  854. if err := dec(in); err != nil {
  855. return nil, err
  856. }
  857. if interceptor == nil {
  858. return srv.(UserServer).GetUserBalance(ctx, in)
  859. }
  860. info := &grpc.UnaryServerInfo{
  861. Server: srv,
  862. FullMethod: "/api.user.User/GetUserBalance",
  863. }
  864. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  865. return srv.(UserServer).GetUserBalance(ctx, req.(*emptypb.Empty))
  866. }
  867. return interceptor(ctx, in, info, handler)
  868. }
  869. func _User_GetUserLookNum_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  870. in := new(emptypb.Empty)
  871. if err := dec(in); err != nil {
  872. return nil, err
  873. }
  874. if interceptor == nil {
  875. return srv.(UserServer).GetUserLookNum(ctx, in)
  876. }
  877. info := &grpc.UnaryServerInfo{
  878. Server: srv,
  879. FullMethod: "/api.user.User/GetUserLookNum",
  880. }
  881. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  882. return srv.(UserServer).GetUserLookNum(ctx, req.(*emptypb.Empty))
  883. }
  884. return interceptor(ctx, in, info, handler)
  885. }
  886. func _User_FindChatRecordList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  887. in := new(common.FindChatRecordListRequest)
  888. if err := dec(in); err != nil {
  889. return nil, err
  890. }
  891. if interceptor == nil {
  892. return srv.(UserServer).FindChatRecordList(ctx, in)
  893. }
  894. info := &grpc.UnaryServerInfo{
  895. Server: srv,
  896. FullMethod: "/api.user.User/FindChatRecordList",
  897. }
  898. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  899. return srv.(UserServer).FindChatRecordList(ctx, req.(*common.FindChatRecordListRequest))
  900. }
  901. return interceptor(ctx, in, info, handler)
  902. }
  903. func _User_FindChatRoomMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  904. in := new(common.FindChatRoomMsgRequest)
  905. if err := dec(in); err != nil {
  906. return nil, err
  907. }
  908. if interceptor == nil {
  909. return srv.(UserServer).FindChatRoomMsg(ctx, in)
  910. }
  911. info := &grpc.UnaryServerInfo{
  912. Server: srv,
  913. FullMethod: "/api.user.User/FindChatRoomMsg",
  914. }
  915. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  916. return srv.(UserServer).FindChatRoomMsg(ctx, req.(*common.FindChatRoomMsgRequest))
  917. }
  918. return interceptor(ctx, in, info, handler)
  919. }
  920. func _User_GetUserIsLike_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  921. in := new(common.PersonParam)
  922. if err := dec(in); err != nil {
  923. return nil, err
  924. }
  925. if interceptor == nil {
  926. return srv.(UserServer).GetUserIsLike(ctx, in)
  927. }
  928. info := &grpc.UnaryServerInfo{
  929. Server: srv,
  930. FullMethod: "/api.user.User/GetUserIsLike",
  931. }
  932. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  933. return srv.(UserServer).GetUserIsLike(ctx, req.(*common.PersonParam))
  934. }
  935. return interceptor(ctx, in, info, handler)
  936. }
  937. func _User_UserFinishInformation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  938. in := new(emptypb.Empty)
  939. if err := dec(in); err != nil {
  940. return nil, err
  941. }
  942. if interceptor == nil {
  943. return srv.(UserServer).UserFinishInformation(ctx, in)
  944. }
  945. info := &grpc.UnaryServerInfo{
  946. Server: srv,
  947. FullMethod: "/api.user.User/UserFinishInformation",
  948. }
  949. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  950. return srv.(UserServer).UserFinishInformation(ctx, req.(*emptypb.Empty))
  951. }
  952. return interceptor(ctx, in, info, handler)
  953. }
  954. func _User_UserInformationStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  955. in := new(emptypb.Empty)
  956. if err := dec(in); err != nil {
  957. return nil, err
  958. }
  959. if interceptor == nil {
  960. return srv.(UserServer).UserInformationStatus(ctx, in)
  961. }
  962. info := &grpc.UnaryServerInfo{
  963. Server: srv,
  964. FullMethod: "/api.user.User/UserInformationStatus",
  965. }
  966. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  967. return srv.(UserServer).UserInformationStatus(ctx, req.(*emptypb.Empty))
  968. }
  969. return interceptor(ctx, in, info, handler)
  970. }
  971. func _User_UserGetInformationAward_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  972. in := new(emptypb.Empty)
  973. if err := dec(in); err != nil {
  974. return nil, err
  975. }
  976. if interceptor == nil {
  977. return srv.(UserServer).UserGetInformationAward(ctx, in)
  978. }
  979. info := &grpc.UnaryServerInfo{
  980. Server: srv,
  981. FullMethod: "/api.user.User/UserGetInformationAward",
  982. }
  983. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  984. return srv.(UserServer).UserGetInformationAward(ctx, req.(*emptypb.Empty))
  985. }
  986. return interceptor(ctx, in, info, handler)
  987. }
  988. func _User_UserGetChatCard_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  989. in := new(common.PersonParam)
  990. if err := dec(in); err != nil {
  991. return nil, err
  992. }
  993. if interceptor == nil {
  994. return srv.(UserServer).UserGetChatCard(ctx, in)
  995. }
  996. info := &grpc.UnaryServerInfo{
  997. Server: srv,
  998. FullMethod: "/api.user.User/UserGetChatCard",
  999. }
  1000. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1001. return srv.(UserServer).UserGetChatCard(ctx, req.(*common.PersonParam))
  1002. }
  1003. return interceptor(ctx, in, info, handler)
  1004. }
  1005. func _User_UserLike_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1006. in := new(common.PersonParam)
  1007. if err := dec(in); err != nil {
  1008. return nil, err
  1009. }
  1010. if interceptor == nil {
  1011. return srv.(UserServer).UserLike(ctx, in)
  1012. }
  1013. info := &grpc.UnaryServerInfo{
  1014. Server: srv,
  1015. FullMethod: "/api.user.User/UserLike",
  1016. }
  1017. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1018. return srv.(UserServer).UserLike(ctx, req.(*common.PersonParam))
  1019. }
  1020. return interceptor(ctx, in, info, handler)
  1021. }
  1022. func _User_UserUnLike_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1023. in := new(common.PersonParam)
  1024. if err := dec(in); err != nil {
  1025. return nil, err
  1026. }
  1027. if interceptor == nil {
  1028. return srv.(UserServer).UserUnLike(ctx, in)
  1029. }
  1030. info := &grpc.UnaryServerInfo{
  1031. Server: srv,
  1032. FullMethod: "/api.user.User/UserUnLike",
  1033. }
  1034. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1035. return srv.(UserServer).UserUnLike(ctx, req.(*common.PersonParam))
  1036. }
  1037. return interceptor(ctx, in, info, handler)
  1038. }
  1039. // User_ServiceDesc is the grpc.ServiceDesc for User service.
  1040. // It's only intended for direct use with grpc.RegisterService,
  1041. // and not to be introspected or modified (even as a copy)
  1042. var User_ServiceDesc = grpc.ServiceDesc{
  1043. ServiceName: "api.user.User",
  1044. HandlerType: (*UserServer)(nil),
  1045. Methods: []grpc.MethodDesc{
  1046. {
  1047. MethodName: "UpdateUserInformation",
  1048. Handler: _User_UpdateUserInformation_Handler,
  1049. },
  1050. {
  1051. MethodName: "GetUserInfo",
  1052. Handler: _User_GetUserInfo_Handler,
  1053. },
  1054. {
  1055. MethodName: "GetUserDBMsg",
  1056. Handler: _User_GetUserDBMsg_Handler,
  1057. },
  1058. {
  1059. MethodName: "SendPhoneCode",
  1060. Handler: _User_SendPhoneCode_Handler,
  1061. },
  1062. {
  1063. MethodName: "CheckPhoneCode",
  1064. Handler: _User_CheckPhoneCode_Handler,
  1065. },
  1066. {
  1067. MethodName: "CheckUserPartnerIsRelationship",
  1068. Handler: _User_CheckUserPartnerIsRelationship_Handler,
  1069. },
  1070. {
  1071. MethodName: "CreateUserPersonRoom",
  1072. Handler: _User_CreateUserPersonRoom_Handler,
  1073. },
  1074. {
  1075. MethodName: "GetPartnerCircleInfo",
  1076. Handler: _User_GetPartnerCircleInfo_Handler,
  1077. },
  1078. {
  1079. MethodName: "UserGetHomeInfo",
  1080. Handler: _User_UserGetHomeInfo_Handler,
  1081. },
  1082. {
  1083. MethodName: "FindUserDBList",
  1084. Handler: _User_FindUserDBList_Handler,
  1085. },
  1086. {
  1087. MethodName: "FindLookList",
  1088. Handler: _User_FindLookList_Handler,
  1089. },
  1090. {
  1091. MethodName: "FindLikeList",
  1092. Handler: _User_FindLikeList_Handler,
  1093. },
  1094. {
  1095. MethodName: "FindLikedList",
  1096. Handler: _User_FindLikedList_Handler,
  1097. },
  1098. {
  1099. MethodName: "GetLookAndLikeStatisticsMessage",
  1100. Handler: _User_GetLookAndLikeStatisticsMessage_Handler,
  1101. },
  1102. {
  1103. MethodName: "WxConf",
  1104. Handler: _User_WxConf_Handler,
  1105. },
  1106. {
  1107. MethodName: "FindTagListBySex",
  1108. Handler: _User_FindTagListBySex_Handler,
  1109. },
  1110. {
  1111. MethodName: "FindOnlineList",
  1112. Handler: _User_FindOnlineList_Handler,
  1113. },
  1114. {
  1115. MethodName: "FindWithinSevenDayRoomList",
  1116. Handler: _User_FindWithinSevenDayRoomList_Handler,
  1117. },
  1118. {
  1119. MethodName: "FindOverSevenDayRoomList",
  1120. Handler: _User_FindOverSevenDayRoomList_Handler,
  1121. },
  1122. {
  1123. MethodName: "UserGetPersonLikedAndLooked",
  1124. Handler: _User_UserGetPersonLikedAndLooked_Handler,
  1125. },
  1126. {
  1127. MethodName: "GetUserBalance",
  1128. Handler: _User_GetUserBalance_Handler,
  1129. },
  1130. {
  1131. MethodName: "GetUserLookNum",
  1132. Handler: _User_GetUserLookNum_Handler,
  1133. },
  1134. {
  1135. MethodName: "FindChatRecordList",
  1136. Handler: _User_FindChatRecordList_Handler,
  1137. },
  1138. {
  1139. MethodName: "FindChatRoomMsg",
  1140. Handler: _User_FindChatRoomMsg_Handler,
  1141. },
  1142. {
  1143. MethodName: "GetUserIsLike",
  1144. Handler: _User_GetUserIsLike_Handler,
  1145. },
  1146. {
  1147. MethodName: "UserFinishInformation",
  1148. Handler: _User_UserFinishInformation_Handler,
  1149. },
  1150. {
  1151. MethodName: "UserInformationStatus",
  1152. Handler: _User_UserInformationStatus_Handler,
  1153. },
  1154. {
  1155. MethodName: "UserGetInformationAward",
  1156. Handler: _User_UserGetInformationAward_Handler,
  1157. },
  1158. {
  1159. MethodName: "UserGetChatCard",
  1160. Handler: _User_UserGetChatCard_Handler,
  1161. },
  1162. {
  1163. MethodName: "UserLike",
  1164. Handler: _User_UserLike_Handler,
  1165. },
  1166. {
  1167. MethodName: "UserUnLike",
  1168. Handler: _User_UserUnLike_Handler,
  1169. },
  1170. },
  1171. Streams: []grpc.StreamDesc{},
  1172. Metadata: "user.proto",
  1173. }