新增测点配置

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

View File

@@ -7,11 +7,11 @@ import (
)
type PeakValleyQuarter struct {
Id uint `gorm:"column:id;primaryKey" json:"id"`
Id int `gorm:"column:id;primaryKey" json:"id"`
QuarterName string `gorm:"column:quarter_name;comment:季度名称" json:"quarter_name"`
StartTime time.Time `gorm:"column:start_time;type:date;comment:开始时间" json:"start_time"`
EndTime time.Time `gorm:"column:end_time;type:date;comment:结束时间" json:"end_time"`
Rid uint `gorm:"column:rid;comment:季度使用规则" json:"rid"`
Rid int `gorm:"column:rid;comment:季度使用规则" json:"rid"`
Created time.Time `gorm:"column:created;autoCreateTime;comment:创建时间" json:"created"`
Updated time.Time `gorm:"column:updated;autoUpdateTime;comment:修改时间" json:"updated"`
DeletedAt gorm.DeletedAt `gorm:"index;comment:删除时间" json:"-"`