2021-06-03 18:57:56 +00:00
|
|
|
|
package code
|
|
|
|
|
|
|
|
|
|
import (
|
2022-03-12 17:12:29 +00:00
|
|
|
|
. "code.hoteas.com/golang/hotime/common"
|
2021-06-03 18:57:56 +00:00
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
var Config = Map{
|
|
|
|
|
"name": "HoTimeDashBoard",
|
2021-06-04 02:04:37 +00:00
|
|
|
|
"id": "2f92h3herh23rh2y8",
|
2021-06-03 18:57:56 +00:00
|
|
|
|
"label": "HoTime管理平台",
|
2021-09-16 20:00:49 +00:00
|
|
|
|
|
2021-06-11 00:06:44 +00:00
|
|
|
|
"menus": []Map{
|
2021-06-03 18:57:56 +00:00
|
|
|
|
{"label": "平台首页", "name": "HelloWorld", "icon": "el-icon-s-home"},
|
2021-06-11 00:06:44 +00:00
|
|
|
|
//{"label": "测试表格", "table": "table", "icon": "el-icon-suitcase"},
|
|
|
|
|
//{"label": "系统管理", "name": "setting", "icon": "el-icon-setting",
|
|
|
|
|
// "menus": []Map{
|
2022-01-12 09:33:20 +00:00
|
|
|
|
// {"label": "用户管理", "table": "user",
|
|
|
|
|
// "default": {
|
|
|
|
|
// "path": "info",
|
|
|
|
|
// "id": "1"
|
|
|
|
|
// },
|
|
|
|
|
// "auth": ["show","edit","info","add","delete"],
|
|
|
|
|
// },
|
2021-06-11 00:06:44 +00:00
|
|
|
|
// {"label": "组织管理", "table": "organization"},
|
|
|
|
|
// {"label": "地区管理", "table": "area"},
|
|
|
|
|
// {"label": "角色管理", "table": "role"},
|
|
|
|
|
// {"label": "日志管理", "table": "log"},
|
|
|
|
|
// {"label": "系统设置", "table": "system", "default": "edit"},
|
|
|
|
|
// },
|
|
|
|
|
//},
|
2021-06-03 18:57:56 +00:00
|
|
|
|
},
|
|
|
|
|
}
|
2021-06-11 01:41:23 +00:00
|
|
|
|
var DefaultMenuParentName = "sys"
|
2021-06-11 00:06:44 +00:00
|
|
|
|
|
2021-06-07 03:32:47 +00:00
|
|
|
|
var ColumnDataType = map[string]string{
|
|
|
|
|
//sqlite专有类型
|
|
|
|
|
"real": "number",
|
|
|
|
|
//mysql数据类型宽泛类型
|
|
|
|
|
"int": "number",
|
|
|
|
|
"float": "number",
|
|
|
|
|
"double": "number",
|
|
|
|
|
"decimal": "number",
|
|
|
|
|
"char": "text",
|
|
|
|
|
"text": "text",
|
|
|
|
|
"blob": "text",
|
|
|
|
|
"date": "time",
|
|
|
|
|
"time": "time",
|
|
|
|
|
"year": "time",
|
|
|
|
|
"geometry": "gis", //不建议使用gis类型,建议使用其他代替
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ColumnShow struct {
|
|
|
|
|
Name string
|
|
|
|
|
List bool
|
|
|
|
|
Edit bool
|
|
|
|
|
Info bool
|
|
|
|
|
Must bool
|
|
|
|
|
Type string //空字符串表示
|
2021-07-03 20:03:29 +00:00
|
|
|
|
Strict bool //name严格匹配必须是这个词才行
|
2021-06-07 03:32:47 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var ColumnNameType = []ColumnShow{
|
|
|
|
|
//通用
|
2021-09-16 20:00:49 +00:00
|
|
|
|
{"parent_id", true, true, true, false, "", true},
|
2021-06-07 03:32:47 +00:00
|
|
|
|
//"sn"{true,true,true,""},
|
2021-06-11 00:06:44 +00:00
|
|
|
|
{"status", true, true, true, false, "select", false},
|
2021-12-27 10:21:41 +00:00
|
|
|
|
{"state", true, true, true, false, "select", false},
|
2021-06-11 00:06:44 +00:00
|
|
|
|
{"sex", true, true, true, false, "select", false},
|
2021-06-07 03:32:47 +00:00
|
|
|
|
{"delete", false, false, false, false, "", false},
|
2021-06-11 00:06:44 +00:00
|
|
|
|
|
2021-06-12 05:33:35 +00:00
|
|
|
|
{"lat", false, true, true, false, "", false},
|
|
|
|
|
{"lng", false, true, true, false, "", false},
|
|
|
|
|
{"latitude", false, true, true, false, "", false},
|
|
|
|
|
{"longitude", false, true, true, false, "", false},
|
|
|
|
|
|
2021-09-15 20:33:10 +00:00
|
|
|
|
{"index", false, false, false, false, "index", false},
|
2021-06-07 03:32:47 +00:00
|
|
|
|
{"password", false, true, false, false, "password", false},
|
2021-07-04 18:20:10 +00:00
|
|
|
|
{"pwd", false, true, false, false, "password", false},
|
2021-06-07 03:32:47 +00:00
|
|
|
|
{"info", false, true, true, false, "", false},
|
|
|
|
|
{"version", false, false, false, false, "", false},
|
|
|
|
|
{"seq", false, true, true, false, "", false},
|
|
|
|
|
{"sort", false, true, true, false, "", false},
|
|
|
|
|
{"note", false, true, true, false, "", false},
|
|
|
|
|
{"description", false, true, true, false, "", false},
|
2021-06-11 00:06:44 +00:00
|
|
|
|
{"abstract", false, true, true, false, "", false},
|
|
|
|
|
{"content", false, true, true, false, "", false},
|
2021-06-07 03:32:47 +00:00
|
|
|
|
{"address", false, true, true, false, "", false},
|
|
|
|
|
{"full_name", false, true, true, false, "", false},
|
2021-09-15 20:33:10 +00:00
|
|
|
|
{"create_time", false, false, true, false, "time", true},
|
|
|
|
|
{"modify_time", true, false, true, false, "time", true},
|
2021-06-07 03:32:47 +00:00
|
|
|
|
{"image", false, true, true, false, "image", false},
|
|
|
|
|
{"img", false, true, true, false, "image", false},
|
2021-09-15 20:33:10 +00:00
|
|
|
|
{"icon", false, true, true, false, "image", false},
|
2021-08-29 23:36:17 +00:00
|
|
|
|
{"avatar", false, true, true, false, "image", false},
|
2021-06-07 03:32:47 +00:00
|
|
|
|
{"file", false, true, true, false, "file", false},
|
|
|
|
|
{"age", false, true, true, false, "", false},
|
|
|
|
|
{"email", false, true, true, false, "", false},
|
2021-11-23 10:31:00 +00:00
|
|
|
|
{"time", true, true, true, true, "time", false},
|
2021-06-07 03:32:47 +00:00
|
|
|
|
{"level", false, false, true, false, "", false},
|
2021-12-27 13:30:24 +00:00
|
|
|
|
{"rule", true, true, true, false, "form", false},
|
2021-06-07 03:32:47 +00:00
|
|
|
|
}
|