zhangzengfei
2021-12-01 3fdd5c558b1cf801ebd39ceb65d4b910e7d4aba0
ruleServerLog.go
@@ -2,6 +2,15 @@
import "encoding/json"
const (
   UpdateTaskState int = iota
   IncreaseSuccess
   IncreaseFailure
   UpdateCacheCount
   UpdateLastState
   ReduceFailure
)
type RuleServerLog struct {
   ID           string `gorm:"column:id;primaryKey;unique;autoIncrement" json:"id"` // 主键id
   Name         string `gorm:"column:name" json:"name"`
@@ -10,6 +19,7 @@
   TotalFailure int    `gorm:"column:totalFailure" json:"totalFailure"`
   TotalCached  string `gorm:"column:totalCached" json:"totalCached"`
   LastSendDate string `gorm:"column:lastSendDate" json:"lastSendDate"`
   LastSendState string `gorm:"column:lastSendDate" json:"lastSendDate"`
   CreateDate   string  `gorm:"column:createDate" json:"createDate"`
}