Files
ai-agent/digitalhuman/model/dto/async_task_ref_dto.go
2026-04-27 11:07:21 +08:00

26 lines
1005 B
Go
Raw 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
import "github.com/gogf/gf/v2/frame/g"
// SyncAsyncTasksReq 定时任务/业务侧轮询使用:同步处理中间件任务状态并转移结果
type SyncAsyncTasksReq struct {
g.Meta `path:"/syncAsyncTasks" method:"post" tags:"异步任务" summary:"同步异步任务" dc:"扫描本服务待处理任务(task_id),批量查询 model-asynch 状态成功则转移OSS并更新业务表"`
Limit int `p:"limit" json:"limit" dc:"单次处理上限默认200"`
}
type SyncAsyncTasksItem struct {
TaskID string `json:"taskId"`
State int `json:"state"`
TableName string `json:"tableName"`
BizID string `json:"bizId"`
OssFile string `json:"ossFile"`
ErrorMsg string `json:"errorMsg"`
}
type SyncAsyncTasksRes struct {
Total int `json:"total" dc:"本次扫描到的任务数"`
Handled int `json:"handled" dc:"本次成功处理数(含更新状态/转移)"`
List []SyncAsyncTasksItem `json:"list" dc:"任务明细"`
}