From 3fdd5c558b1cf801ebd39ceb65d4b910e7d4aba0 Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期三, 01 十二月 2021 17:00:43 +0800
Subject: [PATCH] 数据推送日志添加最后一条数据状态
---
ruleServerLog.go | 26 ++++++++++++++++++--------
1 files changed, 18 insertions(+), 8 deletions(-)
diff --git a/ruleServerLog.go b/ruleServerLog.go
index dc01328..04aea9b 100644
--- a/ruleServerLog.go
+++ b/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:lastSendDate" json:"lastSendDate"`
+ CreateDate string `gorm:"column:createDate" json:"createDate"`
}
type RuleServerPushLog struct {
--
Gitblit v1.8.0