thread-master/backend/internal/logic/job/delete_job_schedule_logic.go

32 lines
662 B
Go
Raw Normal View History

2026-06-26 08:37:04 +00:00
// Code scaffolded by goctl. Safe to edit.
// goctl 1.10.1
package job
import (
"context"
"haixun-backend/internal/svc"
"haixun-backend/internal/types"
"github.com/zeromicro/go-zero/core/logx"
)
type DeleteJobScheduleLogic struct {
logx.Logger
ctx context.Context
svcCtx *svc.ServiceContext
}
func NewDeleteJobScheduleLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteJobScheduleLogic {
return &DeleteJobScheduleLogic{
Logger: logx.WithContext(ctx),
ctx: ctx,
svcCtx: svcCtx,
}
}
func (l *DeleteJobScheduleLogic) DeleteJobSchedule(req *types.JobScheduleIDPath) error {
return l.svcCtx.Job.DeleteSchedule(l.ctx, req.ID)
}