contracts/base/layout_field.go

34 lines
1.4 KiB
Go
Raw Normal View History

2023-04-12 16:56:55 +08:00
package base
type LayoutField struct {
Uuid string `db:"uuid"`
LayoutUuid string `db:"layout_uuid"` // 所属布局 UUID
Type string `db:"type"`
X int `db:"x"`
Y int `db:"y"`
W int `db:"w"`
H int `db:"h"`
MinH int `db:"minH"`
MinW int `db:"minW"`
MaxH int `db:"maxH"`
MaxW int `db:"maxW"`
Code string `db:"code"`
Label string `db:"label"`
Widget string `db:"widget"`
WidgetPerfix string `db:"widgetPerfix"`
WidgetDecorator string `db:"widgetDecorator"`
SubWidgets []map[string]any `db:"subWidgets"`
Placeholder string `db:"placeholder"`
Help string `db:"help"`
Disabled int `db:"disabled"`
InitialValue string `db:"initialValue"`
Extras map[string]any `db:"extras"`
Validators map[string]any `db:"validators"`
Hidden bool `db:"hidden"`
IsVirtual bool `db:"isVirtual"`
UpdatedAt string `db:"updated_at"`
CreatedAt string `db:"created_at"`
2023-04-12 16:56:55 +08:00
}
2023-04-12 19:50:25 +08:00
type GetLayoutFields func(uuid string) []LayoutField