partner_grpc.pb.go 39 KB

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