partner_grpc.pb.go 41 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013
  1. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
  2. package partner
  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. // PartnerClient is the client API for Partner 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 PartnerClient interface {
  21. // 获取接待员的个人信息
  22. GetPartnerInfo(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*PartnerInfo, error)
  23. // 获取接待员的金额信息
  24. GetPartnerBalance(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*PartnerBalance, error)
  25. GetPartnerDBBalance(ctx context.Context, in *common.PartnerIDParam, opts ...grpc.CallOption) (*PartnerDBBalance, error)
  26. // 获取用户详情
  27. GetPartnerDBMsg(ctx context.Context, in *common.PersonIDParam, opts ...grpc.CallOption) (*common.PersonMsg, error)
  28. // 获取接待员的部分信息
  29. GetPartnerMessage(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*PartnerMessage, error)
  30. // 获取接待员访问数详情
  31. GetPartnerLookNum(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*statistics.LookMessageReply, error)
  32. // 接待员发送验证码
  33. SendPhoneCode(ctx context.Context, in *common.SendPhoneCodeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  34. // 接待员验证验证码
  35. CheckPhoneCode(ctx context.Context, in *common.CheckPhoneCodeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  36. // 获取接待员的确认通过页面信息
  37. GetPartnerCircleInfo(ctx context.Context, in *common.PartnerIDParam, opts ...grpc.CallOption) (*common.AddFriendMessageInfo, error)
  38. // 更新接待员的信息
  39. UpdatePartnerInformation(ctx context.Context, in *common.UpdateInformationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  40. GetRandomPartnerInfo(ctx context.Context, in *GetRandomPartnerRequest, opts ...grpc.CallOption) (*RandomPartnerInfo, error)
  41. // 接待员获取ta的主页信息
  42. PartnerGetHomeInfo(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*common.HomeInfo, error)
  43. // 接待员获取ta的主页访客、关注数
  44. PartnerGetPersonLikedAndLooked(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*common.LookedAndLikedNum, error)
  45. // 查看看过我的列表
  46. FindLookList(ctx context.Context, in *common.ListPageRequest, opts ...grpc.CallOption) (*statistics.LookAndLikeListReply, error)
  47. // 通过接待员IDs查看接待员信息列表
  48. FindPartnerDBList(ctx context.Context, in *common.PersonIDList, opts ...grpc.CallOption) (*common.PersonDBReply, error)
  49. // 微信SDK初始化
  50. WxConf(ctx context.Context, in *common.WxConfReq, opts ...grpc.CallOption) (*common.WxConfResponse, error)
  51. // 创建用户与接待员的关联
  52. CreateUserPartnerRoom(ctx context.Context, in *common.PersonIDParam, opts ...grpc.CallOption) (*chat.RoomReply, error)
  53. // 获取标签列表
  54. FindTagListBySex(ctx context.Context, in *common.SexReq, opts ...grpc.CallOption) (*common.TagListReply, error)
  55. // 获取在线列表
  56. FindOnlineList(ctx context.Context, in *common.ListPage2Request, opts ...grpc.CallOption) (*common.OnlinePersonListReply, error)
  57. // 未读列表(排队中)
  58. FindUnReplyRoomList(ctx context.Context, in *common.ListPageRequest, opts ...grpc.CallOption) (*chat.PartnerFindRoomListReply, error)
  59. // 七天内列表(当前会话)
  60. FindWithinSevenDayRoomList(ctx context.Context, in *common.ListPageRequest, opts ...grpc.CallOption) (*chat.PartnerFindRoomListReply, error)
  61. // 七天外列表(更早的聊天记录)
  62. FindOverSevenDayRoomList(ctx context.Context, in *common.ListPageRequest, opts ...grpc.CallOption) (*chat.PartnerFindRoomListReply, error)
  63. // 接待者查询聊天记录
  64. FindChatRecordList(ctx context.Context, in *common.FindChatRecordListRequest, opts ...grpc.CallOption) (*common.ChatRecordListReply, error)
  65. // 接待者查询房间信息
  66. FindChatRoomMsg(ctx context.Context, in *common.FindChatRoomMsgRequest, opts ...grpc.CallOption) (*common.ChatRoomMsg, error)
  67. AddPartnerBalance(ctx context.Context, in *AddPartnerBalanceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  68. }
  69. type partnerClient struct {
  70. cc grpc.ClientConnInterface
  71. }
  72. func NewPartnerClient(cc grpc.ClientConnInterface) PartnerClient {
  73. return &partnerClient{cc}
  74. }
  75. func (c *partnerClient) GetPartnerInfo(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*PartnerInfo, error) {
  76. out := new(PartnerInfo)
  77. err := c.cc.Invoke(ctx, "/api.partner.Partner/GetPartnerInfo", in, out, opts...)
  78. if err != nil {
  79. return nil, err
  80. }
  81. return out, nil
  82. }
  83. func (c *partnerClient) GetPartnerBalance(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*PartnerBalance, error) {
  84. out := new(PartnerBalance)
  85. err := c.cc.Invoke(ctx, "/api.partner.Partner/GetPartnerBalance", in, out, opts...)
  86. if err != nil {
  87. return nil, err
  88. }
  89. return out, nil
  90. }
  91. func (c *partnerClient) GetPartnerDBBalance(ctx context.Context, in *common.PartnerIDParam, opts ...grpc.CallOption) (*PartnerDBBalance, error) {
  92. out := new(PartnerDBBalance)
  93. err := c.cc.Invoke(ctx, "/api.partner.Partner/GetPartnerDBBalance", in, out, opts...)
  94. if err != nil {
  95. return nil, err
  96. }
  97. return out, nil
  98. }
  99. func (c *partnerClient) GetPartnerDBMsg(ctx context.Context, in *common.PersonIDParam, opts ...grpc.CallOption) (*common.PersonMsg, error) {
  100. out := new(common.PersonMsg)
  101. err := c.cc.Invoke(ctx, "/api.partner.Partner/GetPartnerDBMsg", in, out, opts...)
  102. if err != nil {
  103. return nil, err
  104. }
  105. return out, nil
  106. }
  107. func (c *partnerClient) GetPartnerMessage(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*PartnerMessage, error) {
  108. out := new(PartnerMessage)
  109. err := c.cc.Invoke(ctx, "/api.partner.Partner/GetPartnerMessage", in, out, opts...)
  110. if err != nil {
  111. return nil, err
  112. }
  113. return out, nil
  114. }
  115. func (c *partnerClient) GetPartnerLookNum(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*statistics.LookMessageReply, error) {
  116. out := new(statistics.LookMessageReply)
  117. err := c.cc.Invoke(ctx, "/api.partner.Partner/GetPartnerLookNum", in, out, opts...)
  118. if err != nil {
  119. return nil, err
  120. }
  121. return out, nil
  122. }
  123. func (c *partnerClient) SendPhoneCode(ctx context.Context, in *common.SendPhoneCodeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  124. out := new(emptypb.Empty)
  125. err := c.cc.Invoke(ctx, "/api.partner.Partner/SendPhoneCode", in, out, opts...)
  126. if err != nil {
  127. return nil, err
  128. }
  129. return out, nil
  130. }
  131. func (c *partnerClient) CheckPhoneCode(ctx context.Context, in *common.CheckPhoneCodeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  132. out := new(emptypb.Empty)
  133. err := c.cc.Invoke(ctx, "/api.partner.Partner/CheckPhoneCode", in, out, opts...)
  134. if err != nil {
  135. return nil, err
  136. }
  137. return out, nil
  138. }
  139. func (c *partnerClient) GetPartnerCircleInfo(ctx context.Context, in *common.PartnerIDParam, opts ...grpc.CallOption) (*common.AddFriendMessageInfo, error) {
  140. out := new(common.AddFriendMessageInfo)
  141. err := c.cc.Invoke(ctx, "/api.partner.Partner/GetPartnerCircleInfo", in, out, opts...)
  142. if err != nil {
  143. return nil, err
  144. }
  145. return out, nil
  146. }
  147. func (c *partnerClient) UpdatePartnerInformation(ctx context.Context, in *common.UpdateInformationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  148. out := new(emptypb.Empty)
  149. err := c.cc.Invoke(ctx, "/api.partner.Partner/UpdatePartnerInformation", in, out, opts...)
  150. if err != nil {
  151. return nil, err
  152. }
  153. return out, nil
  154. }
  155. func (c *partnerClient) GetRandomPartnerInfo(ctx context.Context, in *GetRandomPartnerRequest, opts ...grpc.CallOption) (*RandomPartnerInfo, error) {
  156. out := new(RandomPartnerInfo)
  157. err := c.cc.Invoke(ctx, "/api.partner.Partner/GetRandomPartnerInfo", in, out, opts...)
  158. if err != nil {
  159. return nil, err
  160. }
  161. return out, nil
  162. }
  163. func (c *partnerClient) PartnerGetHomeInfo(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*common.HomeInfo, error) {
  164. out := new(common.HomeInfo)
  165. err := c.cc.Invoke(ctx, "/api.partner.Partner/PartnerGetHomeInfo", in, out, opts...)
  166. if err != nil {
  167. return nil, err
  168. }
  169. return out, nil
  170. }
  171. func (c *partnerClient) PartnerGetPersonLikedAndLooked(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*common.LookedAndLikedNum, error) {
  172. out := new(common.LookedAndLikedNum)
  173. err := c.cc.Invoke(ctx, "/api.partner.Partner/PartnerGetPersonLikedAndLooked", in, out, opts...)
  174. if err != nil {
  175. return nil, err
  176. }
  177. return out, nil
  178. }
  179. func (c *partnerClient) FindLookList(ctx context.Context, in *common.ListPageRequest, opts ...grpc.CallOption) (*statistics.LookAndLikeListReply, error) {
  180. out := new(statistics.LookAndLikeListReply)
  181. err := c.cc.Invoke(ctx, "/api.partner.Partner/FindLookList", in, out, opts...)
  182. if err != nil {
  183. return nil, err
  184. }
  185. return out, nil
  186. }
  187. func (c *partnerClient) FindPartnerDBList(ctx context.Context, in *common.PersonIDList, opts ...grpc.CallOption) (*common.PersonDBReply, error) {
  188. out := new(common.PersonDBReply)
  189. err := c.cc.Invoke(ctx, "/api.partner.Partner/FindPartnerDBList", in, out, opts...)
  190. if err != nil {
  191. return nil, err
  192. }
  193. return out, nil
  194. }
  195. func (c *partnerClient) WxConf(ctx context.Context, in *common.WxConfReq, opts ...grpc.CallOption) (*common.WxConfResponse, error) {
  196. out := new(common.WxConfResponse)
  197. err := c.cc.Invoke(ctx, "/api.partner.Partner/WxConf", in, out, opts...)
  198. if err != nil {
  199. return nil, err
  200. }
  201. return out, nil
  202. }
  203. func (c *partnerClient) CreateUserPartnerRoom(ctx context.Context, in *common.PersonIDParam, opts ...grpc.CallOption) (*chat.RoomReply, error) {
  204. out := new(chat.RoomReply)
  205. err := c.cc.Invoke(ctx, "/api.partner.Partner/CreateUserPartnerRoom", in, out, opts...)
  206. if err != nil {
  207. return nil, err
  208. }
  209. return out, nil
  210. }
  211. func (c *partnerClient) FindTagListBySex(ctx context.Context, in *common.SexReq, opts ...grpc.CallOption) (*common.TagListReply, error) {
  212. out := new(common.TagListReply)
  213. err := c.cc.Invoke(ctx, "/api.partner.Partner/FindTagListBySex", in, out, opts...)
  214. if err != nil {
  215. return nil, err
  216. }
  217. return out, nil
  218. }
  219. func (c *partnerClient) FindOnlineList(ctx context.Context, in *common.ListPage2Request, opts ...grpc.CallOption) (*common.OnlinePersonListReply, error) {
  220. out := new(common.OnlinePersonListReply)
  221. err := c.cc.Invoke(ctx, "/api.partner.Partner/FindOnlineList", in, out, opts...)
  222. if err != nil {
  223. return nil, err
  224. }
  225. return out, nil
  226. }
  227. func (c *partnerClient) FindUnReplyRoomList(ctx context.Context, in *common.ListPageRequest, opts ...grpc.CallOption) (*chat.PartnerFindRoomListReply, error) {
  228. out := new(chat.PartnerFindRoomListReply)
  229. err := c.cc.Invoke(ctx, "/api.partner.Partner/FindUnReplyRoomList", in, out, opts...)
  230. if err != nil {
  231. return nil, err
  232. }
  233. return out, nil
  234. }
  235. func (c *partnerClient) FindWithinSevenDayRoomList(ctx context.Context, in *common.ListPageRequest, opts ...grpc.CallOption) (*chat.PartnerFindRoomListReply, error) {
  236. out := new(chat.PartnerFindRoomListReply)
  237. err := c.cc.Invoke(ctx, "/api.partner.Partner/FindWithinSevenDayRoomList", in, out, opts...)
  238. if err != nil {
  239. return nil, err
  240. }
  241. return out, nil
  242. }
  243. func (c *partnerClient) FindOverSevenDayRoomList(ctx context.Context, in *common.ListPageRequest, opts ...grpc.CallOption) (*chat.PartnerFindRoomListReply, error) {
  244. out := new(chat.PartnerFindRoomListReply)
  245. err := c.cc.Invoke(ctx, "/api.partner.Partner/FindOverSevenDayRoomList", in, out, opts...)
  246. if err != nil {
  247. return nil, err
  248. }
  249. return out, nil
  250. }
  251. func (c *partnerClient) FindChatRecordList(ctx context.Context, in *common.FindChatRecordListRequest, opts ...grpc.CallOption) (*common.ChatRecordListReply, error) {
  252. out := new(common.ChatRecordListReply)
  253. err := c.cc.Invoke(ctx, "/api.partner.Partner/FindChatRecordList", in, out, opts...)
  254. if err != nil {
  255. return nil, err
  256. }
  257. return out, nil
  258. }
  259. func (c *partnerClient) FindChatRoomMsg(ctx context.Context, in *common.FindChatRoomMsgRequest, opts ...grpc.CallOption) (*common.ChatRoomMsg, error) {
  260. out := new(common.ChatRoomMsg)
  261. err := c.cc.Invoke(ctx, "/api.partner.Partner/FindChatRoomMsg", in, out, opts...)
  262. if err != nil {
  263. return nil, err
  264. }
  265. return out, nil
  266. }
  267. func (c *partnerClient) AddPartnerBalance(ctx context.Context, in *AddPartnerBalanceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  268. out := new(emptypb.Empty)
  269. err := c.cc.Invoke(ctx, "/api.partner.Partner/AddPartnerBalance", in, out, opts...)
  270. if err != nil {
  271. return nil, err
  272. }
  273. return out, nil
  274. }
  275. // PartnerServer is the server API for Partner service.
  276. // All implementations must embed UnimplementedPartnerServer
  277. // for forward compatibility
  278. type PartnerServer interface {
  279. // 获取接待员的个人信息
  280. GetPartnerInfo(context.Context, *emptypb.Empty) (*PartnerInfo, error)
  281. // 获取接待员的金额信息
  282. GetPartnerBalance(context.Context, *emptypb.Empty) (*PartnerBalance, error)
  283. GetPartnerDBBalance(context.Context, *common.PartnerIDParam) (*PartnerDBBalance, error)
  284. // 获取用户详情
  285. GetPartnerDBMsg(context.Context, *common.PersonIDParam) (*common.PersonMsg, error)
  286. // 获取接待员的部分信息
  287. GetPartnerMessage(context.Context, *emptypb.Empty) (*PartnerMessage, error)
  288. // 获取接待员访问数详情
  289. GetPartnerLookNum(context.Context, *emptypb.Empty) (*statistics.LookMessageReply, error)
  290. // 接待员发送验证码
  291. SendPhoneCode(context.Context, *common.SendPhoneCodeRequest) (*emptypb.Empty, error)
  292. // 接待员验证验证码
  293. CheckPhoneCode(context.Context, *common.CheckPhoneCodeRequest) (*emptypb.Empty, error)
  294. // 获取接待员的确认通过页面信息
  295. GetPartnerCircleInfo(context.Context, *common.PartnerIDParam) (*common.AddFriendMessageInfo, error)
  296. // 更新接待员的信息
  297. UpdatePartnerInformation(context.Context, *common.UpdateInformationRequest) (*emptypb.Empty, error)
  298. GetRandomPartnerInfo(context.Context, *GetRandomPartnerRequest) (*RandomPartnerInfo, error)
  299. // 接待员获取ta的主页信息
  300. PartnerGetHomeInfo(context.Context, *common.PersonParam) (*common.HomeInfo, error)
  301. // 接待员获取ta的主页访客、关注数
  302. PartnerGetPersonLikedAndLooked(context.Context, *common.PersonParam) (*common.LookedAndLikedNum, error)
  303. // 查看看过我的列表
  304. FindLookList(context.Context, *common.ListPageRequest) (*statistics.LookAndLikeListReply, error)
  305. // 通过接待员IDs查看接待员信息列表
  306. FindPartnerDBList(context.Context, *common.PersonIDList) (*common.PersonDBReply, error)
  307. // 微信SDK初始化
  308. WxConf(context.Context, *common.WxConfReq) (*common.WxConfResponse, error)
  309. // 创建用户与接待员的关联
  310. CreateUserPartnerRoom(context.Context, *common.PersonIDParam) (*chat.RoomReply, error)
  311. // 获取标签列表
  312. FindTagListBySex(context.Context, *common.SexReq) (*common.TagListReply, error)
  313. // 获取在线列表
  314. FindOnlineList(context.Context, *common.ListPage2Request) (*common.OnlinePersonListReply, error)
  315. // 未读列表(排队中)
  316. FindUnReplyRoomList(context.Context, *common.ListPageRequest) (*chat.PartnerFindRoomListReply, error)
  317. // 七天内列表(当前会话)
  318. FindWithinSevenDayRoomList(context.Context, *common.ListPageRequest) (*chat.PartnerFindRoomListReply, error)
  319. // 七天外列表(更早的聊天记录)
  320. FindOverSevenDayRoomList(context.Context, *common.ListPageRequest) (*chat.PartnerFindRoomListReply, error)
  321. // 接待者查询聊天记录
  322. FindChatRecordList(context.Context, *common.FindChatRecordListRequest) (*common.ChatRecordListReply, error)
  323. // 接待者查询房间信息
  324. FindChatRoomMsg(context.Context, *common.FindChatRoomMsgRequest) (*common.ChatRoomMsg, error)
  325. AddPartnerBalance(context.Context, *AddPartnerBalanceRequest) (*emptypb.Empty, error)
  326. mustEmbedUnimplementedPartnerServer()
  327. }
  328. // UnimplementedPartnerServer must be embedded to have forward compatible implementations.
  329. type UnimplementedPartnerServer struct {
  330. }
  331. func (UnimplementedPartnerServer) GetPartnerInfo(context.Context, *emptypb.Empty) (*PartnerInfo, error) {
  332. return nil, status.Errorf(codes.Unimplemented, "method GetPartnerInfo not implemented")
  333. }
  334. func (UnimplementedPartnerServer) GetPartnerBalance(context.Context, *emptypb.Empty) (*PartnerBalance, error) {
  335. return nil, status.Errorf(codes.Unimplemented, "method GetPartnerBalance not implemented")
  336. }
  337. func (UnimplementedPartnerServer) GetPartnerDBBalance(context.Context, *common.PartnerIDParam) (*PartnerDBBalance, error) {
  338. return nil, status.Errorf(codes.Unimplemented, "method GetPartnerDBBalance not implemented")
  339. }
  340. func (UnimplementedPartnerServer) GetPartnerDBMsg(context.Context, *common.PersonIDParam) (*common.PersonMsg, error) {
  341. return nil, status.Errorf(codes.Unimplemented, "method GetPartnerDBMsg not implemented")
  342. }
  343. func (UnimplementedPartnerServer) GetPartnerMessage(context.Context, *emptypb.Empty) (*PartnerMessage, error) {
  344. return nil, status.Errorf(codes.Unimplemented, "method GetPartnerMessage not implemented")
  345. }
  346. func (UnimplementedPartnerServer) GetPartnerLookNum(context.Context, *emptypb.Empty) (*statistics.LookMessageReply, error) {
  347. return nil, status.Errorf(codes.Unimplemented, "method GetPartnerLookNum not implemented")
  348. }
  349. func (UnimplementedPartnerServer) SendPhoneCode(context.Context, *common.SendPhoneCodeRequest) (*emptypb.Empty, error) {
  350. return nil, status.Errorf(codes.Unimplemented, "method SendPhoneCode not implemented")
  351. }
  352. func (UnimplementedPartnerServer) CheckPhoneCode(context.Context, *common.CheckPhoneCodeRequest) (*emptypb.Empty, error) {
  353. return nil, status.Errorf(codes.Unimplemented, "method CheckPhoneCode not implemented")
  354. }
  355. func (UnimplementedPartnerServer) GetPartnerCircleInfo(context.Context, *common.PartnerIDParam) (*common.AddFriendMessageInfo, error) {
  356. return nil, status.Errorf(codes.Unimplemented, "method GetPartnerCircleInfo not implemented")
  357. }
  358. func (UnimplementedPartnerServer) UpdatePartnerInformation(context.Context, *common.UpdateInformationRequest) (*emptypb.Empty, error) {
  359. return nil, status.Errorf(codes.Unimplemented, "method UpdatePartnerInformation not implemented")
  360. }
  361. func (UnimplementedPartnerServer) GetRandomPartnerInfo(context.Context, *GetRandomPartnerRequest) (*RandomPartnerInfo, error) {
  362. return nil, status.Errorf(codes.Unimplemented, "method GetRandomPartnerInfo not implemented")
  363. }
  364. func (UnimplementedPartnerServer) PartnerGetHomeInfo(context.Context, *common.PersonParam) (*common.HomeInfo, error) {
  365. return nil, status.Errorf(codes.Unimplemented, "method PartnerGetHomeInfo not implemented")
  366. }
  367. func (UnimplementedPartnerServer) PartnerGetPersonLikedAndLooked(context.Context, *common.PersonParam) (*common.LookedAndLikedNum, error) {
  368. return nil, status.Errorf(codes.Unimplemented, "method PartnerGetPersonLikedAndLooked not implemented")
  369. }
  370. func (UnimplementedPartnerServer) FindLookList(context.Context, *common.ListPageRequest) (*statistics.LookAndLikeListReply, error) {
  371. return nil, status.Errorf(codes.Unimplemented, "method FindLookList not implemented")
  372. }
  373. func (UnimplementedPartnerServer) FindPartnerDBList(context.Context, *common.PersonIDList) (*common.PersonDBReply, error) {
  374. return nil, status.Errorf(codes.Unimplemented, "method FindPartnerDBList not implemented")
  375. }
  376. func (UnimplementedPartnerServer) WxConf(context.Context, *common.WxConfReq) (*common.WxConfResponse, error) {
  377. return nil, status.Errorf(codes.Unimplemented, "method WxConf not implemented")
  378. }
  379. func (UnimplementedPartnerServer) CreateUserPartnerRoom(context.Context, *common.PersonIDParam) (*chat.RoomReply, error) {
  380. return nil, status.Errorf(codes.Unimplemented, "method CreateUserPartnerRoom not implemented")
  381. }
  382. func (UnimplementedPartnerServer) FindTagListBySex(context.Context, *common.SexReq) (*common.TagListReply, error) {
  383. return nil, status.Errorf(codes.Unimplemented, "method FindTagListBySex not implemented")
  384. }
  385. func (UnimplementedPartnerServer) FindOnlineList(context.Context, *common.ListPage2Request) (*common.OnlinePersonListReply, error) {
  386. return nil, status.Errorf(codes.Unimplemented, "method FindOnlineList not implemented")
  387. }
  388. func (UnimplementedPartnerServer) FindUnReplyRoomList(context.Context, *common.ListPageRequest) (*chat.PartnerFindRoomListReply, error) {
  389. return nil, status.Errorf(codes.Unimplemented, "method FindUnReplyRoomList not implemented")
  390. }
  391. func (UnimplementedPartnerServer) FindWithinSevenDayRoomList(context.Context, *common.ListPageRequest) (*chat.PartnerFindRoomListReply, error) {
  392. return nil, status.Errorf(codes.Unimplemented, "method FindWithinSevenDayRoomList not implemented")
  393. }
  394. func (UnimplementedPartnerServer) FindOverSevenDayRoomList(context.Context, *common.ListPageRequest) (*chat.PartnerFindRoomListReply, error) {
  395. return nil, status.Errorf(codes.Unimplemented, "method FindOverSevenDayRoomList not implemented")
  396. }
  397. func (UnimplementedPartnerServer) FindChatRecordList(context.Context, *common.FindChatRecordListRequest) (*common.ChatRecordListReply, error) {
  398. return nil, status.Errorf(codes.Unimplemented, "method FindChatRecordList not implemented")
  399. }
  400. func (UnimplementedPartnerServer) FindChatRoomMsg(context.Context, *common.FindChatRoomMsgRequest) (*common.ChatRoomMsg, error) {
  401. return nil, status.Errorf(codes.Unimplemented, "method FindChatRoomMsg not implemented")
  402. }
  403. func (UnimplementedPartnerServer) AddPartnerBalance(context.Context, *AddPartnerBalanceRequest) (*emptypb.Empty, error) {
  404. return nil, status.Errorf(codes.Unimplemented, "method AddPartnerBalance not implemented")
  405. }
  406. func (UnimplementedPartnerServer) mustEmbedUnimplementedPartnerServer() {}
  407. // UnsafePartnerServer may be embedded to opt out of forward compatibility for this service.
  408. // Use of this interface is not recommended, as added methods to PartnerServer will
  409. // result in compilation errors.
  410. type UnsafePartnerServer interface {
  411. mustEmbedUnimplementedPartnerServer()
  412. }
  413. func RegisterPartnerServer(s grpc.ServiceRegistrar, srv PartnerServer) {
  414. s.RegisterService(&Partner_ServiceDesc, srv)
  415. }
  416. func _Partner_GetPartnerInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  417. in := new(emptypb.Empty)
  418. if err := dec(in); err != nil {
  419. return nil, err
  420. }
  421. if interceptor == nil {
  422. return srv.(PartnerServer).GetPartnerInfo(ctx, in)
  423. }
  424. info := &grpc.UnaryServerInfo{
  425. Server: srv,
  426. FullMethod: "/api.partner.Partner/GetPartnerInfo",
  427. }
  428. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  429. return srv.(PartnerServer).GetPartnerInfo(ctx, req.(*emptypb.Empty))
  430. }
  431. return interceptor(ctx, in, info, handler)
  432. }
  433. func _Partner_GetPartnerBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  434. in := new(emptypb.Empty)
  435. if err := dec(in); err != nil {
  436. return nil, err
  437. }
  438. if interceptor == nil {
  439. return srv.(PartnerServer).GetPartnerBalance(ctx, in)
  440. }
  441. info := &grpc.UnaryServerInfo{
  442. Server: srv,
  443. FullMethod: "/api.partner.Partner/GetPartnerBalance",
  444. }
  445. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  446. return srv.(PartnerServer).GetPartnerBalance(ctx, req.(*emptypb.Empty))
  447. }
  448. return interceptor(ctx, in, info, handler)
  449. }
  450. func _Partner_GetPartnerDBBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  451. in := new(common.PartnerIDParam)
  452. if err := dec(in); err != nil {
  453. return nil, err
  454. }
  455. if interceptor == nil {
  456. return srv.(PartnerServer).GetPartnerDBBalance(ctx, in)
  457. }
  458. info := &grpc.UnaryServerInfo{
  459. Server: srv,
  460. FullMethod: "/api.partner.Partner/GetPartnerDBBalance",
  461. }
  462. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  463. return srv.(PartnerServer).GetPartnerDBBalance(ctx, req.(*common.PartnerIDParam))
  464. }
  465. return interceptor(ctx, in, info, handler)
  466. }
  467. func _Partner_GetPartnerDBMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  468. in := new(common.PersonIDParam)
  469. if err := dec(in); err != nil {
  470. return nil, err
  471. }
  472. if interceptor == nil {
  473. return srv.(PartnerServer).GetPartnerDBMsg(ctx, in)
  474. }
  475. info := &grpc.UnaryServerInfo{
  476. Server: srv,
  477. FullMethod: "/api.partner.Partner/GetPartnerDBMsg",
  478. }
  479. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  480. return srv.(PartnerServer).GetPartnerDBMsg(ctx, req.(*common.PersonIDParam))
  481. }
  482. return interceptor(ctx, in, info, handler)
  483. }
  484. func _Partner_GetPartnerMessage_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.(PartnerServer).GetPartnerMessage(ctx, in)
  491. }
  492. info := &grpc.UnaryServerInfo{
  493. Server: srv,
  494. FullMethod: "/api.partner.Partner/GetPartnerMessage",
  495. }
  496. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  497. return srv.(PartnerServer).GetPartnerMessage(ctx, req.(*emptypb.Empty))
  498. }
  499. return interceptor(ctx, in, info, handler)
  500. }
  501. func _Partner_GetPartnerLookNum_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  502. in := new(emptypb.Empty)
  503. if err := dec(in); err != nil {
  504. return nil, err
  505. }
  506. if interceptor == nil {
  507. return srv.(PartnerServer).GetPartnerLookNum(ctx, in)
  508. }
  509. info := &grpc.UnaryServerInfo{
  510. Server: srv,
  511. FullMethod: "/api.partner.Partner/GetPartnerLookNum",
  512. }
  513. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  514. return srv.(PartnerServer).GetPartnerLookNum(ctx, req.(*emptypb.Empty))
  515. }
  516. return interceptor(ctx, in, info, handler)
  517. }
  518. func _Partner_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.(PartnerServer).SendPhoneCode(ctx, in)
  525. }
  526. info := &grpc.UnaryServerInfo{
  527. Server: srv,
  528. FullMethod: "/api.partner.Partner/SendPhoneCode",
  529. }
  530. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  531. return srv.(PartnerServer).SendPhoneCode(ctx, req.(*common.SendPhoneCodeRequest))
  532. }
  533. return interceptor(ctx, in, info, handler)
  534. }
  535. func _Partner_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.(PartnerServer).CheckPhoneCode(ctx, in)
  542. }
  543. info := &grpc.UnaryServerInfo{
  544. Server: srv,
  545. FullMethod: "/api.partner.Partner/CheckPhoneCode",
  546. }
  547. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  548. return srv.(PartnerServer).CheckPhoneCode(ctx, req.(*common.CheckPhoneCodeRequest))
  549. }
  550. return interceptor(ctx, in, info, handler)
  551. }
  552. func _Partner_GetPartnerCircleInfo_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.(PartnerServer).GetPartnerCircleInfo(ctx, in)
  559. }
  560. info := &grpc.UnaryServerInfo{
  561. Server: srv,
  562. FullMethod: "/api.partner.Partner/GetPartnerCircleInfo",
  563. }
  564. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  565. return srv.(PartnerServer).GetPartnerCircleInfo(ctx, req.(*common.PartnerIDParam))
  566. }
  567. return interceptor(ctx, in, info, handler)
  568. }
  569. func _Partner_UpdatePartnerInformation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  570. in := new(common.UpdateInformationRequest)
  571. if err := dec(in); err != nil {
  572. return nil, err
  573. }
  574. if interceptor == nil {
  575. return srv.(PartnerServer).UpdatePartnerInformation(ctx, in)
  576. }
  577. info := &grpc.UnaryServerInfo{
  578. Server: srv,
  579. FullMethod: "/api.partner.Partner/UpdatePartnerInformation",
  580. }
  581. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  582. return srv.(PartnerServer).UpdatePartnerInformation(ctx, req.(*common.UpdateInformationRequest))
  583. }
  584. return interceptor(ctx, in, info, handler)
  585. }
  586. func _Partner_GetRandomPartnerInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  587. in := new(GetRandomPartnerRequest)
  588. if err := dec(in); err != nil {
  589. return nil, err
  590. }
  591. if interceptor == nil {
  592. return srv.(PartnerServer).GetRandomPartnerInfo(ctx, in)
  593. }
  594. info := &grpc.UnaryServerInfo{
  595. Server: srv,
  596. FullMethod: "/api.partner.Partner/GetRandomPartnerInfo",
  597. }
  598. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  599. return srv.(PartnerServer).GetRandomPartnerInfo(ctx, req.(*GetRandomPartnerRequest))
  600. }
  601. return interceptor(ctx, in, info, handler)
  602. }
  603. func _Partner_PartnerGetHomeInfo_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.(PartnerServer).PartnerGetHomeInfo(ctx, in)
  610. }
  611. info := &grpc.UnaryServerInfo{
  612. Server: srv,
  613. FullMethod: "/api.partner.Partner/PartnerGetHomeInfo",
  614. }
  615. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  616. return srv.(PartnerServer).PartnerGetHomeInfo(ctx, req.(*common.PersonParam))
  617. }
  618. return interceptor(ctx, in, info, handler)
  619. }
  620. func _Partner_PartnerGetPersonLikedAndLooked_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  621. in := new(common.PersonParam)
  622. if err := dec(in); err != nil {
  623. return nil, err
  624. }
  625. if interceptor == nil {
  626. return srv.(PartnerServer).PartnerGetPersonLikedAndLooked(ctx, in)
  627. }
  628. info := &grpc.UnaryServerInfo{
  629. Server: srv,
  630. FullMethod: "/api.partner.Partner/PartnerGetPersonLikedAndLooked",
  631. }
  632. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  633. return srv.(PartnerServer).PartnerGetPersonLikedAndLooked(ctx, req.(*common.PersonParam))
  634. }
  635. return interceptor(ctx, in, info, handler)
  636. }
  637. func _Partner_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.(PartnerServer).FindLookList(ctx, in)
  644. }
  645. info := &grpc.UnaryServerInfo{
  646. Server: srv,
  647. FullMethod: "/api.partner.Partner/FindLookList",
  648. }
  649. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  650. return srv.(PartnerServer).FindLookList(ctx, req.(*common.ListPageRequest))
  651. }
  652. return interceptor(ctx, in, info, handler)
  653. }
  654. func _Partner_FindPartnerDBList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  655. in := new(common.PersonIDList)
  656. if err := dec(in); err != nil {
  657. return nil, err
  658. }
  659. if interceptor == nil {
  660. return srv.(PartnerServer).FindPartnerDBList(ctx, in)
  661. }
  662. info := &grpc.UnaryServerInfo{
  663. Server: srv,
  664. FullMethod: "/api.partner.Partner/FindPartnerDBList",
  665. }
  666. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  667. return srv.(PartnerServer).FindPartnerDBList(ctx, req.(*common.PersonIDList))
  668. }
  669. return interceptor(ctx, in, info, handler)
  670. }
  671. func _Partner_WxConf_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  672. in := new(common.WxConfReq)
  673. if err := dec(in); err != nil {
  674. return nil, err
  675. }
  676. if interceptor == nil {
  677. return srv.(PartnerServer).WxConf(ctx, in)
  678. }
  679. info := &grpc.UnaryServerInfo{
  680. Server: srv,
  681. FullMethod: "/api.partner.Partner/WxConf",
  682. }
  683. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  684. return srv.(PartnerServer).WxConf(ctx, req.(*common.WxConfReq))
  685. }
  686. return interceptor(ctx, in, info, handler)
  687. }
  688. func _Partner_CreateUserPartnerRoom_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  689. in := new(common.PersonIDParam)
  690. if err := dec(in); err != nil {
  691. return nil, err
  692. }
  693. if interceptor == nil {
  694. return srv.(PartnerServer).CreateUserPartnerRoom(ctx, in)
  695. }
  696. info := &grpc.UnaryServerInfo{
  697. Server: srv,
  698. FullMethod: "/api.partner.Partner/CreateUserPartnerRoom",
  699. }
  700. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  701. return srv.(PartnerServer).CreateUserPartnerRoom(ctx, req.(*common.PersonIDParam))
  702. }
  703. return interceptor(ctx, in, info, handler)
  704. }
  705. func _Partner_FindTagListBySex_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  706. in := new(common.SexReq)
  707. if err := dec(in); err != nil {
  708. return nil, err
  709. }
  710. if interceptor == nil {
  711. return srv.(PartnerServer).FindTagListBySex(ctx, in)
  712. }
  713. info := &grpc.UnaryServerInfo{
  714. Server: srv,
  715. FullMethod: "/api.partner.Partner/FindTagListBySex",
  716. }
  717. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  718. return srv.(PartnerServer).FindTagListBySex(ctx, req.(*common.SexReq))
  719. }
  720. return interceptor(ctx, in, info, handler)
  721. }
  722. func _Partner_FindOnlineList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  723. in := new(common.ListPage2Request)
  724. if err := dec(in); err != nil {
  725. return nil, err
  726. }
  727. if interceptor == nil {
  728. return srv.(PartnerServer).FindOnlineList(ctx, in)
  729. }
  730. info := &grpc.UnaryServerInfo{
  731. Server: srv,
  732. FullMethod: "/api.partner.Partner/FindOnlineList",
  733. }
  734. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  735. return srv.(PartnerServer).FindOnlineList(ctx, req.(*common.ListPage2Request))
  736. }
  737. return interceptor(ctx, in, info, handler)
  738. }
  739. func _Partner_FindUnReplyRoomList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  740. in := new(common.ListPageRequest)
  741. if err := dec(in); err != nil {
  742. return nil, err
  743. }
  744. if interceptor == nil {
  745. return srv.(PartnerServer).FindUnReplyRoomList(ctx, in)
  746. }
  747. info := &grpc.UnaryServerInfo{
  748. Server: srv,
  749. FullMethod: "/api.partner.Partner/FindUnReplyRoomList",
  750. }
  751. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  752. return srv.(PartnerServer).FindUnReplyRoomList(ctx, req.(*common.ListPageRequest))
  753. }
  754. return interceptor(ctx, in, info, handler)
  755. }
  756. func _Partner_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.(PartnerServer).FindWithinSevenDayRoomList(ctx, in)
  763. }
  764. info := &grpc.UnaryServerInfo{
  765. Server: srv,
  766. FullMethod: "/api.partner.Partner/FindWithinSevenDayRoomList",
  767. }
  768. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  769. return srv.(PartnerServer).FindWithinSevenDayRoomList(ctx, req.(*common.ListPageRequest))
  770. }
  771. return interceptor(ctx, in, info, handler)
  772. }
  773. func _Partner_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.(PartnerServer).FindOverSevenDayRoomList(ctx, in)
  780. }
  781. info := &grpc.UnaryServerInfo{
  782. Server: srv,
  783. FullMethod: "/api.partner.Partner/FindOverSevenDayRoomList",
  784. }
  785. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  786. return srv.(PartnerServer).FindOverSevenDayRoomList(ctx, req.(*common.ListPageRequest))
  787. }
  788. return interceptor(ctx, in, info, handler)
  789. }
  790. func _Partner_FindChatRecordList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  791. in := new(common.FindChatRecordListRequest)
  792. if err := dec(in); err != nil {
  793. return nil, err
  794. }
  795. if interceptor == nil {
  796. return srv.(PartnerServer).FindChatRecordList(ctx, in)
  797. }
  798. info := &grpc.UnaryServerInfo{
  799. Server: srv,
  800. FullMethod: "/api.partner.Partner/FindChatRecordList",
  801. }
  802. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  803. return srv.(PartnerServer).FindChatRecordList(ctx, req.(*common.FindChatRecordListRequest))
  804. }
  805. return interceptor(ctx, in, info, handler)
  806. }
  807. func _Partner_FindChatRoomMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  808. in := new(common.FindChatRoomMsgRequest)
  809. if err := dec(in); err != nil {
  810. return nil, err
  811. }
  812. if interceptor == nil {
  813. return srv.(PartnerServer).FindChatRoomMsg(ctx, in)
  814. }
  815. info := &grpc.UnaryServerInfo{
  816. Server: srv,
  817. FullMethod: "/api.partner.Partner/FindChatRoomMsg",
  818. }
  819. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  820. return srv.(PartnerServer).FindChatRoomMsg(ctx, req.(*common.FindChatRoomMsgRequest))
  821. }
  822. return interceptor(ctx, in, info, handler)
  823. }
  824. func _Partner_AddPartnerBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  825. in := new(AddPartnerBalanceRequest)
  826. if err := dec(in); err != nil {
  827. return nil, err
  828. }
  829. if interceptor == nil {
  830. return srv.(PartnerServer).AddPartnerBalance(ctx, in)
  831. }
  832. info := &grpc.UnaryServerInfo{
  833. Server: srv,
  834. FullMethod: "/api.partner.Partner/AddPartnerBalance",
  835. }
  836. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  837. return srv.(PartnerServer).AddPartnerBalance(ctx, req.(*AddPartnerBalanceRequest))
  838. }
  839. return interceptor(ctx, in, info, handler)
  840. }
  841. // Partner_ServiceDesc is the grpc.ServiceDesc for Partner service.
  842. // It's only intended for direct use with grpc.RegisterService,
  843. // and not to be introspected or modified (even as a copy)
  844. var Partner_ServiceDesc = grpc.ServiceDesc{
  845. ServiceName: "api.partner.Partner",
  846. HandlerType: (*PartnerServer)(nil),
  847. Methods: []grpc.MethodDesc{
  848. {
  849. MethodName: "GetPartnerInfo",
  850. Handler: _Partner_GetPartnerInfo_Handler,
  851. },
  852. {
  853. MethodName: "GetPartnerBalance",
  854. Handler: _Partner_GetPartnerBalance_Handler,
  855. },
  856. {
  857. MethodName: "GetPartnerDBBalance",
  858. Handler: _Partner_GetPartnerDBBalance_Handler,
  859. },
  860. {
  861. MethodName: "GetPartnerDBMsg",
  862. Handler: _Partner_GetPartnerDBMsg_Handler,
  863. },
  864. {
  865. MethodName: "GetPartnerMessage",
  866. Handler: _Partner_GetPartnerMessage_Handler,
  867. },
  868. {
  869. MethodName: "GetPartnerLookNum",
  870. Handler: _Partner_GetPartnerLookNum_Handler,
  871. },
  872. {
  873. MethodName: "SendPhoneCode",
  874. Handler: _Partner_SendPhoneCode_Handler,
  875. },
  876. {
  877. MethodName: "CheckPhoneCode",
  878. Handler: _Partner_CheckPhoneCode_Handler,
  879. },
  880. {
  881. MethodName: "GetPartnerCircleInfo",
  882. Handler: _Partner_GetPartnerCircleInfo_Handler,
  883. },
  884. {
  885. MethodName: "UpdatePartnerInformation",
  886. Handler: _Partner_UpdatePartnerInformation_Handler,
  887. },
  888. {
  889. MethodName: "GetRandomPartnerInfo",
  890. Handler: _Partner_GetRandomPartnerInfo_Handler,
  891. },
  892. {
  893. MethodName: "PartnerGetHomeInfo",
  894. Handler: _Partner_PartnerGetHomeInfo_Handler,
  895. },
  896. {
  897. MethodName: "PartnerGetPersonLikedAndLooked",
  898. Handler: _Partner_PartnerGetPersonLikedAndLooked_Handler,
  899. },
  900. {
  901. MethodName: "FindLookList",
  902. Handler: _Partner_FindLookList_Handler,
  903. },
  904. {
  905. MethodName: "FindPartnerDBList",
  906. Handler: _Partner_FindPartnerDBList_Handler,
  907. },
  908. {
  909. MethodName: "WxConf",
  910. Handler: _Partner_WxConf_Handler,
  911. },
  912. {
  913. MethodName: "CreateUserPartnerRoom",
  914. Handler: _Partner_CreateUserPartnerRoom_Handler,
  915. },
  916. {
  917. MethodName: "FindTagListBySex",
  918. Handler: _Partner_FindTagListBySex_Handler,
  919. },
  920. {
  921. MethodName: "FindOnlineList",
  922. Handler: _Partner_FindOnlineList_Handler,
  923. },
  924. {
  925. MethodName: "FindUnReplyRoomList",
  926. Handler: _Partner_FindUnReplyRoomList_Handler,
  927. },
  928. {
  929. MethodName: "FindWithinSevenDayRoomList",
  930. Handler: _Partner_FindWithinSevenDayRoomList_Handler,
  931. },
  932. {
  933. MethodName: "FindOverSevenDayRoomList",
  934. Handler: _Partner_FindOverSevenDayRoomList_Handler,
  935. },
  936. {
  937. MethodName: "FindChatRecordList",
  938. Handler: _Partner_FindChatRecordList_Handler,
  939. },
  940. {
  941. MethodName: "FindChatRoomMsg",
  942. Handler: _Partner_FindChatRoomMsg_Handler,
  943. },
  944. {
  945. MethodName: "AddPartnerBalance",
  946. Handler: _Partner_AddPartnerBalance_Handler,
  947. },
  948. },
  949. Streams: []grpc.StreamDesc{},
  950. Metadata: "partner.proto",
  951. }