CronJobRepository 定义了定时任务仓库接口
| 9 | |
| 10 | // CronJobRepository 定义了定时任务仓库接口 |
| 11 | type CronJobRepository interface { |
| 12 | Preempt(ctx context.Context) (domain.Job, error) |
| 13 | Release(ctx context.Context, jobId int64) error |
| 14 | UpdateTime(ctx context.Context, id int64) error |
| 15 | UpdateNextTime(ctx context.Context, id int64, nextTime time.Time) error |
| 16 | } |
| 17 | |
| 18 | // cronJobRepository 实现了 CronJobRepository 接口 |
| 19 | type cronJobRepository struct { |
no outgoing calls
no test coverage detected