model.go 772B

123456789101112131415161718
  1. package db
  2. import "time"
  3. type TaJobs struct {
  4. JobId int `xorm:"int(11) pk autoincr notnull 'job_id' comment('任务ID')"`
  5. Application string `xorm:"text 'application' comment('应用名称')"`
  6. Description string `xorm:"text 'description' comment('任务描述')"`
  7. Content string `xorm:"text 'content' comment('任务内容')"`
  8. AtTime string `xorm:"int(11) null 'at_time' comment('定时器,指定时间')"`
  9. Interval int `xorm:"int(11) null 'interval' comment('定时器,单位分钟')"`
  10. LastTime time.Time `xorm:"datetime null 'last_time' comment('上次执行时间')"`
  11. LastResult string `xorm:"text null 'last_result' comment('上次执行结果')"`
  12. }
  13. func (m *TaJobs) TableName() string {
  14. return "ta_jobs"
  15. }