partner_grpc.pb.go 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563
  1. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
  2. package partner
  3. import (
  4. context "context"
  5. common "git.ikuban.com/server/pw-protobuf/api/common"
  6. grpc "google.golang.org/grpc"
  7. codes "google.golang.org/grpc/codes"
  8. status "google.golang.org/grpc/status"
  9. emptypb "google.golang.org/protobuf/types/known/emptypb"
  10. )
  11. // This is a compile-time assertion to ensure that this generated file
  12. // is compatible with the grpc package it is being compiled against.
  13. // Requires gRPC-Go v1.32.0 or later.
  14. const _ = grpc.SupportPackageIsVersion7
  15. // PartnerClient is the client API for Partner service.
  16. //
  17. // 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.
  18. type PartnerClient interface {
  19. // ---manager---
  20. // 接待员审核列表
  21. FindExamineList(ctx context.Context, in *common.ListPage2Request, opts ...grpc.CallOption) (*FindExamineListReply, error)
  22. // 接待员审核
  23. ExaminePartner(ctx context.Context, in *ExaminePartnerRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  24. // 管理员登录
  25. ManagerLogin(ctx context.Context, in *common.ManagerLoginRequest, opts ...grpc.CallOption) (*common.LoginToken, error)
  26. // 审核记录列表
  27. FindExamineRecordList(ctx context.Context, in *FindExamineRecordListRequest, opts ...grpc.CallOption) (*FindExamineRecordListReply, error)
  28. // 当前在线人
  29. OnlinePerson(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*OnlinePersonReply, error)
  30. // 管理员查询房间列表
  31. ManagerFindRoomList(ctx context.Context, in *common.ManagerFindRoomListRequest, opts ...grpc.CallOption) (*common.ManagerFindRoomListReply, error)
  32. // 管理员查询聊天记录
  33. ManagerFindChatRecordList(ctx context.Context, in *common.ManagerFindChatRecordListRequest, opts ...grpc.CallOption) (*common.ChatRecordListReply, error)
  34. // 管理员查询纸条列表
  35. ManagerFindScripList(ctx context.Context, in *common.ManagerFindScripListRequest, opts ...grpc.CallOption) (*common.ManagerScripReply, error)
  36. // 管理员更新纸条文字
  37. ManagerUpdateScripText(ctx context.Context, in *common.ManagerUpdateScripTextRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  38. // 管理员更新纸条图片
  39. ManagerUpdateScripPicture(ctx context.Context, in *common.ManagerUpdateScripPictureRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  40. // 管理员删除纸条
  41. ManagerDeleteScrip(ctx context.Context, in *common.IDParam, opts ...grpc.CallOption) (*emptypb.Empty, error)
  42. // 管理员查询举报列表
  43. ManagerFindReportList(ctx context.Context, in *common.ManagerFindReportListRequest, opts ...grpc.CallOption) (*common.ManagerFindReportListReply, error)
  44. // 管理员查询某个举报者的举报详情列表
  45. ManagerFindReportDetailsList(ctx context.Context, in *common.ManagerFindReportDetailsListRequest, opts ...grpc.CallOption) (*common.ManagerFindReportDetailsListReply, error)
  46. }
  47. type partnerClient struct {
  48. cc grpc.ClientConnInterface
  49. }
  50. func NewPartnerClient(cc grpc.ClientConnInterface) PartnerClient {
  51. return &partnerClient{cc}
  52. }
  53. func (c *partnerClient) FindExamineList(ctx context.Context, in *common.ListPage2Request, opts ...grpc.CallOption) (*FindExamineListReply, error) {
  54. out := new(FindExamineListReply)
  55. err := c.cc.Invoke(ctx, "/api.partner.Partner/FindExamineList", in, out, opts...)
  56. if err != nil {
  57. return nil, err
  58. }
  59. return out, nil
  60. }
  61. func (c *partnerClient) ExaminePartner(ctx context.Context, in *ExaminePartnerRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  62. out := new(emptypb.Empty)
  63. err := c.cc.Invoke(ctx, "/api.partner.Partner/ExaminePartner", in, out, opts...)
  64. if err != nil {
  65. return nil, err
  66. }
  67. return out, nil
  68. }
  69. func (c *partnerClient) ManagerLogin(ctx context.Context, in *common.ManagerLoginRequest, opts ...grpc.CallOption) (*common.LoginToken, error) {
  70. out := new(common.LoginToken)
  71. err := c.cc.Invoke(ctx, "/api.partner.Partner/ManagerLogin", in, out, opts...)
  72. if err != nil {
  73. return nil, err
  74. }
  75. return out, nil
  76. }
  77. func (c *partnerClient) FindExamineRecordList(ctx context.Context, in *FindExamineRecordListRequest, opts ...grpc.CallOption) (*FindExamineRecordListReply, error) {
  78. out := new(FindExamineRecordListReply)
  79. err := c.cc.Invoke(ctx, "/api.partner.Partner/FindExamineRecordList", in, out, opts...)
  80. if err != nil {
  81. return nil, err
  82. }
  83. return out, nil
  84. }
  85. func (c *partnerClient) OnlinePerson(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*OnlinePersonReply, error) {
  86. out := new(OnlinePersonReply)
  87. err := c.cc.Invoke(ctx, "/api.partner.Partner/OnlinePerson", in, out, opts...)
  88. if err != nil {
  89. return nil, err
  90. }
  91. return out, nil
  92. }
  93. func (c *partnerClient) ManagerFindRoomList(ctx context.Context, in *common.ManagerFindRoomListRequest, opts ...grpc.CallOption) (*common.ManagerFindRoomListReply, error) {
  94. out := new(common.ManagerFindRoomListReply)
  95. err := c.cc.Invoke(ctx, "/api.partner.Partner/ManagerFindRoomList", in, out, opts...)
  96. if err != nil {
  97. return nil, err
  98. }
  99. return out, nil
  100. }
  101. func (c *partnerClient) ManagerFindChatRecordList(ctx context.Context, in *common.ManagerFindChatRecordListRequest, opts ...grpc.CallOption) (*common.ChatRecordListReply, error) {
  102. out := new(common.ChatRecordListReply)
  103. err := c.cc.Invoke(ctx, "/api.partner.Partner/ManagerFindChatRecordList", in, out, opts...)
  104. if err != nil {
  105. return nil, err
  106. }
  107. return out, nil
  108. }
  109. func (c *partnerClient) ManagerFindScripList(ctx context.Context, in *common.ManagerFindScripListRequest, opts ...grpc.CallOption) (*common.ManagerScripReply, error) {
  110. out := new(common.ManagerScripReply)
  111. err := c.cc.Invoke(ctx, "/api.partner.Partner/ManagerFindScripList", in, out, opts...)
  112. if err != nil {
  113. return nil, err
  114. }
  115. return out, nil
  116. }
  117. func (c *partnerClient) ManagerUpdateScripText(ctx context.Context, in *common.ManagerUpdateScripTextRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  118. out := new(emptypb.Empty)
  119. err := c.cc.Invoke(ctx, "/api.partner.Partner/ManagerUpdateScripText", in, out, opts...)
  120. if err != nil {
  121. return nil, err
  122. }
  123. return out, nil
  124. }
  125. func (c *partnerClient) ManagerUpdateScripPicture(ctx context.Context, in *common.ManagerUpdateScripPictureRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  126. out := new(emptypb.Empty)
  127. err := c.cc.Invoke(ctx, "/api.partner.Partner/ManagerUpdateScripPicture", in, out, opts...)
  128. if err != nil {
  129. return nil, err
  130. }
  131. return out, nil
  132. }
  133. func (c *partnerClient) ManagerDeleteScrip(ctx context.Context, in *common.IDParam, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  134. out := new(emptypb.Empty)
  135. err := c.cc.Invoke(ctx, "/api.partner.Partner/ManagerDeleteScrip", in, out, opts...)
  136. if err != nil {
  137. return nil, err
  138. }
  139. return out, nil
  140. }
  141. func (c *partnerClient) ManagerFindReportList(ctx context.Context, in *common.ManagerFindReportListRequest, opts ...grpc.CallOption) (*common.ManagerFindReportListReply, error) {
  142. out := new(common.ManagerFindReportListReply)
  143. err := c.cc.Invoke(ctx, "/api.partner.Partner/ManagerFindReportList", in, out, opts...)
  144. if err != nil {
  145. return nil, err
  146. }
  147. return out, nil
  148. }
  149. func (c *partnerClient) ManagerFindReportDetailsList(ctx context.Context, in *common.ManagerFindReportDetailsListRequest, opts ...grpc.CallOption) (*common.ManagerFindReportDetailsListReply, error) {
  150. out := new(common.ManagerFindReportDetailsListReply)
  151. err := c.cc.Invoke(ctx, "/api.partner.Partner/ManagerFindReportDetailsList", in, out, opts...)
  152. if err != nil {
  153. return nil, err
  154. }
  155. return out, nil
  156. }
  157. // PartnerServer is the server API for Partner service.
  158. // All implementations must embed UnimplementedPartnerServer
  159. // for forward compatibility
  160. type PartnerServer interface {
  161. // ---manager---
  162. // 接待员审核列表
  163. FindExamineList(context.Context, *common.ListPage2Request) (*FindExamineListReply, error)
  164. // 接待员审核
  165. ExaminePartner(context.Context, *ExaminePartnerRequest) (*emptypb.Empty, error)
  166. // 管理员登录
  167. ManagerLogin(context.Context, *common.ManagerLoginRequest) (*common.LoginToken, error)
  168. // 审核记录列表
  169. FindExamineRecordList(context.Context, *FindExamineRecordListRequest) (*FindExamineRecordListReply, error)
  170. // 当前在线人
  171. OnlinePerson(context.Context, *emptypb.Empty) (*OnlinePersonReply, error)
  172. // 管理员查询房间列表
  173. ManagerFindRoomList(context.Context, *common.ManagerFindRoomListRequest) (*common.ManagerFindRoomListReply, error)
  174. // 管理员查询聊天记录
  175. ManagerFindChatRecordList(context.Context, *common.ManagerFindChatRecordListRequest) (*common.ChatRecordListReply, error)
  176. // 管理员查询纸条列表
  177. ManagerFindScripList(context.Context, *common.ManagerFindScripListRequest) (*common.ManagerScripReply, error)
  178. // 管理员更新纸条文字
  179. ManagerUpdateScripText(context.Context, *common.ManagerUpdateScripTextRequest) (*emptypb.Empty, error)
  180. // 管理员更新纸条图片
  181. ManagerUpdateScripPicture(context.Context, *common.ManagerUpdateScripPictureRequest) (*emptypb.Empty, error)
  182. // 管理员删除纸条
  183. ManagerDeleteScrip(context.Context, *common.IDParam) (*emptypb.Empty, error)
  184. // 管理员查询举报列表
  185. ManagerFindReportList(context.Context, *common.ManagerFindReportListRequest) (*common.ManagerFindReportListReply, error)
  186. // 管理员查询某个举报者的举报详情列表
  187. ManagerFindReportDetailsList(context.Context, *common.ManagerFindReportDetailsListRequest) (*common.ManagerFindReportDetailsListReply, error)
  188. mustEmbedUnimplementedPartnerServer()
  189. }
  190. // UnimplementedPartnerServer must be embedded to have forward compatible implementations.
  191. type UnimplementedPartnerServer struct {
  192. }
  193. func (UnimplementedPartnerServer) FindExamineList(context.Context, *common.ListPage2Request) (*FindExamineListReply, error) {
  194. return nil, status.Errorf(codes.Unimplemented, "method FindExamineList not implemented")
  195. }
  196. func (UnimplementedPartnerServer) ExaminePartner(context.Context, *ExaminePartnerRequest) (*emptypb.Empty, error) {
  197. return nil, status.Errorf(codes.Unimplemented, "method ExaminePartner not implemented")
  198. }
  199. func (UnimplementedPartnerServer) ManagerLogin(context.Context, *common.ManagerLoginRequest) (*common.LoginToken, error) {
  200. return nil, status.Errorf(codes.Unimplemented, "method ManagerLogin not implemented")
  201. }
  202. func (UnimplementedPartnerServer) FindExamineRecordList(context.Context, *FindExamineRecordListRequest) (*FindExamineRecordListReply, error) {
  203. return nil, status.Errorf(codes.Unimplemented, "method FindExamineRecordList not implemented")
  204. }
  205. func (UnimplementedPartnerServer) OnlinePerson(context.Context, *emptypb.Empty) (*OnlinePersonReply, error) {
  206. return nil, status.Errorf(codes.Unimplemented, "method OnlinePerson not implemented")
  207. }
  208. func (UnimplementedPartnerServer) ManagerFindRoomList(context.Context, *common.ManagerFindRoomListRequest) (*common.ManagerFindRoomListReply, error) {
  209. return nil, status.Errorf(codes.Unimplemented, "method ManagerFindRoomList not implemented")
  210. }
  211. func (UnimplementedPartnerServer) ManagerFindChatRecordList(context.Context, *common.ManagerFindChatRecordListRequest) (*common.ChatRecordListReply, error) {
  212. return nil, status.Errorf(codes.Unimplemented, "method ManagerFindChatRecordList not implemented")
  213. }
  214. func (UnimplementedPartnerServer) ManagerFindScripList(context.Context, *common.ManagerFindScripListRequest) (*common.ManagerScripReply, error) {
  215. return nil, status.Errorf(codes.Unimplemented, "method ManagerFindScripList not implemented")
  216. }
  217. func (UnimplementedPartnerServer) ManagerUpdateScripText(context.Context, *common.ManagerUpdateScripTextRequest) (*emptypb.Empty, error) {
  218. return nil, status.Errorf(codes.Unimplemented, "method ManagerUpdateScripText not implemented")
  219. }
  220. func (UnimplementedPartnerServer) ManagerUpdateScripPicture(context.Context, *common.ManagerUpdateScripPictureRequest) (*emptypb.Empty, error) {
  221. return nil, status.Errorf(codes.Unimplemented, "method ManagerUpdateScripPicture not implemented")
  222. }
  223. func (UnimplementedPartnerServer) ManagerDeleteScrip(context.Context, *common.IDParam) (*emptypb.Empty, error) {
  224. return nil, status.Errorf(codes.Unimplemented, "method ManagerDeleteScrip not implemented")
  225. }
  226. func (UnimplementedPartnerServer) ManagerFindReportList(context.Context, *common.ManagerFindReportListRequest) (*common.ManagerFindReportListReply, error) {
  227. return nil, status.Errorf(codes.Unimplemented, "method ManagerFindReportList not implemented")
  228. }
  229. func (UnimplementedPartnerServer) ManagerFindReportDetailsList(context.Context, *common.ManagerFindReportDetailsListRequest) (*common.ManagerFindReportDetailsListReply, error) {
  230. return nil, status.Errorf(codes.Unimplemented, "method ManagerFindReportDetailsList not implemented")
  231. }
  232. func (UnimplementedPartnerServer) mustEmbedUnimplementedPartnerServer() {}
  233. // UnsafePartnerServer may be embedded to opt out of forward compatibility for this service.
  234. // Use of this interface is not recommended, as added methods to PartnerServer will
  235. // result in compilation errors.
  236. type UnsafePartnerServer interface {
  237. mustEmbedUnimplementedPartnerServer()
  238. }
  239. func RegisterPartnerServer(s grpc.ServiceRegistrar, srv PartnerServer) {
  240. s.RegisterService(&Partner_ServiceDesc, srv)
  241. }
  242. func _Partner_FindExamineList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  243. in := new(common.ListPage2Request)
  244. if err := dec(in); err != nil {
  245. return nil, err
  246. }
  247. if interceptor == nil {
  248. return srv.(PartnerServer).FindExamineList(ctx, in)
  249. }
  250. info := &grpc.UnaryServerInfo{
  251. Server: srv,
  252. FullMethod: "/api.partner.Partner/FindExamineList",
  253. }
  254. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  255. return srv.(PartnerServer).FindExamineList(ctx, req.(*common.ListPage2Request))
  256. }
  257. return interceptor(ctx, in, info, handler)
  258. }
  259. func _Partner_ExaminePartner_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  260. in := new(ExaminePartnerRequest)
  261. if err := dec(in); err != nil {
  262. return nil, err
  263. }
  264. if interceptor == nil {
  265. return srv.(PartnerServer).ExaminePartner(ctx, in)
  266. }
  267. info := &grpc.UnaryServerInfo{
  268. Server: srv,
  269. FullMethod: "/api.partner.Partner/ExaminePartner",
  270. }
  271. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  272. return srv.(PartnerServer).ExaminePartner(ctx, req.(*ExaminePartnerRequest))
  273. }
  274. return interceptor(ctx, in, info, handler)
  275. }
  276. func _Partner_ManagerLogin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  277. in := new(common.ManagerLoginRequest)
  278. if err := dec(in); err != nil {
  279. return nil, err
  280. }
  281. if interceptor == nil {
  282. return srv.(PartnerServer).ManagerLogin(ctx, in)
  283. }
  284. info := &grpc.UnaryServerInfo{
  285. Server: srv,
  286. FullMethod: "/api.partner.Partner/ManagerLogin",
  287. }
  288. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  289. return srv.(PartnerServer).ManagerLogin(ctx, req.(*common.ManagerLoginRequest))
  290. }
  291. return interceptor(ctx, in, info, handler)
  292. }
  293. func _Partner_FindExamineRecordList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  294. in := new(FindExamineRecordListRequest)
  295. if err := dec(in); err != nil {
  296. return nil, err
  297. }
  298. if interceptor == nil {
  299. return srv.(PartnerServer).FindExamineRecordList(ctx, in)
  300. }
  301. info := &grpc.UnaryServerInfo{
  302. Server: srv,
  303. FullMethod: "/api.partner.Partner/FindExamineRecordList",
  304. }
  305. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  306. return srv.(PartnerServer).FindExamineRecordList(ctx, req.(*FindExamineRecordListRequest))
  307. }
  308. return interceptor(ctx, in, info, handler)
  309. }
  310. func _Partner_OnlinePerson_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  311. in := new(emptypb.Empty)
  312. if err := dec(in); err != nil {
  313. return nil, err
  314. }
  315. if interceptor == nil {
  316. return srv.(PartnerServer).OnlinePerson(ctx, in)
  317. }
  318. info := &grpc.UnaryServerInfo{
  319. Server: srv,
  320. FullMethod: "/api.partner.Partner/OnlinePerson",
  321. }
  322. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  323. return srv.(PartnerServer).OnlinePerson(ctx, req.(*emptypb.Empty))
  324. }
  325. return interceptor(ctx, in, info, handler)
  326. }
  327. func _Partner_ManagerFindRoomList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  328. in := new(common.ManagerFindRoomListRequest)
  329. if err := dec(in); err != nil {
  330. return nil, err
  331. }
  332. if interceptor == nil {
  333. return srv.(PartnerServer).ManagerFindRoomList(ctx, in)
  334. }
  335. info := &grpc.UnaryServerInfo{
  336. Server: srv,
  337. FullMethod: "/api.partner.Partner/ManagerFindRoomList",
  338. }
  339. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  340. return srv.(PartnerServer).ManagerFindRoomList(ctx, req.(*common.ManagerFindRoomListRequest))
  341. }
  342. return interceptor(ctx, in, info, handler)
  343. }
  344. func _Partner_ManagerFindChatRecordList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  345. in := new(common.ManagerFindChatRecordListRequest)
  346. if err := dec(in); err != nil {
  347. return nil, err
  348. }
  349. if interceptor == nil {
  350. return srv.(PartnerServer).ManagerFindChatRecordList(ctx, in)
  351. }
  352. info := &grpc.UnaryServerInfo{
  353. Server: srv,
  354. FullMethod: "/api.partner.Partner/ManagerFindChatRecordList",
  355. }
  356. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  357. return srv.(PartnerServer).ManagerFindChatRecordList(ctx, req.(*common.ManagerFindChatRecordListRequest))
  358. }
  359. return interceptor(ctx, in, info, handler)
  360. }
  361. func _Partner_ManagerFindScripList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  362. in := new(common.ManagerFindScripListRequest)
  363. if err := dec(in); err != nil {
  364. return nil, err
  365. }
  366. if interceptor == nil {
  367. return srv.(PartnerServer).ManagerFindScripList(ctx, in)
  368. }
  369. info := &grpc.UnaryServerInfo{
  370. Server: srv,
  371. FullMethod: "/api.partner.Partner/ManagerFindScripList",
  372. }
  373. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  374. return srv.(PartnerServer).ManagerFindScripList(ctx, req.(*common.ManagerFindScripListRequest))
  375. }
  376. return interceptor(ctx, in, info, handler)
  377. }
  378. func _Partner_ManagerUpdateScripText_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  379. in := new(common.ManagerUpdateScripTextRequest)
  380. if err := dec(in); err != nil {
  381. return nil, err
  382. }
  383. if interceptor == nil {
  384. return srv.(PartnerServer).ManagerUpdateScripText(ctx, in)
  385. }
  386. info := &grpc.UnaryServerInfo{
  387. Server: srv,
  388. FullMethod: "/api.partner.Partner/ManagerUpdateScripText",
  389. }
  390. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  391. return srv.(PartnerServer).ManagerUpdateScripText(ctx, req.(*common.ManagerUpdateScripTextRequest))
  392. }
  393. return interceptor(ctx, in, info, handler)
  394. }
  395. func _Partner_ManagerUpdateScripPicture_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  396. in := new(common.ManagerUpdateScripPictureRequest)
  397. if err := dec(in); err != nil {
  398. return nil, err
  399. }
  400. if interceptor == nil {
  401. return srv.(PartnerServer).ManagerUpdateScripPicture(ctx, in)
  402. }
  403. info := &grpc.UnaryServerInfo{
  404. Server: srv,
  405. FullMethod: "/api.partner.Partner/ManagerUpdateScripPicture",
  406. }
  407. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  408. return srv.(PartnerServer).ManagerUpdateScripPicture(ctx, req.(*common.ManagerUpdateScripPictureRequest))
  409. }
  410. return interceptor(ctx, in, info, handler)
  411. }
  412. func _Partner_ManagerDeleteScrip_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  413. in := new(common.IDParam)
  414. if err := dec(in); err != nil {
  415. return nil, err
  416. }
  417. if interceptor == nil {
  418. return srv.(PartnerServer).ManagerDeleteScrip(ctx, in)
  419. }
  420. info := &grpc.UnaryServerInfo{
  421. Server: srv,
  422. FullMethod: "/api.partner.Partner/ManagerDeleteScrip",
  423. }
  424. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  425. return srv.(PartnerServer).ManagerDeleteScrip(ctx, req.(*common.IDParam))
  426. }
  427. return interceptor(ctx, in, info, handler)
  428. }
  429. func _Partner_ManagerFindReportList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  430. in := new(common.ManagerFindReportListRequest)
  431. if err := dec(in); err != nil {
  432. return nil, err
  433. }
  434. if interceptor == nil {
  435. return srv.(PartnerServer).ManagerFindReportList(ctx, in)
  436. }
  437. info := &grpc.UnaryServerInfo{
  438. Server: srv,
  439. FullMethod: "/api.partner.Partner/ManagerFindReportList",
  440. }
  441. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  442. return srv.(PartnerServer).ManagerFindReportList(ctx, req.(*common.ManagerFindReportListRequest))
  443. }
  444. return interceptor(ctx, in, info, handler)
  445. }
  446. func _Partner_ManagerFindReportDetailsList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  447. in := new(common.ManagerFindReportDetailsListRequest)
  448. if err := dec(in); err != nil {
  449. return nil, err
  450. }
  451. if interceptor == nil {
  452. return srv.(PartnerServer).ManagerFindReportDetailsList(ctx, in)
  453. }
  454. info := &grpc.UnaryServerInfo{
  455. Server: srv,
  456. FullMethod: "/api.partner.Partner/ManagerFindReportDetailsList",
  457. }
  458. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  459. return srv.(PartnerServer).ManagerFindReportDetailsList(ctx, req.(*common.ManagerFindReportDetailsListRequest))
  460. }
  461. return interceptor(ctx, in, info, handler)
  462. }
  463. // Partner_ServiceDesc is the grpc.ServiceDesc for Partner service.
  464. // It's only intended for direct use with grpc.RegisterService,
  465. // and not to be introspected or modified (even as a copy)
  466. var Partner_ServiceDesc = grpc.ServiceDesc{
  467. ServiceName: "api.partner.Partner",
  468. HandlerType: (*PartnerServer)(nil),
  469. Methods: []grpc.MethodDesc{
  470. {
  471. MethodName: "FindExamineList",
  472. Handler: _Partner_FindExamineList_Handler,
  473. },
  474. {
  475. MethodName: "ExaminePartner",
  476. Handler: _Partner_ExaminePartner_Handler,
  477. },
  478. {
  479. MethodName: "ManagerLogin",
  480. Handler: _Partner_ManagerLogin_Handler,
  481. },
  482. {
  483. MethodName: "FindExamineRecordList",
  484. Handler: _Partner_FindExamineRecordList_Handler,
  485. },
  486. {
  487. MethodName: "OnlinePerson",
  488. Handler: _Partner_OnlinePerson_Handler,
  489. },
  490. {
  491. MethodName: "ManagerFindRoomList",
  492. Handler: _Partner_ManagerFindRoomList_Handler,
  493. },
  494. {
  495. MethodName: "ManagerFindChatRecordList",
  496. Handler: _Partner_ManagerFindChatRecordList_Handler,
  497. },
  498. {
  499. MethodName: "ManagerFindScripList",
  500. Handler: _Partner_ManagerFindScripList_Handler,
  501. },
  502. {
  503. MethodName: "ManagerUpdateScripText",
  504. Handler: _Partner_ManagerUpdateScripText_Handler,
  505. },
  506. {
  507. MethodName: "ManagerUpdateScripPicture",
  508. Handler: _Partner_ManagerUpdateScripPicture_Handler,
  509. },
  510. {
  511. MethodName: "ManagerDeleteScrip",
  512. Handler: _Partner_ManagerDeleteScrip_Handler,
  513. },
  514. {
  515. MethodName: "ManagerFindReportList",
  516. Handler: _Partner_ManagerFindReportList_Handler,
  517. },
  518. {
  519. MethodName: "ManagerFindReportDetailsList",
  520. Handler: _Partner_ManagerFindReportDetailsList_Handler,
  521. },
  522. },
  523. Streams: []grpc.StreamDesc{},
  524. Metadata: "partner.proto",
  525. }