更新复合案例模型字段名称,将 StepConfig 重命名为 ParametersJson 以提高字段表达清晰度和一致性
This commit is contained in:
parent
71eb131e58
commit
bc52b82b93
@ -27,7 +27,7 @@ type CompositeCaseStep struct {
|
||||
StepName string `json:"step_name" gorm:"not null;size:255"`
|
||||
StepDescription string `json:"step_description" gorm:"type:text"`
|
||||
StepType string `json:"step_type" gorm:"not null;size:100"`
|
||||
StepConfig string `json:"step_config" gorm:"type:json"`
|
||||
ParametersJson string `json:"parameters_json" gorm:"type:json"`
|
||||
IsRequired bool `json:"is_required" gorm:"default:true"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
UpdatedAt time.Time `json:"updated_at"`
|
||||
@ -47,7 +47,7 @@ type CreateCompositeCaseStepRequest struct {
|
||||
StepName string `json:"step_name" binding:"required"`
|
||||
StepDescription string `json:"step_description"`
|
||||
StepType string `json:"step_type" binding:"required"`
|
||||
StepConfig string `json:"step_config"`
|
||||
ParametersJson string `json:"parameters_json"`
|
||||
IsRequired bool `json:"is_required"`
|
||||
}
|
||||
|
||||
@ -66,6 +66,6 @@ type UpdateCompositeCaseStepRequest struct {
|
||||
StepName string `json:"step_name"`
|
||||
StepDescription string `json:"step_description"`
|
||||
StepType string `json:"step_type"`
|
||||
StepConfig string `json:"step_config"`
|
||||
ParametersJson string `json:"parameters_json"`
|
||||
IsRequired bool `json:"is_required"`
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user