feat: 升级 samber/do v1 → v2
This commit is contained in:
+19
-16
@@ -1,22 +1,25 @@
|
||||
package base
|
||||
|
||||
type GridLayout struct {
|
||||
Uuid string `db:"uuid"`
|
||||
ResourceUuid string `db:"resource_uuid"` // 所属资源UUID
|
||||
Code string `db:"code"` // 布局标识
|
||||
Name string `db:"name"` // 布局名称
|
||||
Type int `db:"type"` // 布局类型 [0=普通布局, 1=辅助布局]
|
||||
PrimaryKey string `db:"primaryKey"` // 主键
|
||||
MarginX int `db:"marginX"` // 栅格 x 间距
|
||||
MarginY int `db:"marginY"` // 栅格 y 间距
|
||||
Cols int `db:"cols"` // 网格列基数
|
||||
RowHeight float32 `db:"rowHeight"` // 栅格行高
|
||||
Css map[string]any `db:"css"` // 布局CSS
|
||||
Props []any `db:"props"` // 布局PROPS
|
||||
Platform string `db:"platform"`
|
||||
Roles []string `db:"roles"`
|
||||
UpdatedAt string `db:"updated_at"`
|
||||
CreatedAt string `db:"created_at"`
|
||||
Uuid string `db:"uuid"`
|
||||
ResourceUuid string `db:"resource_uuid"` // 所属资源UUID
|
||||
Code string `db:"code"` // 布局标识
|
||||
Name string `db:"name"` // 布局名称
|
||||
Type int `db:"type"` // 布局类型 [0=普通布局, 1=辅助布局]
|
||||
PrimaryKey string `db:"primaryKey"` // 主键
|
||||
MarginX int `db:"marginX"` // 栅格 x 间距
|
||||
MarginY int `db:"marginY"` // 栅格 y 间距
|
||||
Cols int `db:"cols"` // 网格列基数
|
||||
RowHeight float32 `db:"rowHeight"` // 栅格行高
|
||||
Css map[string]any `db:"css"` // 布局CSS
|
||||
Props []any `db:"props"` // 布局PROPS
|
||||
Groups []map[string]any `db:"groups"` // 布局分组
|
||||
Theme string `db:"theme"` // 布局样式
|
||||
ThemeConfig map[string]any `db:"themeConfig"` // 布局样式配置
|
||||
Platform string `db:"platform"`
|
||||
Roles []string `db:"roles"`
|
||||
UpdatedAt string `db:"updated_at"`
|
||||
CreatedAt string `db:"created_at"`
|
||||
}
|
||||
|
||||
type GetGridLayout func(code string) (GridLayout, bool)
|
||||
|
||||
Reference in New Issue
Block a user