20 lines
525 B
Go
20 lines
525 B
Go
|
|
package dto
|
||
|
|
|
||
|
|
// FormField 表单字段配置
|
||
|
|
type FormField struct {
|
||
|
|
Name string `json:"name"`
|
||
|
|
Label string `json:"label"`
|
||
|
|
Type string `json:"type"`
|
||
|
|
Required bool `json:"required"`
|
||
|
|
Validation string `json:"validation"`
|
||
|
|
Description string `json:"description"`
|
||
|
|
Example string `json:"example"`
|
||
|
|
Placeholder string `json:"placeholder"`
|
||
|
|
}
|
||
|
|
|
||
|
|
// FormConfigResponse 表单配置响应
|
||
|
|
type FormConfigResponse struct {
|
||
|
|
ApiCode string `json:"api_code"`
|
||
|
|
Fields []FormField `json:"fields"`
|
||
|
|
}
|