,omitempty
This commit is contained in:
parent
42d65797f3
commit
616b3bc99e
|
|
@ -15,19 +15,19 @@ const (
|
|||
)
|
||||
|
||||
type FormOption struct {
|
||||
Name string `json:"name"` //选项名称
|
||||
Value string `json:"value"` //选项值
|
||||
Name string `json:"name,omitempty"` //选项名称
|
||||
Value string `json:"value,omitempty"` //选项值
|
||||
}
|
||||
|
||||
type Form struct {
|
||||
Type string `json:"type"` //表单类型
|
||||
Name string `json:"name"` //表单名称
|
||||
Key string `json:"key"` //表单KEY
|
||||
Value interface{} `json:"value"` //表单值
|
||||
Default interface{} `json:"default"` //默认值
|
||||
Type string `json:"type,omitempty" ` //表单类型
|
||||
Name string `json:"name,omitempty"` //表单名称
|
||||
Key string `json:"key,omitempty"` //表单KEY
|
||||
Value any `json:"value,omitempty"` //表单值
|
||||
Default ayn `json:"default,omitempty"` //默认值
|
||||
Disable bool `json:"disable,omitempty"` //是否禁用
|
||||
Tips string `json:"tips"` //表单提示
|
||||
Option []*FormOption `json:"option"` //表单选项,radio和checkbox需要
|
||||
Tips string `json:"tips,omitempty"` //表单提示
|
||||
Option []*FormOption `json:"option,omitempty"` //表单选项,radio和checkbox需要
|
||||
}
|
||||
|
||||
func NewFroms(tplConfig, saveConfig string) ([]*Form, error) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue