zhangzengfei
2022-01-24 6ee16e1d46ef47d227697691fc231ccc7cc384be
ruleServerLog.go
@@ -2,15 +2,25 @@
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"`
   State        string `gorm:"column:state" json:"state"`
   TotalSuccess int    `gorm:"column:totalSuccess" json:"totalSuccess"`
   TotalFailure int    `gorm:"column:totalFailure" json:"totalFailure"`
   TotalCached  string `gorm:"column:totalCached" json:"totalCached"`
   LastSendDate string `gorm:"column:lastSendDate" json:"lastSendDate"`
   CreateDate   string  `gorm:"column:createDate" json:"createDate"`
   ID            string `gorm:"column:id;primaryKey;unique;autoIncrement" json:"id"` // 主键id
   Name          string `gorm:"column:name" json:"name"`
   State         string `gorm:"column:state" json:"state"`
   TotalSuccess  int    `gorm:"column:totalSuccess" json:"totalSuccess"`
   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:lastSendState" json:"lastSendState"`
   CreateDate    string `gorm:"column:createDate" json:"createDate"`
}
type RuleServerPushLog struct {