27 lines
1.7 KiB
Go
27 lines
1.7 KiB
Go
package base
|
|
|
|
type GridLayoutForm struct {
|
|
Uuid string `db:"uuid"`
|
|
ResourceUuid string `db:"resource_uuid"` // 所属资源UUID
|
|
Code string `db:"code"` // 布局标识
|
|
Name string `db:"name"` // 布局名称
|
|
Type int `db:"type"` // 布局类型
|
|
Align string `db:"align"` // 方向
|
|
PrimaryKey string `db:"primaryKey"` // 主键
|
|
AutoComplete string `db:"autoComplete"` // 自动填充表单, off | on
|
|
RowHeight int `db:"rowHeight"` // 栅格行高
|
|
MarginX int `db:"marginX"` // 栅格 x 间距
|
|
MarginY int `db:"marginY"` // 栅格 y 间距
|
|
Cols int `db:"cols"` // 网格列基数
|
|
FormProps []map[string]string `db:"formProps"` // 表单PROPS
|
|
Groups []map[string]any `db:"groups"` // 表单分组
|
|
ListenChangeFields []string `db:"listenChangeFields"` // 监听字段
|
|
ListenChangeFieldsFunc string `db:"listenChangeFieldsFunc"` // 监听字段回调方法
|
|
Platform string `db:"platform"`
|
|
Roles []string `db:"roles"`
|
|
UpdatedAt string `db:"updated_at"`
|
|
CreatedAt string `db:"created_at"`
|
|
}
|
|
|
|
type GetGridLayoutForm func(code string) (GridLayoutForm, bool)
|