|
@@ -192,6 +192,16 @@ type (
|
|
MultiAddReq struct {
|
|
MultiAddReq struct {
|
|
List []ItemHistoryData `json:"list"`
|
|
List []ItemHistoryData `json:"list"`
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ ItemHistoryListReq struct {
|
|
|
|
+ ProjectId int
|
|
|
|
+ ItemName string
|
|
|
|
+ Stime string
|
|
|
|
+ Etime string
|
|
|
|
+ Size int
|
|
|
|
+ Interval string // 时间单位 minute,h,day,s
|
|
|
|
+ Aggregator string // 聚合方式 min,max,avg,sum,realtime, new
|
|
|
|
+ }
|
|
)
|
|
)
|
|
|
|
|
|
type (
|
|
type (
|
|
@@ -252,6 +262,16 @@ type (
|
|
List []ItemHistoryResp
|
|
List []ItemHistoryResp
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ ItemHistoryListResp struct {
|
|
|
|
+ Name string `json:"name"`
|
|
|
|
+ Htime string `json:"htime_at"`
|
|
|
|
+ Val float64 `json:"val"`
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ ItemHistoryListRespList struct {
|
|
|
|
+ List []ItemHistoryListResp
|
|
|
|
+ }
|
|
|
|
+
|
|
MultiAddBody struct {
|
|
MultiAddBody struct {
|
|
Code int `json:"code"`
|
|
Code int `json:"code"`
|
|
Msg string `json:"msg"`
|
|
Msg string `json:"msg"`
|
|
@@ -262,6 +282,14 @@ type (
|
|
Msg string `json:"msg"`
|
|
Msg string `json:"msg"`
|
|
Data ItemHistoryRespList `json:"data"`
|
|
Data ItemHistoryRespList `json:"data"`
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ ItemHistoryListBody struct {
|
|
|
|
+ Code int `json:"code"`
|
|
|
|
+ Msg string `json:"msg"`
|
|
|
|
+ Data ItemHistoryListRespList `json:"data"`
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
)
|
|
)
|
|
|
|
|
|
type (
|
|
type (
|
|
@@ -288,5 +316,7 @@ type (
|
|
GetWorkingChestByCode(DcWorkingReq) (*GetWorkingChestByCodeResp, error)
|
|
GetWorkingChestByCode(DcWorkingReq) (*GetWorkingChestByCodeResp, error)
|
|
// GetWorkingPumpByCode 查询泵类工况数据
|
|
// GetWorkingPumpByCode 查询泵类工况数据
|
|
GetWorkingPumpByCode(DcWorkingReq) (*GetWorkingPumpByCodeResp, error)
|
|
GetWorkingPumpByCode(DcWorkingReq) (*GetWorkingPumpByCodeResp, error)
|
|
|
|
+ // 平替双胞胎图表接口(时间区间内按要求聚合)
|
|
|
|
+ GetItemHistoryList(ItemHistoryListReq) (resp []ItemHistoryListResp, err error)
|
|
}
|
|
}
|
|
)
|
|
)
|