新增测点配置
This commit is contained in:
5
form/device_point.go
Normal file
5
form/device_point.go
Normal file
@@ -0,0 +1,5 @@
|
||||
package form
|
||||
|
||||
type PointNameSelectReq struct {
|
||||
Keyword string `form:"keyword" json:"keyword"`
|
||||
}
|
||||
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user