| | |
| | | |
| | | 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:lastSendDate" json:"lastSendDate"` |
| | | CreateDate string `gorm:"column:createDate" json:"createDate"` |
| | | } |
| | | |
| | | type RuleServerPushLog struct { |