package productionservice import ( "context" "muyu-apiserver/rpc/production/pb" "github.com/zeromicro/go-zero/zrpc" "google.golang.org/grpc" ) type ( CreateProductionPlanReq = pb.CreateProductionPlanReq ListProductionPlanReq = pb.ListProductionPlanReq ListProductionPlanResp = pb.ListProductionPlanResp GetProductionPlanReq = pb.GetProductionPlanReq ProductionPlanInfo = pb.ProductionPlanInfo ConfirmPlanReq = pb.ConfirmPlanReq CreateShareLinkReq = pb.CreateShareLinkReq GetShareLinkReq = pb.GetShareLinkReq ShareLinkInfo = pb.ShareLinkInfo ShareLinkPlanView = pb.ShareLinkPlanView ClickShareLinkReq = pb.ClickShareLinkReq ConfirmShareLinkReq = pb.ConfirmShareLinkReq RejectShareLinkReq = pb.RejectShareLinkReq CompleteStepReq = pb.CompleteStepReq CreateInboundReq = pb.CreateInboundReq ListInboundReq = pb.ListInboundReq ListInboundResp = pb.ListInboundResp InboundRecordInfo = pb.InboundRecordInfo YarnRatioInfo = pb.YarnRatioInfo YarnRatioReq = pb.YarnRatioReq ProcessStepInfo = pb.ProcessStepInfo ProcessStepReq = pb.ProcessStepReq IdResp = pb.IdResp Empty = pb.Empty ProductionService interface { CreateProductionPlan(ctx context.Context, in *CreateProductionPlanReq, opts ...grpc.CallOption) (*IdResp, error) ListProductionPlan(ctx context.Context, in *ListProductionPlanReq, opts ...grpc.CallOption) (*ListProductionPlanResp, error) GetProductionPlan(ctx context.Context, in *GetProductionPlanReq, opts ...grpc.CallOption) (*ProductionPlanInfo, error) ConfirmPlan(ctx context.Context, in *ConfirmPlanReq, opts ...grpc.CallOption) (*Empty, error) CreateShareLink(ctx context.Context, in *CreateShareLinkReq, opts ...grpc.CallOption) (*ShareLinkInfo, error) GetShareLink(ctx context.Context, in *GetShareLinkReq, opts ...grpc.CallOption) (*ShareLinkInfo, error) GetShareLinkPlanView(ctx context.Context, in *GetShareLinkReq, opts ...grpc.CallOption) (*ShareLinkPlanView, error) ClickShareLink(ctx context.Context, in *ClickShareLinkReq, opts ...grpc.CallOption) (*Empty, error) ConfirmShareLink(ctx context.Context, in *ConfirmShareLinkReq, opts ...grpc.CallOption) (*Empty, error) RejectShareLink(ctx context.Context, in *RejectShareLinkReq, opts ...grpc.CallOption) (*Empty, error) CompleteStep(ctx context.Context, in *CompleteStepReq, opts ...grpc.CallOption) (*Empty, error) CreateInbound(ctx context.Context, in *CreateInboundReq, opts ...grpc.CallOption) (*IdResp, error) ListInbound(ctx context.Context, in *ListInboundReq, opts ...grpc.CallOption) (*ListInboundResp, error) } defaultProductionService struct { cli zrpc.Client } ) func NewProductionService(cli zrpc.Client) ProductionService { return &defaultProductionService{cli: cli} } func (m *defaultProductionService) CreateProductionPlan(ctx context.Context, in *CreateProductionPlanReq, opts ...grpc.CallOption) (*IdResp, error) { return pb.NewProductionServiceClient(m.cli.Conn()).CreateProductionPlan(ctx, in, opts...) } func (m *defaultProductionService) ListProductionPlan(ctx context.Context, in *ListProductionPlanReq, opts ...grpc.CallOption) (*ListProductionPlanResp, error) { return pb.NewProductionServiceClient(m.cli.Conn()).ListProductionPlan(ctx, in, opts...) } func (m *defaultProductionService) GetProductionPlan(ctx context.Context, in *GetProductionPlanReq, opts ...grpc.CallOption) (*ProductionPlanInfo, error) { return pb.NewProductionServiceClient(m.cli.Conn()).GetProductionPlan(ctx, in, opts...) } func (m *defaultProductionService) ConfirmPlan(ctx context.Context, in *ConfirmPlanReq, opts ...grpc.CallOption) (*Empty, error) { return pb.NewProductionServiceClient(m.cli.Conn()).ConfirmPlan(ctx, in, opts...) } func (m *defaultProductionService) CreateShareLink(ctx context.Context, in *CreateShareLinkReq, opts ...grpc.CallOption) (*ShareLinkInfo, error) { return pb.NewProductionServiceClient(m.cli.Conn()).CreateShareLink(ctx, in, opts...) } func (m *defaultProductionService) GetShareLink(ctx context.Context, in *GetShareLinkReq, opts ...grpc.CallOption) (*ShareLinkInfo, error) { return pb.NewProductionServiceClient(m.cli.Conn()).GetShareLink(ctx, in, opts...) } func (m *defaultProductionService) GetShareLinkPlanView(ctx context.Context, in *GetShareLinkReq, opts ...grpc.CallOption) (*ShareLinkPlanView, error) { return pb.NewProductionServiceClient(m.cli.Conn()).GetShareLinkPlanView(ctx, in, opts...) } func (m *defaultProductionService) ClickShareLink(ctx context.Context, in *ClickShareLinkReq, opts ...grpc.CallOption) (*Empty, error) { return pb.NewProductionServiceClient(m.cli.Conn()).ClickShareLink(ctx, in, opts...) } func (m *defaultProductionService) ConfirmShareLink(ctx context.Context, in *ConfirmShareLinkReq, opts ...grpc.CallOption) (*Empty, error) { return pb.NewProductionServiceClient(m.cli.Conn()).ConfirmShareLink(ctx, in, opts...) } func (m *defaultProductionService) RejectShareLink(ctx context.Context, in *RejectShareLinkReq, opts ...grpc.CallOption) (*Empty, error) { return pb.NewProductionServiceClient(m.cli.Conn()).RejectShareLink(ctx, in, opts...) } func (m *defaultProductionService) CompleteStep(ctx context.Context, in *CompleteStepReq, opts ...grpc.CallOption) (*Empty, error) { return pb.NewProductionServiceClient(m.cli.Conn()).CompleteStep(ctx, in, opts...) } func (m *defaultProductionService) CreateInbound(ctx context.Context, in *CreateInboundReq, opts ...grpc.CallOption) (*IdResp, error) { return pb.NewProductionServiceClient(m.cli.Conn()).CreateInbound(ctx, in, opts...) } func (m *defaultProductionService) ListInbound(ctx context.Context, in *ListInboundReq, opts ...grpc.CallOption) (*ListInboundResp, error) { return pb.NewProductionServiceClient(m.cli.Conn()).ListInbound(ctx, in, opts...) }