package server import ( "context" "muyu-apiserver/rpc/production/internal/logic" "muyu-apiserver/rpc/production/internal/svc" "muyu-apiserver/rpc/production/pb" ) type ProductionServiceServer struct { svcCtx *svc.ServiceContext pb.UnimplementedProductionServiceServer } func NewProductionServiceServer(svcCtx *svc.ServiceContext) *ProductionServiceServer { return &ProductionServiceServer{svcCtx: svcCtx} } func (s *ProductionServiceServer) CreateProductionPlan(ctx context.Context, in *pb.CreateProductionPlanReq) (*pb.IdResp, error) { l := logic.NewCreateProductionPlanLogic(ctx, s.svcCtx) return l.CreateProductionPlan(in) } func (s *ProductionServiceServer) ListProductionPlan(ctx context.Context, in *pb.ListProductionPlanReq) (*pb.ListProductionPlanResp, error) { l := logic.NewListProductionPlanLogic(ctx, s.svcCtx) return l.ListProductionPlan(in) } func (s *ProductionServiceServer) GetProductionPlan(ctx context.Context, in *pb.GetProductionPlanReq) (*pb.ProductionPlanInfo, error) { l := logic.NewGetProductionPlanLogic(ctx, s.svcCtx) return l.GetProductionPlan(in) } func (s *ProductionServiceServer) ConfirmPlan(ctx context.Context, in *pb.ConfirmPlanReq) (*pb.Empty, error) { l := logic.NewConfirmPlanLogic(ctx, s.svcCtx) return l.ConfirmPlan(in) } func (s *ProductionServiceServer) CreateShareLink(ctx context.Context, in *pb.CreateShareLinkReq) (*pb.ShareLinkInfo, error) { l := logic.NewCreateShareLinkLogic(ctx, s.svcCtx) return l.CreateShareLink(in) } func (s *ProductionServiceServer) GetShareLink(ctx context.Context, in *pb.GetShareLinkReq) (*pb.ShareLinkInfo, error) { l := logic.NewGetShareLinkLogic(ctx, s.svcCtx) return l.GetShareLink(in) } func (s *ProductionServiceServer) GetShareLinkPlanView(ctx context.Context, in *pb.GetShareLinkReq) (*pb.ShareLinkPlanView, error) { l := logic.NewGetShareLinkPlanViewLogic(ctx, s.svcCtx) return l.GetShareLinkPlanView(in) } func (s *ProductionServiceServer) ClickShareLink(ctx context.Context, in *pb.ClickShareLinkReq) (*pb.Empty, error) { l := logic.NewClickShareLinkLogic(ctx, s.svcCtx) return l.ClickShareLink(in) } func (s *ProductionServiceServer) ConfirmShareLink(ctx context.Context, in *pb.ConfirmShareLinkReq) (*pb.Empty, error) { l := logic.NewConfirmShareLinkLogic(ctx, s.svcCtx) return l.ConfirmShareLink(in) } func (s *ProductionServiceServer) RejectShareLink(ctx context.Context, in *pb.RejectShareLinkReq) (*pb.Empty, error) { l := logic.NewRejectShareLinkLogic(ctx, s.svcCtx) return l.RejectShareLink(in) } func (s *ProductionServiceServer) CompleteStep(ctx context.Context, in *pb.CompleteStepReq) (*pb.Empty, error) { l := logic.NewCompleteStepLogic(ctx, s.svcCtx) return l.CompleteStep(in) } func (s *ProductionServiceServer) CreateInbound(ctx context.Context, in *pb.CreateInboundReq) (*pb.IdResp, error) { l := logic.NewCreateInboundLogic(ctx, s.svcCtx) return l.CreateInbound(in) } func (s *ProductionServiceServer) ListInbound(ctx context.Context, in *pb.ListInboundReq) (*pb.ListInboundResp, error) { l := logic.NewListInboundLogic(ctx, s.svcCtx) return l.ListInbound(in) }