Files
ppgo_job/model/entity/task_log.go
T
lmk 610b85e3a5 refactor: 从 Beego 迁移到 GoFrame v2
- 替换 Beego 框架为 GoFrame v2
- 重构项目结构: controller/service/dao/middleware 分层
- 替换自定义 crons 包为 gcron
- 模板从 views/ 迁移到 resource/template/
- 配置从 conf/app.conf 迁移到 config.yml
- 数据库从 MySQL 切换为 SQLite (modernc.org/sqlite)
- 移除 agent/ 远程执行器(待后续迁移)
- 移除 crons/ 自定义定时器包
- 静态资源整理到 resource/static/
2026-07-09 11:06:12 +08:00

31 lines
963 B
Go

package entity
// TaskLog 任务执行日志
type TaskLog struct {
Id int `orm:"id" json:"id"`
TaskId int `orm:"task_id" json:"taskId"`
ServerId int `orm:"server_id" json:"serverId"`
ServerName string `orm:"server_name" json:"serverName"`
Output string `orm:"output" json:"output"`
Error string `orm:"error" json:"error"`
Status int `orm:"status" json:"status"`
ProcessTime int `orm:"process_time" json:"processTime"`
CreateTime int64 `orm:"create_time" json:"createTime"`
}
// TaskLogCols 字段常量
var TaskLogCols = struct {
Id, TaskId, ServerId, ServerName string
Output, Error, Status, ProcessTime, CreateTime string
}{
Id: "id",
TaskId: "task_id",
ServerId: "server_id",
ServerName: "server_name",
Output: "output",
Error: "error",
Status: "status",
ProcessTime: "process_time",
CreateTime: "create_time",
}