partner_grpc.pb.go 25 KB

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