service.xpcool.com/internal/model/dto/job.go

44 lines
773 B
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Package dto 定义自动任务模块的服务边界对象。
package dto
// JobVO 任务出参。
type JobVO struct {
Id uint64
Name string
Code string
JobType string
CronExpr string
Enabled int
Remark string
LastRunAt string
LastResult int
LastError string
}
// JobInput 任务更新入参cron/启用/备注)。
type JobInput struct {
Id uint64
CronExpr string
Enabled int
Remark string
}
// JobLogVO 任务运行日志出参。
type JobLogVO struct {
Id uint64
JobId uint64
JobName string
RunAt string
Result int
Error string
Summary string
DurationMs int
}
// JobLogFilter 运行日志筛选。
type JobLogFilter struct {
Page int
Size int
JobId uint64
}