parent
fbb4ccb197
commit
917a716c90
@ -1,6 +1,6 @@
|
|||||||
package gojobs
|
package gojobs
|
||||||
|
|
||||||
const (
|
const (
|
||||||
Version = "1.0.87"
|
Version = "1.0.88"
|
||||||
SpecifyIpNull = "0.0.0.0"
|
SpecifyIpNull = "0.0.0.0"
|
||||||
)
|
)
|
||||||
|
@ -1,12 +0,0 @@
|
|||||||
package jobs_xorm_model
|
|
||||||
|
|
||||||
// TaskIp 任务Ip
|
|
||||||
type TaskIp struct {
|
|
||||||
Id int64 `xorm:"pk autoincr" json:"id"`
|
|
||||||
TaskType string `json:"task_type"` // 任务编号
|
|
||||||
Ips string `json:"ips"` // 任务IP
|
|
||||||
}
|
|
||||||
|
|
||||||
func (TaskIp) TableName() string {
|
|
||||||
return "task_ip"
|
|
||||||
}
|
|
@ -1,15 +0,0 @@
|
|||||||
package jobs_xorm_model
|
|
||||||
|
|
||||||
// TaskLog 任务日志模型
|
|
||||||
type TaskLog struct {
|
|
||||||
Id uint `xorm:"pk autoincr" json:"id"` // 记录编号
|
|
||||||
TaskId uint `json:"task_id"` // 任务编号
|
|
||||||
StatusCode int `json:"status_code"` // 状态码
|
|
||||||
Desc string `json:"desc"` // 结果
|
|
||||||
Version int `json:"version"` // 版本
|
|
||||||
CreatedAt string `xorm:"created" json:"created_at"` // 创建时间
|
|
||||||
}
|
|
||||||
|
|
||||||
func (TaskLog) TableName() string {
|
|
||||||
return "task_log"
|
|
||||||
}
|
|
@ -1,21 +0,0 @@
|
|||||||
package jobs_xorm_model
|
|
||||||
|
|
||||||
// TaskLogRun 任务执行日志模型
|
|
||||||
type TaskLogRun struct {
|
|
||||||
Id uint `xorm:"pk autoincr" json:"id"` // 记录编号
|
|
||||||
TaskId uint `json:"task_id"` // 任务编号
|
|
||||||
RunId string `json:"run_id"` // 执行编号
|
|
||||||
OutsideIp string `json:"outside_ip"` // 外网ip
|
|
||||||
InsideIp string `json:"inside_ip"` // 内网ip
|
|
||||||
Os string `json:"os"` // 系统类型
|
|
||||||
Arch string `json:"arch"` // 系统架构
|
|
||||||
Gomaxprocs int `json:"gomaxprocs"` // CPU核数
|
|
||||||
GoVersion string `json:"go_version"` // GO版本
|
|
||||||
SdkVersion string `json:"sdk_version"` // SDK版本
|
|
||||||
MacAddrs string `json:"mac_addrs"` // Mac地址
|
|
||||||
CreatedAt string `xorm:"created" json:"created_at"` // 创建时间
|
|
||||||
}
|
|
||||||
|
|
||||||
func (TaskLogRun) TableName() string {
|
|
||||||
return "task_log_run"
|
|
||||||
}
|
|
Loading…
Reference in new issue