jobs_zorm_model

package
v1.0.47 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 20, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Task

type Task struct {
	Id             uint   `zorm:"primaryKey" json:"id"`            // 记录编号
	Status         string `json:"status"`                          // 状态码
	Params         string `json:"params"`                          // 参数
	ParamsType     string `json:"params_type"`                     // 参数类型
	StatusDesc     string `json:"status_desc"`                     // 状态描述
	Frequency      int64  `json:"frequency"`                       // 频率(秒单位)
	Number         int64  `json:"number"`                          // 当前次数
	MaxNumber      int64  `json:"max_number"`                      // 最大次数
	RunId          string `json:"run_id"`                          // 执行编号
	CustomId       string `json:"custom_id"`                       // 自定义编号
	CustomSequence int64  `json:"custom_sequence"`                 // 自定义顺序
	Type           string `json:"type"`                            // 类型
	CreatedIp      string `json:"created_ip"`                      // 创建外网IP
	SpecifyIp      string `json:"specify_ip"`                      // 指定外网IP
	UpdatedIp      string `json:"updated_ip"`                      // 更新外网IP
	Result         string `json:"result"`                          // 结果
	CreatedAt      string `zorm:"type:text" json:"created_at"`     // 创建时间
	UpdatedAt      string `zorm:"type:text" json:"updated_at"`     // 更新时间
	DeletedAt      string `zorm:"index;deleted" json:"deleted_at"` // 删除时间
}

Task 任务

func (*Task) TableName

func (m *Task) TableName() string

type TaskIp

type TaskIp struct {
	Id       int64  `zorm:"primaryKey" json:"id"`
	TaskType string `json:"task_type"` // 任务编号
	Ips      string `json:"ips"`       // 任务IP
}

TaskIp 任务Ip

func (*TaskIp) TableName

func (m *TaskIp) TableName() string

type TaskLog

type TaskLog struct {
	Id         uint   `zorm:"primaryKey" json:"id"`        // 记录编号
	TaskId     uint   `json:"task_id"`                     // 任务编号
	StatusCode int    `json:"status_code"`                 // 状态码
	Desc       string `json:"desc"`                        // 结果
	Version    int    `json:"version"`                     // 版本
	CreatedAt  string `zorm:"type:text" json:"created_at"` // 创建时间
}

TaskLog 任务日志模型

func (*TaskLog) TableName

func (m *TaskLog) TableName() string

type TaskLogRun

type TaskLogRun struct {
	Id         uint   `zorm:"primaryKey" 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版本
	MacAddrs   string `json:"mac_addrs"`                   // Mac地址
	CreatedAt  string `zorm:"type:text" json:"created_at"` // 创建时间
}

TaskLogRun 任务执行日志模型

func (*TaskLogRun) TableName

func (m *TaskLogRun) TableName() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL