contracts/base/grid_layout_field.go

33 lines
1.5 KiB
Go
Raw Permalink Normal View History

package base
type GridLayoutField struct {
2023-09-18 15:11:59 +08:00
Uuid string `db:"uuid"`
GridLayoutUuid string `db:"grid_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"`
2023-09-20 10:07:39 +08:00
Label string `db:"label"`
2023-09-18 15:11:59 +08:00
Widget string `db:"widget"`
WidgetPrefix string `db:"widgetPrefix"`
2023-09-18 15:11:59 +08:00
WidgetDecorator string `db:"widgetDecorator"`
SubWidgets []map[string]any `db:"subWidgets"`
ConvertJs string `db:"convertJs"`
ConvertJsSetting map[string]any `db:"convertJsSetting"`
Extras map[string]any `db:"extras"`
IsVirtual bool `db:"isVirtual"`
InitialValue string `db:"initialValue"`
InitialValueLanguage string `db:"initialValueLanguage"`
BoxStyle map[string]any `db:"boxStyle"`
2023-09-18 15:11:59 +08:00
UpdatedAt string `db:"updated_at"`
CreatedAt string `db:"created_at"`
}
type GetGridLayoutFields func(uuid string) []GridLayoutField