Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExcutorEntity ¶ added in v1.7.2
type ExcutorEntity struct { app.IdTimeStampsModel ParentId int64 `gorm:"column:parent_id" json:"ParentId,string" form:"ParentId" comment:"父Id"` CategoryId int `gorm:"column:codetory_id" json:"CategoryId" form:"CategoryId" comment:"分类id"` Name string `gorm:"column:name" json:"Name" form:"Name" comment:"名称"` Code string `gorm:"column:code" json:"Code" form:"Code" comment:"代码"` FilePath string `gorm:"column:file_path" json:"FilePath" form:"FilePath" comment:"文件路径"` Source string `gorm:"column:source" json:"Source" form:"Source" comment:"来源"` // Children []ExcutorEntity `gorm:"foreignKey:ParentId;" json:"children"` Status int `gorm:"column:status;default:0" json:"Status" form:"Status" comment:"状态"` }
func (ExcutorEntity) TableName ¶ added in v1.7.2
func (t ExcutorEntity) TableName() string
type ExcutorLogEntity ¶ added in v1.7.2
type ExcutorLogEntity struct { app.IdTimeStampsModel ExcutorId int64 `gorm:"column:excutor_id" json:"ExcutorId,string" form:"ExcutorId" comment:"ExcutorId"` ScheduleLogId int64 `gorm:"column:schedule_log_id" json:"ScheduleLogId,string" form:"ScheduleLogId" comment:"日志id"` Message string `gorm:"column:message" json:"Message" form:"Message" comment:"消息"` }
func (ExcutorLogEntity) TableName ¶ added in v1.7.2
func (ExcutorLogEntity) TableName() string
type ScheduleEntity ¶
type ScheduleEntity struct { app.SoftDeleteModel app.IdTimeStampsModel // app.SnowflakeIDModel Name string `gorm:"column:name" json:"Name" form:"Name" comment:"名称"` ExcutorId int64 `gorm:"column:excutor_id" json:"ExcutorId,string" form:"ExcutorId" comment:"ExcutorId"` Excutor ExcutorEntity `gorm:"foreignKey:excutor_id;AssociationForeignKey:Id" json:"Excutor"` Param string `gorm:"column:param" json:"Param" form:"Param" comment:"执行参数"` Cron string `gorm:"column:cron" json:"Cron" form:"Cron" comment:"cron"` Status int `gorm:"column:status;default:0" json:"Status" form:"Status" comment:"状态"` }
func (ScheduleEntity) TableName ¶
func (ScheduleEntity) TableName() string
type ScheduleLogEntity ¶
type ScheduleLogEntity struct { app.IdTimeStampsModel // app.SnowflakeIDModel ScheduleId int64 `gorm:"column:schedule_id" json:"ScheduleId,string" form:"ScheduleId" comment:"调度id"` StartAt app.ISO8601Time `gorm:"column:start_at" json:"StartAt" form:"StartAt" comment:"开始时间"` EndAt time.Time `gorm:"column:end_at" json:"EndAt" form:"EndAt" comment:"结束时间"` Status int `gorm:"column:status;default:0" json:"Status" form:"Status" comment:"状态"` Message string `gorm:"column:message" json:"Message" form:"Message" comment:"消息"` }
func (ScheduleLogEntity) TableName ¶
func (ScheduleLogEntity) TableName() string
Click to show internal directories.
Click to hide internal directories.