[feat] GridLayoutField 字段调整

This commit is contained in:
what 2023-09-18 15:11:59 +08:00
parent 8f0e1f605d
commit 2cbbe63064

View File

@ -1,30 +1,30 @@
package base package base
type GridLayoutField struct { type GridLayoutField struct {
Uuid string `db:"uuid"` Uuid string `db:"uuid"`
GridLayoutUuid string `db:"grid_layout_uuid"` // 所属布局 UUID GridLayoutUuid string `db:"grid_layout_uuid"` // 所属布局 UUID
Type string `db:"type"` Type string `db:"type"`
X int `db:"x"` X int `db:"x"`
Y int `db:"y"` Y int `db:"y"`
W int `db:"w"` W int `db:"w"`
H int `db:"h"` H int `db:"h"`
MinH int `db:"minH"` MinH int `db:"minH"`
MinW int `db:"minW"` MinW int `db:"minW"`
MaxH int `db:"maxH"` MaxH int `db:"maxH"`
MaxW int `db:"maxW"` MaxW int `db:"maxW"`
Code string `db:"code"` Code string `db:"code"`
Label string `db:"label"` Widget string `db:"widget"`
Widget string `db:"widget"` WidgetPerfix string `db:"widgetPerfix"`
WidgetPerfix string `db:"widgetPerfix"` WidgetDecorator string `db:"widgetDecorator"`
WidgetDecorator string `db:"widgetDecorator"` SubWidgets []map[string]any `db:"subWidgets"`
SubWidgets []map[string]any `db:"subWidgets"` ConvertJs string `db:"convertJs"`
InitialValue string `db:"initialValue"` ConvertJsSetting map[string]any `db:"convertJsSetting"`
Css map[string]any `db:"css"` Extras map[string]any `db:"extras"`
Extras map[string]any `db:"extras"` IsVirtual bool `db:"isVirtual"`
Hidden bool `db:"hidden"` InitialValue string `db:"initialValue"`
IsVirtual bool `db:"isVirtual"` InitialValueLanguage string `db:"initialValueLanguage"`
UpdatedAt string `db:"updated_at"` UpdatedAt string `db:"updated_at"`
CreatedAt string `db:"created_at"` CreatedAt string `db:"created_at"`
} }
type GetGridLayoutFields func(uuid string) []GridLayoutField type GetGridLayoutFields func(uuid string) []GridLayoutField