[feat] 移除 ResFieldByMap, ResFieldByAnys 类型

This commit is contained in:
2023-06-23 00:10:24 +08:00
parent 88ed380018
commit 6ccef0fbb8
25 changed files with 416 additions and 459 deletions
+15 -19
View File
@@ -1,25 +1,21 @@
package base
import (
"git.fsdpf.net/go/contracts/res_type"
)
type Route struct {
Uuid string `db:"uuid"`
Name string `db:"name"`
Uri string `db:"uri"`
Layout string `db:"layout"`
IsLogin bool `db:"isLogin"`
IsPhone bool `db:"isPhone"`
Type string `db:"type"`
Component string `db:"component"`
WidgetProps res_type.ResFieldByMap `db:"widgetProps"`
WidgetSetting res_type.ResFieldByMap `db:"widgetSetting"`
WidgetContainerSetting res_type.ResFieldByMap `db:"widgetContainerSetting"`
Exact bool `db:"exact"`
Platform string `db:"platform"`
UpdatedAt string `db:"updated_at"`
CreatedAt string `db:"created_at"`
Uuid string `db:"uuid"`
Name string `db:"name"`
Uri string `db:"uri"`
Layout string `db:"layout"`
IsLogin bool `db:"isLogin"`
IsPhone bool `db:"isPhone"`
Type string `db:"type"`
Component string `db:"component"`
WidgetProps map[string]any `db:"widgetProps"`
WidgetSetting map[string]any `db:"widgetSetting"`
WidgetContainerSetting map[string]any `db:"widgetContainerSetting"`
Exact bool `db:"exact"`
Platform string `db:"platform"`
UpdatedAt string `db:"updated_at"`
CreatedAt string `db:"created_at"`
}
// 前端路由