partner_grpc.pb.go 50 KB

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