| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583 |
- // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
- // versions:
- // - protoc-gen-go-grpc v1.3.0
- // - protoc v4.22.3
- // source: partner.proto
- package partner
- import (
- context "context"
- common "git.ikuban.com/server/pw-protobuf/api/common"
- grpc "google.golang.org/grpc"
- codes "google.golang.org/grpc/codes"
- status "google.golang.org/grpc/status"
- emptypb "google.golang.org/protobuf/types/known/emptypb"
- )
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the grpc package it is being compiled against.
- // Requires gRPC-Go v1.32.0 or later.
- const _ = grpc.SupportPackageIsVersion7
- const (
- Partner_FindExamineList_FullMethodName = "/api.partner.Partner/FindExamineList"
- Partner_ExaminePartner_FullMethodName = "/api.partner.Partner/ExaminePartner"
- Partner_ManagerLogin_FullMethodName = "/api.partner.Partner/ManagerLogin"
- Partner_FindExamineRecordList_FullMethodName = "/api.partner.Partner/FindExamineRecordList"
- Partner_OnlinePerson_FullMethodName = "/api.partner.Partner/OnlinePerson"
- Partner_ManagerFindRoomList_FullMethodName = "/api.partner.Partner/ManagerFindRoomList"
- Partner_ManagerFindChatRecordList_FullMethodName = "/api.partner.Partner/ManagerFindChatRecordList"
- Partner_ManagerFindScripList_FullMethodName = "/api.partner.Partner/ManagerFindScripList"
- Partner_ManagerUpdateScripText_FullMethodName = "/api.partner.Partner/ManagerUpdateScripText"
- Partner_ManagerUpdateScripPicture_FullMethodName = "/api.partner.Partner/ManagerUpdateScripPicture"
- Partner_ManagerDeleteScrip_FullMethodName = "/api.partner.Partner/ManagerDeleteScrip"
- Partner_ManagerFindReportList_FullMethodName = "/api.partner.Partner/ManagerFindReportList"
- Partner_ManagerFindReportDetailsList_FullMethodName = "/api.partner.Partner/ManagerFindReportDetailsList"
- )
- // PartnerClient is the client API for Partner service.
- //
- // 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.
- type PartnerClient interface {
- // ---manager---
- // 接待员审核列表
- FindExamineList(ctx context.Context, in *common.ListPage2Request, opts ...grpc.CallOption) (*FindExamineListReply, error)
- // 接待员审核
- ExaminePartner(ctx context.Context, in *ExaminePartnerRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
- // 管理员登录
- ManagerLogin(ctx context.Context, in *common.ManagerLoginRequest, opts ...grpc.CallOption) (*common.LoginToken, error)
- // 审核记录列表
- FindExamineRecordList(ctx context.Context, in *FindExamineRecordListRequest, opts ...grpc.CallOption) (*FindExamineRecordListReply, error)
- // 当前在线人
- OnlinePerson(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*OnlinePersonReply, error)
- // 管理员查询房间列表
- ManagerFindRoomList(ctx context.Context, in *common.ManagerFindRoomListRequest, opts ...grpc.CallOption) (*common.ManagerFindRoomListReply, error)
- // 管理员查询聊天记录
- ManagerFindChatRecordList(ctx context.Context, in *common.ManagerFindChatRecordListRequest, opts ...grpc.CallOption) (*common.ChatRecordListReply, error)
- // 管理员查询纸条列表
- ManagerFindScripList(ctx context.Context, in *common.ManagerFindScripListRequest, opts ...grpc.CallOption) (*common.ManagerScripReply, error)
- // 管理员更新纸条文字
- ManagerUpdateScripText(ctx context.Context, in *common.ManagerUpdateScripTextRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
- // 管理员更新纸条图片
- ManagerUpdateScripPicture(ctx context.Context, in *common.ManagerUpdateScripPictureRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
- // 管理员删除纸条
- ManagerDeleteScrip(ctx context.Context, in *common.IDParam, opts ...grpc.CallOption) (*emptypb.Empty, error)
- // 管理员查询举报列表
- ManagerFindReportList(ctx context.Context, in *common.ManagerFindReportListRequest, opts ...grpc.CallOption) (*common.ManagerFindReportListReply, error)
- // 管理员查询某个举报者的举报详情列表
- ManagerFindReportDetailsList(ctx context.Context, in *common.ManagerFindReportDetailsListRequest, opts ...grpc.CallOption) (*common.ManagerFindReportDetailsListReply, error)
- }
- type partnerClient struct {
- cc grpc.ClientConnInterface
- }
- func NewPartnerClient(cc grpc.ClientConnInterface) PartnerClient {
- return &partnerClient{cc}
- }
- func (c *partnerClient) FindExamineList(ctx context.Context, in *common.ListPage2Request, opts ...grpc.CallOption) (*FindExamineListReply, error) {
- out := new(FindExamineListReply)
- err := c.cc.Invoke(ctx, Partner_FindExamineList_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *partnerClient) ExaminePartner(ctx context.Context, in *ExaminePartnerRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
- out := new(emptypb.Empty)
- err := c.cc.Invoke(ctx, Partner_ExaminePartner_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *partnerClient) ManagerLogin(ctx context.Context, in *common.ManagerLoginRequest, opts ...grpc.CallOption) (*common.LoginToken, error) {
- out := new(common.LoginToken)
- err := c.cc.Invoke(ctx, Partner_ManagerLogin_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *partnerClient) FindExamineRecordList(ctx context.Context, in *FindExamineRecordListRequest, opts ...grpc.CallOption) (*FindExamineRecordListReply, error) {
- out := new(FindExamineRecordListReply)
- err := c.cc.Invoke(ctx, Partner_FindExamineRecordList_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *partnerClient) OnlinePerson(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*OnlinePersonReply, error) {
- out := new(OnlinePersonReply)
- err := c.cc.Invoke(ctx, Partner_OnlinePerson_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *partnerClient) ManagerFindRoomList(ctx context.Context, in *common.ManagerFindRoomListRequest, opts ...grpc.CallOption) (*common.ManagerFindRoomListReply, error) {
- out := new(common.ManagerFindRoomListReply)
- err := c.cc.Invoke(ctx, Partner_ManagerFindRoomList_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *partnerClient) ManagerFindChatRecordList(ctx context.Context, in *common.ManagerFindChatRecordListRequest, opts ...grpc.CallOption) (*common.ChatRecordListReply, error) {
- out := new(common.ChatRecordListReply)
- err := c.cc.Invoke(ctx, Partner_ManagerFindChatRecordList_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *partnerClient) ManagerFindScripList(ctx context.Context, in *common.ManagerFindScripListRequest, opts ...grpc.CallOption) (*common.ManagerScripReply, error) {
- out := new(common.ManagerScripReply)
- err := c.cc.Invoke(ctx, Partner_ManagerFindScripList_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *partnerClient) ManagerUpdateScripText(ctx context.Context, in *common.ManagerUpdateScripTextRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
- out := new(emptypb.Empty)
- err := c.cc.Invoke(ctx, Partner_ManagerUpdateScripText_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *partnerClient) ManagerUpdateScripPicture(ctx context.Context, in *common.ManagerUpdateScripPictureRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
- out := new(emptypb.Empty)
- err := c.cc.Invoke(ctx, Partner_ManagerUpdateScripPicture_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *partnerClient) ManagerDeleteScrip(ctx context.Context, in *common.IDParam, opts ...grpc.CallOption) (*emptypb.Empty, error) {
- out := new(emptypb.Empty)
- err := c.cc.Invoke(ctx, Partner_ManagerDeleteScrip_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *partnerClient) ManagerFindReportList(ctx context.Context, in *common.ManagerFindReportListRequest, opts ...grpc.CallOption) (*common.ManagerFindReportListReply, error) {
- out := new(common.ManagerFindReportListReply)
- err := c.cc.Invoke(ctx, Partner_ManagerFindReportList_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *partnerClient) ManagerFindReportDetailsList(ctx context.Context, in *common.ManagerFindReportDetailsListRequest, opts ...grpc.CallOption) (*common.ManagerFindReportDetailsListReply, error) {
- out := new(common.ManagerFindReportDetailsListReply)
- err := c.cc.Invoke(ctx, Partner_ManagerFindReportDetailsList_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- // PartnerServer is the server API for Partner service.
- // All implementations must embed UnimplementedPartnerServer
- // for forward compatibility
- type PartnerServer interface {
- // ---manager---
- // 接待员审核列表
- FindExamineList(context.Context, *common.ListPage2Request) (*FindExamineListReply, error)
- // 接待员审核
- ExaminePartner(context.Context, *ExaminePartnerRequest) (*emptypb.Empty, error)
- // 管理员登录
- ManagerLogin(context.Context, *common.ManagerLoginRequest) (*common.LoginToken, error)
- // 审核记录列表
- FindExamineRecordList(context.Context, *FindExamineRecordListRequest) (*FindExamineRecordListReply, error)
- // 当前在线人
- OnlinePerson(context.Context, *emptypb.Empty) (*OnlinePersonReply, error)
- // 管理员查询房间列表
- ManagerFindRoomList(context.Context, *common.ManagerFindRoomListRequest) (*common.ManagerFindRoomListReply, error)
- // 管理员查询聊天记录
- ManagerFindChatRecordList(context.Context, *common.ManagerFindChatRecordListRequest) (*common.ChatRecordListReply, error)
- // 管理员查询纸条列表
- ManagerFindScripList(context.Context, *common.ManagerFindScripListRequest) (*common.ManagerScripReply, error)
- // 管理员更新纸条文字
- ManagerUpdateScripText(context.Context, *common.ManagerUpdateScripTextRequest) (*emptypb.Empty, error)
- // 管理员更新纸条图片
- ManagerUpdateScripPicture(context.Context, *common.ManagerUpdateScripPictureRequest) (*emptypb.Empty, error)
- // 管理员删除纸条
- ManagerDeleteScrip(context.Context, *common.IDParam) (*emptypb.Empty, error)
- // 管理员查询举报列表
- ManagerFindReportList(context.Context, *common.ManagerFindReportListRequest) (*common.ManagerFindReportListReply, error)
- // 管理员查询某个举报者的举报详情列表
- ManagerFindReportDetailsList(context.Context, *common.ManagerFindReportDetailsListRequest) (*common.ManagerFindReportDetailsListReply, error)
- mustEmbedUnimplementedPartnerServer()
- }
- // UnimplementedPartnerServer must be embedded to have forward compatible implementations.
- type UnimplementedPartnerServer struct {
- }
- func (UnimplementedPartnerServer) FindExamineList(context.Context, *common.ListPage2Request) (*FindExamineListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method FindExamineList not implemented")
- }
- func (UnimplementedPartnerServer) ExaminePartner(context.Context, *ExaminePartnerRequest) (*emptypb.Empty, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ExaminePartner not implemented")
- }
- func (UnimplementedPartnerServer) ManagerLogin(context.Context, *common.ManagerLoginRequest) (*common.LoginToken, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ManagerLogin not implemented")
- }
- func (UnimplementedPartnerServer) FindExamineRecordList(context.Context, *FindExamineRecordListRequest) (*FindExamineRecordListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method FindExamineRecordList not implemented")
- }
- func (UnimplementedPartnerServer) OnlinePerson(context.Context, *emptypb.Empty) (*OnlinePersonReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method OnlinePerson not implemented")
- }
- func (UnimplementedPartnerServer) ManagerFindRoomList(context.Context, *common.ManagerFindRoomListRequest) (*common.ManagerFindRoomListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ManagerFindRoomList not implemented")
- }
- func (UnimplementedPartnerServer) ManagerFindChatRecordList(context.Context, *common.ManagerFindChatRecordListRequest) (*common.ChatRecordListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ManagerFindChatRecordList not implemented")
- }
- func (UnimplementedPartnerServer) ManagerFindScripList(context.Context, *common.ManagerFindScripListRequest) (*common.ManagerScripReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ManagerFindScripList not implemented")
- }
- func (UnimplementedPartnerServer) ManagerUpdateScripText(context.Context, *common.ManagerUpdateScripTextRequest) (*emptypb.Empty, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ManagerUpdateScripText not implemented")
- }
- func (UnimplementedPartnerServer) ManagerUpdateScripPicture(context.Context, *common.ManagerUpdateScripPictureRequest) (*emptypb.Empty, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ManagerUpdateScripPicture not implemented")
- }
- func (UnimplementedPartnerServer) ManagerDeleteScrip(context.Context, *common.IDParam) (*emptypb.Empty, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ManagerDeleteScrip not implemented")
- }
- func (UnimplementedPartnerServer) ManagerFindReportList(context.Context, *common.ManagerFindReportListRequest) (*common.ManagerFindReportListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ManagerFindReportList not implemented")
- }
- func (UnimplementedPartnerServer) ManagerFindReportDetailsList(context.Context, *common.ManagerFindReportDetailsListRequest) (*common.ManagerFindReportDetailsListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ManagerFindReportDetailsList not implemented")
- }
- func (UnimplementedPartnerServer) mustEmbedUnimplementedPartnerServer() {}
- // UnsafePartnerServer may be embedded to opt out of forward compatibility for this service.
- // Use of this interface is not recommended, as added methods to PartnerServer will
- // result in compilation errors.
- type UnsafePartnerServer interface {
- mustEmbedUnimplementedPartnerServer()
- }
- func RegisterPartnerServer(s grpc.ServiceRegistrar, srv PartnerServer) {
- s.RegisterService(&Partner_ServiceDesc, srv)
- }
- func _Partner_FindExamineList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(common.ListPage2Request)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(PartnerServer).FindExamineList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: Partner_FindExamineList_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(PartnerServer).FindExamineList(ctx, req.(*common.ListPage2Request))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Partner_ExaminePartner_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ExaminePartnerRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(PartnerServer).ExaminePartner(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: Partner_ExaminePartner_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(PartnerServer).ExaminePartner(ctx, req.(*ExaminePartnerRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Partner_ManagerLogin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(common.ManagerLoginRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(PartnerServer).ManagerLogin(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: Partner_ManagerLogin_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(PartnerServer).ManagerLogin(ctx, req.(*common.ManagerLoginRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Partner_FindExamineRecordList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(FindExamineRecordListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(PartnerServer).FindExamineRecordList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: Partner_FindExamineRecordList_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(PartnerServer).FindExamineRecordList(ctx, req.(*FindExamineRecordListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Partner_OnlinePerson_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(emptypb.Empty)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(PartnerServer).OnlinePerson(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: Partner_OnlinePerson_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(PartnerServer).OnlinePerson(ctx, req.(*emptypb.Empty))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Partner_ManagerFindRoomList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(common.ManagerFindRoomListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(PartnerServer).ManagerFindRoomList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: Partner_ManagerFindRoomList_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(PartnerServer).ManagerFindRoomList(ctx, req.(*common.ManagerFindRoomListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Partner_ManagerFindChatRecordList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(common.ManagerFindChatRecordListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(PartnerServer).ManagerFindChatRecordList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: Partner_ManagerFindChatRecordList_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(PartnerServer).ManagerFindChatRecordList(ctx, req.(*common.ManagerFindChatRecordListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Partner_ManagerFindScripList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(common.ManagerFindScripListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(PartnerServer).ManagerFindScripList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: Partner_ManagerFindScripList_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(PartnerServer).ManagerFindScripList(ctx, req.(*common.ManagerFindScripListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Partner_ManagerUpdateScripText_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(common.ManagerUpdateScripTextRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(PartnerServer).ManagerUpdateScripText(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: Partner_ManagerUpdateScripText_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(PartnerServer).ManagerUpdateScripText(ctx, req.(*common.ManagerUpdateScripTextRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Partner_ManagerUpdateScripPicture_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(common.ManagerUpdateScripPictureRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(PartnerServer).ManagerUpdateScripPicture(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: Partner_ManagerUpdateScripPicture_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(PartnerServer).ManagerUpdateScripPicture(ctx, req.(*common.ManagerUpdateScripPictureRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Partner_ManagerDeleteScrip_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(common.IDParam)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(PartnerServer).ManagerDeleteScrip(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: Partner_ManagerDeleteScrip_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(PartnerServer).ManagerDeleteScrip(ctx, req.(*common.IDParam))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Partner_ManagerFindReportList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(common.ManagerFindReportListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(PartnerServer).ManagerFindReportList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: Partner_ManagerFindReportList_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(PartnerServer).ManagerFindReportList(ctx, req.(*common.ManagerFindReportListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Partner_ManagerFindReportDetailsList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(common.ManagerFindReportDetailsListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(PartnerServer).ManagerFindReportDetailsList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: Partner_ManagerFindReportDetailsList_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(PartnerServer).ManagerFindReportDetailsList(ctx, req.(*common.ManagerFindReportDetailsListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- // Partner_ServiceDesc is the grpc.ServiceDesc for Partner service.
- // It's only intended for direct use with grpc.RegisterService,
- // and not to be introspected or modified (even as a copy)
- var Partner_ServiceDesc = grpc.ServiceDesc{
- ServiceName: "api.partner.Partner",
- HandlerType: (*PartnerServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "FindExamineList",
- Handler: _Partner_FindExamineList_Handler,
- },
- {
- MethodName: "ExaminePartner",
- Handler: _Partner_ExaminePartner_Handler,
- },
- {
- MethodName: "ManagerLogin",
- Handler: _Partner_ManagerLogin_Handler,
- },
- {
- MethodName: "FindExamineRecordList",
- Handler: _Partner_FindExamineRecordList_Handler,
- },
- {
- MethodName: "OnlinePerson",
- Handler: _Partner_OnlinePerson_Handler,
- },
- {
- MethodName: "ManagerFindRoomList",
- Handler: _Partner_ManagerFindRoomList_Handler,
- },
- {
- MethodName: "ManagerFindChatRecordList",
- Handler: _Partner_ManagerFindChatRecordList_Handler,
- },
- {
- MethodName: "ManagerFindScripList",
- Handler: _Partner_ManagerFindScripList_Handler,
- },
- {
- MethodName: "ManagerUpdateScripText",
- Handler: _Partner_ManagerUpdateScripText_Handler,
- },
- {
- MethodName: "ManagerUpdateScripPicture",
- Handler: _Partner_ManagerUpdateScripPicture_Handler,
- },
- {
- MethodName: "ManagerDeleteScrip",
- Handler: _Partner_ManagerDeleteScrip_Handler,
- },
- {
- MethodName: "ManagerFindReportList",
- Handler: _Partner_ManagerFindReportList_Handler,
- },
- {
- MethodName: "ManagerFindReportDetailsList",
- Handler: _Partner_ManagerFindReportDetailsList_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "partner.proto",
- }
|