cron_log.go 535 B

12345678910111213141516171819
  1. package model
  2. import (
  3. "dy-admin/internal/pcmserver/common"
  4. "time"
  5. )
  6. type CronLog struct {
  7. common.Model
  8. ExecTime time.Time `json:"execTime" gorm:"comment:执行时间"`
  9. CronName string `json:"cronName" gorm:"comment:'定时任务名称'"`
  10. CronRes string `json:"cronRes" gorm:"comment:'定时任务结果'"`
  11. CreatedAt time.Time `json:"createdAt" gorm:"comment:创建时间"`
  12. UpdatedAt time.Time `json:"updatedAt" gorm:"comment:最后更新时间"`
  13. }
  14. func (m *CronLog) TableName() string {
  15. return "bus_cron_logs"
  16. }