This commit is contained in:
che
2026-07-13 11:17:57 +05:00
parent e3490e5d2e
commit 6fff682f74
18 changed files with 411 additions and 453 deletions
+14 -8
View File
@@ -14,11 +14,14 @@ import (
)
type ControlCase struct {
gorm.Model
Name string `json:"name"`
ParamsID uint `json:"params_id"`
Params Params `json:"params"`
Status string `json:"status"`
ID uint `gorm:"primaryKey" json:"id"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"index" json:"deleted_at,omitempty"`
Name string `json:"name"`
ParamsID uint `json:"params_id"`
Params Params `json:"params"`
Status string `json:"status"`
}
func (c ControlCase) FooCSVPath() string {
@@ -59,9 +62,12 @@ type Params struct {
}
type InitialCondition struct {
gorm.Model
Name string `json:"name"`
FilePath string `json:"file_path"`
ID uint `gorm:"primaryKey" json:"id"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"index" json:"deleted_at,omitempty"`
Name string `json:"name"`
FilePath string `json:"file_path"`
}
func (p *Params) ToTOML(filename string) error {