user_grpc.pb.go 45 KB

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