修改接口约束

This commit is contained in:
2023-08-04 10:38:12 +08:00
parent 262275a894
commit dcd2281f33
2 changed files with 1 additions and 6 deletions

View File

@ -13,10 +13,6 @@ package task
//
// Date : 14:26 2022/6/23
type Config struct {
// TaskName 执行的任务名称
TaskName string
// Async 是否异步运行
Async bool
// Timeout 单位 : 秒, <= 0认为不设置超时
Timeout int
// ForbiddenCallback 禁用执行结果回调
@ -37,7 +33,6 @@ type Result struct {
TaskRunID string // 任务运行ID
TaskDescription string // 任务描述
TaskConfig *Config // 任务配置
Async bool // 是否运行
Data map[string]interface{} // 任务结果数据
Err error // 异常信息, err == nil , 代表执行成功
}