新增测点配置

This commit is contained in:
2024-09-03 15:52:38 +08:00
parent bfb284c4cc
commit 3b53e9f9b7
37 changed files with 429 additions and 66 deletions

5
form/device_point.go Normal file
View File

@@ -0,0 +1,5 @@
package form
type PointNameSelectReq struct {
Keyword string `form:"keyword" json:"keyword"`
}

View File

@@ -11,7 +11,7 @@ type CreatePeakValleyQuarterReq struct {
QuarterName string `json:"quarter_name"`
StartTime string `json:"start_time"`
EndTime string `json:"end_time"`
RuleId uint `json:"rule_id"`
RuleId int `json:"rule_id"`
}
type UpdatePeakValleyQuarterReq struct {
@@ -19,7 +19,7 @@ type UpdatePeakValleyQuarterReq struct {
QuarterName string `json:"quarter_name"`
StartTime string `json:"start_time"`
EndTime string `json:"end_time"`
RuleId uint `json:"rule_id"`
RuleId int `json:"rule_id"`
}
type PeakValleyRuleListReq struct {
@@ -48,7 +48,7 @@ type UpdatePeakValleyRuleReq struct {
type TimeBlockPriceReq struct {
CustomName string `json:"custom_name"`
PeakValleyType uint `json:"peak_valley_type"`
PeakValleyType int `json:"peak_valley_type"`
StartTime string `json:"start_time"`
EndTime string `json:"end_time"`
Price int `json:"price"`