// Code generated by goctl. DO NOT EDIT. // goctl 1.10.1 // Source: gorpc.proto package goshortdramaclient import ( "context" "code.flashlink.me/nomo-server/go-service-pb/pb/pb" "github.com/zeromicro/go-zero/zrpc" "google.golang.org/grpc" ) type ( Empty = pb.Empty FindSchedulePublishListReq = pb.FindSchedulePublishListReq FindSchedulePublishListResp = pb.FindSchedulePublishListResp Ids = pb.Ids PublishScheduleDramaReq = pb.PublishScheduleDramaReq SetTotalStatsReq = pb.SetTotalStatsReq ShortDramaCheckNameReq = pb.ShortDramaCheckNameReq ShortDramaCheckNameResp = pb.ShortDramaCheckNameResp ShortDramaEpisodeBatchAddReq = pb.ShortDramaEpisodeBatchAddReq ShortDramaEpisodeBatchRefreshUpdateTimeReq = pb.ShortDramaEpisodeBatchRefreshUpdateTimeReq ShortDramaEpisodeCountReq = pb.ShortDramaEpisodeCountReq ShortDramaEpisodeCountResp = pb.ShortDramaEpisodeCountResp ShortDramaEpisodeGetReq = pb.ShortDramaEpisodeGetReq ShortDramaEpisodeListReq = pb.ShortDramaEpisodeListReq ShortDramaEpisodeListResp = pb.ShortDramaEpisodeListResp ShortDramaEpisodeVo = pb.ShortDramaEpisodeVo ShortDramaFindIdsWithCopyrightResp = pb.ShortDramaFindIdsWithCopyrightResp ShortDramaGetReq = pb.ShortDramaGetReq ShortDramaLanguageListReq = pb.ShortDramaLanguageListReq ShortDramaLanguageListResp = pb.ShortDramaLanguageListResp ShortDramaListReq = pb.ShortDramaListReq ShortDramaListResp = pb.ShortDramaListResp ShortDramaStatsPlaysTotalListReq = pb.ShortDramaStatsPlaysTotalListReq ShortDramaStatsPlaysTotalListResp = pb.ShortDramaStatsPlaysTotalListResp ShortDramaUpdateModifierReq = pb.ShortDramaUpdateModifierReq ShortDramaUpdateReleaseRegionsReq = pb.ShortDramaUpdateReleaseRegionsReq ShortDramaVo = pb.ShortDramaVo GoShortDramaClient interface { // ShortDrama ShortDramaAdd(ctx context.Context, in *ShortDramaVo, opts ...grpc.CallOption) (*ShortDramaVo, error) ShortDramaUpdate(ctx context.Context, in *ShortDramaVo, opts ...grpc.CallOption) (*Empty, error) ShortDramaDel(ctx context.Context, in *Ids, opts ...grpc.CallOption) (*Empty, error) ShortDramaGet(ctx context.Context, in *ShortDramaGetReq, opts ...grpc.CallOption) (*ShortDramaVo, error) ShortDramaList(ctx context.Context, in *ShortDramaListReq, opts ...grpc.CallOption) (*ShortDramaListResp, error) ShortDramaUpdateModifier(ctx context.Context, in *ShortDramaUpdateModifierReq, opts ...grpc.CallOption) (*Empty, error) ShortDramaUpdateReleaseRegions(ctx context.Context, in *ShortDramaUpdateReleaseRegionsReq, opts ...grpc.CallOption) (*Empty, error) ShortDramaFindIdsWithCopyright(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ShortDramaFindIdsWithCopyrightResp, error) ShortDramaFindSchedulePublishList(ctx context.Context, in *FindSchedulePublishListReq, opts ...grpc.CallOption) (*FindSchedulePublishListResp, error) ShortDramaPublishSchedule(ctx context.Context, in *PublishScheduleDramaReq, opts ...grpc.CallOption) (*Empty, error) // ShortDramaLanguage ShortDramaLanguageList(ctx context.Context, in *ShortDramaLanguageListReq, opts ...grpc.CallOption) (*ShortDramaLanguageListResp, error) // ShortDramaEpisode ShortDramaEpisodeAdd(ctx context.Context, in *ShortDramaEpisodeVo, opts ...grpc.CallOption) (*ShortDramaEpisodeVo, error) ShortDramaEpisodeBatchAdd(ctx context.Context, in *ShortDramaEpisodeBatchAddReq, opts ...grpc.CallOption) (*Empty, error) ShortDramaEpisodeUpdate(ctx context.Context, in *ShortDramaEpisodeVo, opts ...grpc.CallOption) (*Empty, error) ShortDramaEpisodeDel(ctx context.Context, in *Ids, opts ...grpc.CallOption) (*Empty, error) ShortDramaEpisodeGet(ctx context.Context, in *ShortDramaEpisodeGetReq, opts ...grpc.CallOption) (*ShortDramaEpisodeVo, error) ShortDramaEpisodeList(ctx context.Context, in *ShortDramaEpisodeListReq, opts ...grpc.CallOption) (*ShortDramaEpisodeListResp, error) ShortDramaEpisodeBatchRefreshUpdateTime(ctx context.Context, in *ShortDramaEpisodeBatchRefreshUpdateTimeReq, opts ...grpc.CallOption) (*Empty, error) // ShortDramaEpisodeCount ShortDramaEpisodeCount(ctx context.Context, in *ShortDramaEpisodeCountReq, opts ...grpc.CallOption) (*ShortDramaEpisodeCountResp, error) ShortDramaCheckName(ctx context.Context, in *ShortDramaCheckNameReq, opts ...grpc.CallOption) (*ShortDramaCheckNameResp, error) // ShortDramaStats SetTotalStats(ctx context.Context, in *SetTotalStatsReq, opts ...grpc.CallOption) (*Empty, error) // ShortDramaStatsPlaysTotal ShortDramaStatsPlaysTotalList(ctx context.Context, in *ShortDramaStatsPlaysTotalListReq, opts ...grpc.CallOption) (*ShortDramaStatsPlaysTotalListResp, error) } defaultGoShortDramaClient struct { cli zrpc.Client } ) func NewGoShortDramaClient(cli zrpc.Client) GoShortDramaClient { return &defaultGoShortDramaClient{ cli: cli, } } // ShortDrama func (m *defaultGoShortDramaClient) ShortDramaAdd(ctx context.Context, in *ShortDramaVo, opts ...grpc.CallOption) (*ShortDramaVo, error) { client := pb.NewGoShortDramaClientClient(m.cli.Conn()) return client.ShortDramaAdd(ctx, in, opts...) } func (m *defaultGoShortDramaClient) ShortDramaUpdate(ctx context.Context, in *ShortDramaVo, opts ...grpc.CallOption) (*Empty, error) { client := pb.NewGoShortDramaClientClient(m.cli.Conn()) return client.ShortDramaUpdate(ctx, in, opts...) } func (m *defaultGoShortDramaClient) ShortDramaDel(ctx context.Context, in *Ids, opts ...grpc.CallOption) (*Empty, error) { client := pb.NewGoShortDramaClientClient(m.cli.Conn()) return client.ShortDramaDel(ctx, in, opts...) } func (m *defaultGoShortDramaClient) ShortDramaGet(ctx context.Context, in *ShortDramaGetReq, opts ...grpc.CallOption) (*ShortDramaVo, error) { client := pb.NewGoShortDramaClientClient(m.cli.Conn()) return client.ShortDramaGet(ctx, in, opts...) } func (m *defaultGoShortDramaClient) ShortDramaList(ctx context.Context, in *ShortDramaListReq, opts ...grpc.CallOption) (*ShortDramaListResp, error) { client := pb.NewGoShortDramaClientClient(m.cli.Conn()) return client.ShortDramaList(ctx, in, opts...) } func (m *defaultGoShortDramaClient) ShortDramaUpdateModifier(ctx context.Context, in *ShortDramaUpdateModifierReq, opts ...grpc.CallOption) (*Empty, error) { client := pb.NewGoShortDramaClientClient(m.cli.Conn()) return client.ShortDramaUpdateModifier(ctx, in, opts...) } func (m *defaultGoShortDramaClient) ShortDramaUpdateReleaseRegions(ctx context.Context, in *ShortDramaUpdateReleaseRegionsReq, opts ...grpc.CallOption) (*Empty, error) { client := pb.NewGoShortDramaClientClient(m.cli.Conn()) return client.ShortDramaUpdateReleaseRegions(ctx, in, opts...) } func (m *defaultGoShortDramaClient) ShortDramaFindIdsWithCopyright(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ShortDramaFindIdsWithCopyrightResp, error) { client := pb.NewGoShortDramaClientClient(m.cli.Conn()) return client.ShortDramaFindIdsWithCopyright(ctx, in, opts...) } func (m *defaultGoShortDramaClient) ShortDramaFindSchedulePublishList(ctx context.Context, in *FindSchedulePublishListReq, opts ...grpc.CallOption) (*FindSchedulePublishListResp, error) { client := pb.NewGoShortDramaClientClient(m.cli.Conn()) return client.ShortDramaFindSchedulePublishList(ctx, in, opts...) } func (m *defaultGoShortDramaClient) ShortDramaPublishSchedule(ctx context.Context, in *PublishScheduleDramaReq, opts ...grpc.CallOption) (*Empty, error) { client := pb.NewGoShortDramaClientClient(m.cli.Conn()) return client.ShortDramaPublishSchedule(ctx, in, opts...) } // ShortDramaLanguage func (m *defaultGoShortDramaClient) ShortDramaLanguageList(ctx context.Context, in *ShortDramaLanguageListReq, opts ...grpc.CallOption) (*ShortDramaLanguageListResp, error) { client := pb.NewGoShortDramaClientClient(m.cli.Conn()) return client.ShortDramaLanguageList(ctx, in, opts...) } // ShortDramaEpisode func (m *defaultGoShortDramaClient) ShortDramaEpisodeAdd(ctx context.Context, in *ShortDramaEpisodeVo, opts ...grpc.CallOption) (*ShortDramaEpisodeVo, error) { client := pb.NewGoShortDramaClientClient(m.cli.Conn()) return client.ShortDramaEpisodeAdd(ctx, in, opts...) } func (m *defaultGoShortDramaClient) ShortDramaEpisodeBatchAdd(ctx context.Context, in *ShortDramaEpisodeBatchAddReq, opts ...grpc.CallOption) (*Empty, error) { client := pb.NewGoShortDramaClientClient(m.cli.Conn()) return client.ShortDramaEpisodeBatchAdd(ctx, in, opts...) } func (m *defaultGoShortDramaClient) ShortDramaEpisodeUpdate(ctx context.Context, in *ShortDramaEpisodeVo, opts ...grpc.CallOption) (*Empty, error) { client := pb.NewGoShortDramaClientClient(m.cli.Conn()) return client.ShortDramaEpisodeUpdate(ctx, in, opts...) } func (m *defaultGoShortDramaClient) ShortDramaEpisodeDel(ctx context.Context, in *Ids, opts ...grpc.CallOption) (*Empty, error) { client := pb.NewGoShortDramaClientClient(m.cli.Conn()) return client.ShortDramaEpisodeDel(ctx, in, opts...) } func (m *defaultGoShortDramaClient) ShortDramaEpisodeGet(ctx context.Context, in *ShortDramaEpisodeGetReq, opts ...grpc.CallOption) (*ShortDramaEpisodeVo, error) { client := pb.NewGoShortDramaClientClient(m.cli.Conn()) return client.ShortDramaEpisodeGet(ctx, in, opts...) } func (m *defaultGoShortDramaClient) ShortDramaEpisodeList(ctx context.Context, in *ShortDramaEpisodeListReq, opts ...grpc.CallOption) (*ShortDramaEpisodeListResp, error) { client := pb.NewGoShortDramaClientClient(m.cli.Conn()) return client.ShortDramaEpisodeList(ctx, in, opts...) } func (m *defaultGoShortDramaClient) ShortDramaEpisodeBatchRefreshUpdateTime(ctx context.Context, in *ShortDramaEpisodeBatchRefreshUpdateTimeReq, opts ...grpc.CallOption) (*Empty, error) { client := pb.NewGoShortDramaClientClient(m.cli.Conn()) return client.ShortDramaEpisodeBatchRefreshUpdateTime(ctx, in, opts...) } // ShortDramaEpisodeCount func (m *defaultGoShortDramaClient) ShortDramaEpisodeCount(ctx context.Context, in *ShortDramaEpisodeCountReq, opts ...grpc.CallOption) (*ShortDramaEpisodeCountResp, error) { client := pb.NewGoShortDramaClientClient(m.cli.Conn()) return client.ShortDramaEpisodeCount(ctx, in, opts...) } func (m *defaultGoShortDramaClient) ShortDramaCheckName(ctx context.Context, in *ShortDramaCheckNameReq, opts ...grpc.CallOption) (*ShortDramaCheckNameResp, error) { client := pb.NewGoShortDramaClientClient(m.cli.Conn()) return client.ShortDramaCheckName(ctx, in, opts...) } // ShortDramaStats func (m *defaultGoShortDramaClient) SetTotalStats(ctx context.Context, in *SetTotalStatsReq, opts ...grpc.CallOption) (*Empty, error) { client := pb.NewGoShortDramaClientClient(m.cli.Conn()) return client.SetTotalStats(ctx, in, opts...) } // ShortDramaStatsPlaysTotal func (m *defaultGoShortDramaClient) ShortDramaStatsPlaysTotalList(ctx context.Context, in *ShortDramaStatsPlaysTotalListReq, opts ...grpc.CallOption) (*ShortDramaStatsPlaysTotalListResp, error) { client := pb.NewGoShortDramaClientClient(m.cli.Conn()) return client.ShortDramaStatsPlaysTotalList(ctx, in, opts...) }