完善季度

This commit is contained in:
2024-08-29 09:05:26 +08:00
parent 2622876c70
commit a27c5f702f
13 changed files with 292 additions and 58 deletions

View File

@@ -1,13 +1,26 @@
package form
// 一天的完整谷峰规则
// 发电 (光伏)
// 用电 (电机、生产)
type PeakValleyQuarterListReq struct {
Page `json:"page"`
}
//新建规则
//
//选择时间段 设置电价
//(将时间段 转化为十分钟区块 查找到对应十分钟区块 创建该规则的电价)
type PeakValleyQuarterEditDetailReq struct {
Id int `form:"id" json:"id"`
}
type CreatePeakValleyQuarterReq struct {
QuarterName string `json:"quarter_name"`
StartTime string `json:"start_time"`
EndTime string `json:"end_time"`
RuleId uint `json:"rule_id"`
}
type UpdatePeakValleyQuarterReq struct {
Id int `json:"id" binding:"required"`
QuarterName string `json:"quarter_name"`
StartTime string `json:"start_time"`
EndTime string `json:"end_time"`
RuleId uint `json:"rule_id"`
}
type PeakValleyRuleListReq struct {
Page `json:"page"`