|
@@ -5,11 +5,12 @@ import (
|
|
|
"eta/eta_forum_hub/models/system"
|
|
|
"eta/eta_forum_hub/utils"
|
|
|
"fmt"
|
|
|
- "github.com/beego/beego/v2/client/orm"
|
|
|
- "github.com/rdlucklib/rdluck_tools/paging"
|
|
|
"strconv"
|
|
|
"strings"
|
|
|
"time"
|
|
|
+
|
|
|
+ "github.com/beego/beego/v2/client/orm"
|
|
|
+ "github.com/rdlucklib/rdluck_tools/paging"
|
|
|
)
|
|
|
|
|
|
type ChartInfo struct {
|
|
@@ -1053,6 +1054,18 @@ type EdbDataBase struct {
|
|
|
DataTimestamp int64
|
|
|
}
|
|
|
|
|
|
+type EdbDataBaseWithOpType struct {
|
|
|
+ *EdbDataBase
|
|
|
+ OpType string
|
|
|
+}
|
|
|
+
|
|
|
+type AddEdbDataBinlogReq struct {
|
|
|
+ EdbInfoId int
|
|
|
+ EdbCode string
|
|
|
+ EdbType int
|
|
|
+ DataList []*EdbDataBaseWithOpType
|
|
|
+}
|
|
|
+
|
|
|
type DeleteChartReq struct {
|
|
|
ChartInfoId int `description:"图表id"`
|
|
|
}
|
|
@@ -2159,3 +2172,25 @@ type ChartListResp struct {
|
|
|
ChartInfoList []*ChartInfo
|
|
|
Paging *paging.PagingItem `description:"分页数据"`
|
|
|
}
|
|
|
+
|
|
|
+// {"create_time":"2024-10-12 17:03:04","data_time":"2024-09-08","data_timestamp":1725724800000,"edb_code":"smmsmmgd1djt","edb_data_id":88546,"edb_info_id":105933,"modify_time":"2024-10-14 13:37:30","value":71988}
|
|
|
+type EdbDataBinlogItem struct {
|
|
|
+ CreateTime time.Time
|
|
|
+ DataTime time.Time
|
|
|
+ DataTimestamp int64
|
|
|
+ EdbCode string
|
|
|
+ EdbDataId int
|
|
|
+ EdbInfoId int
|
|
|
+ ModifyTime time.Time
|
|
|
+ Value interface{}
|
|
|
+ OpType string
|
|
|
+}
|
|
|
+
|
|
|
+type EdbDataBinlogDataReq struct {
|
|
|
+ Item string `description:"指标数据列表"`
|
|
|
+ OpType string `description:"操作类型"`
|
|
|
+}
|
|
|
+
|
|
|
+type EdbDataBinlogReq struct {
|
|
|
+ List []*EdbDataBinlogDataReq `description:"指标数据列表"`
|
|
|
+}
|