befly 3.76.1 → 3.76.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Befly.js +159 -0
- package/README.md +50 -11
- package/apis/admin/delete.js +1 -3
- package/apis/admin/select.js +2 -7
- package/apis/admin/update.js +1 -5
- package/apis/api/select.js +2 -7
- package/apis/auth/login.js +16 -20
- package/apis/dict/delete.js +1 -1
- package/apis/dict/detail.js +1 -3
- package/apis/dict/select.js +1 -2
- package/apis/dict/update.js +1 -1
- package/apis/dictType/delete.js +1 -1
- package/apis/dictType/detail.js +1 -1
- package/apis/dictType/insert.js +1 -1
- package/apis/dictType/select.js +2 -7
- package/apis/dictType/update.js +2 -2
- package/apis/email/config.js +4 -7
- package/apis/email/logList.js +2 -7
- package/apis/email/send.js +1 -2
- package/apis/email/verify.js +1 -3
- package/apis/loginLog/select.js +2 -7
- package/apis/menu/select.js +2 -7
- package/apis/operateLog/select.js +2 -7
- package/apis/role/apiSave.js +2 -2
- package/apis/role/menuSave.js +2 -2
- package/apis/role/select.js +2 -7
- package/apis/source/imageList.js +2 -5
- package/apis/tongJi/dailyReport.js +12 -13
- package/apis/tongJi/dailyReportSelect.js +1 -2
- package/apis/tongJi/dailyStats.js +1 -1
- package/apis/tongJi/dailyStatsDistribution.js +2 -2
- package/apis/tongJi/errorList.js +1 -2
- package/apis/tongJi/errorReport.js +1 -2
- package/apis/tongJi/projectDelete.js +1 -3
- package/apis/tongJi/projectSelect.js +2 -4
- package/apis/tongJi/projectUpdate.js +2 -2
- package/apis/upload/file.js +7 -5
- package/checks/api.js +43 -66
- package/checks/config.js +17 -12
- package/checks/corns.js +28 -46
- package/checks/field.js +18 -0
- package/checks/items.js +16 -60
- package/checks/menu.js +28 -39
- package/checks/table.js +106 -26
- package/checks/validation.js +13 -0
- package/configs/beflyConfig.json +6 -6
- package/configs/constConfig.js +2 -63
- package/exports.js +2 -0
- package/hooks/auth.js +11 -7
- package/hooks/parser.js +55 -59
- package/hooks/permission.js +1 -0
- package/hooks/rateLimit.js +25 -62
- package/hooks/validator.js +43 -31
- package/index.js +43 -344
- package/{lib → libs}/cacheHelper.js +3 -8
- package/libs/cron.js +60 -0
- package/libs/logger/index.js +1 -0
- package/libs/logger/logger.js +245 -0
- package/libs/logger/sanitize.js +115 -0
- package/{lib → libs/mysql}/dbHelper.js +100 -73
- package/{lib → libs/mysql}/dbParse.js +16 -9
- package/{lib → libs/mysql}/dbUtil.js +15 -32
- package/libs/mysql/error.js +29 -0
- package/libs/mysql/index.js +6 -0
- package/libs/mysql/is.js +29 -0
- package/libs/mysql/mysql.js +43 -0
- package/libs/mysql/sql/identifier.js +85 -0
- package/libs/mysql/sql/index.js +2 -0
- package/{lib → libs/mysql/sql}/sqlBuilder.js +2 -3
- package/libs/mysql/util.js +44 -0
- package/libs/redis/index.js +2 -0
- package/libs/redis/redis.js +204 -0
- package/libs/redis/redisError.js +8 -0
- package/libs/tableModel.js +72 -0
- package/libs/tool.js +33 -0
- package/libs/validator/compiler.js +248 -0
- package/libs/validator/index.js +10 -0
- package/libs/validator/parser.js +173 -0
- package/libs/validator/util.js +5 -0
- package/package.json +10 -8
- package/paths.js +2 -3
- package/plugins/cache.js +2 -1
- package/plugins/email.js +4 -4
- package/plugins/mysql.js +5 -15
- package/plugins/redis.js +4 -12
- package/router/api.js +14 -10
- package/router/root.js +14 -0
- package/router/static.js +3 -3
- package/schemas/api.json +99 -0
- package/schemas/config.json +255 -0
- package/schemas/corn.json +39 -0
- package/schemas/item.json +43 -0
- package/schemas/menu.json +44 -0
- package/schemas/table.json +80 -0
- package/scripts/syncDb/apply.js +87 -0
- package/scripts/syncDb/ddl.js +43 -0
- package/scripts/syncDb/index.js +175 -30
- package/scripts/syncDb/model.js +60 -0
- package/scripts/syncDb/plan.js +160 -0
- package/scripts/syncDb/preflight.js +98 -0
- package/scripts/syncDb/report.js +177 -162
- package/scripts/syncDb/snapshot.js +118 -0
- package/tables/admin.json +51 -53
- package/tables/api.json +28 -39
- package/tables/dailyReport.json +85 -73
- package/tables/dict.json +27 -39
- package/tables/dictType.json +20 -34
- package/tables/emailLog.json +49 -47
- package/tables/errorReport.json +86 -60
- package/tables/file.json +47 -50
- package/tables/loginLog.json +68 -55
- package/tables/menu.json +20 -34
- package/tables/operateLog.json +53 -47
- package/tables/project.json +18 -30
- package/tables/role.json +33 -37
- package/utils/cors.js +37 -41
- package/utils/deepMerge.js +3 -1
- package/utils/error.js +1 -56
- package/utils/id.js +44 -0
- package/utils/is.js +6 -243
- package/utils/response.js +12 -1
- package/utils/scanFiles.js +13 -4
- package/utils/scanSources.js +58 -20
- package/utils/util.js +11 -163
- package/apis/_apis.js +0 -20
- package/apis/auth/sendSmsCode.js +0 -24
- package/configs/regexpAlias.json +0 -55
- package/lib/connect.js +0 -119
- package/lib/logger.js +0 -430
- package/lib/redisHelper.js +0 -399
- package/lib/validator.js +0 -274
- package/lib/xmlParse.js +0 -149
- package/plugins/config.js +0 -13
- package/plugins/cron.js +0 -115
- package/plugins/logger.js +0 -17
- package/plugins/tool.js +0 -131
- package/plugins/xmlParse.js +0 -10
- package/schemas/config.js +0 -67
- package/scripts/syncDb/context.js +0 -120
- package/scripts/syncDb/diff.js +0 -279
- package/scripts/syncDb/transform.js +0 -113
- package/sql/befly.sql +0 -271
- package/utils/email.js +0 -3
- package/utils/fieldClear.js +0 -22
- package/utils/formatValidationIssues.js +0 -28
- package/utils/getClientIp.js +0 -47
- package/utils/loggerUtils.js +0 -196
- package/utils/regexpUtil.js +0 -52
- /package/{lib → libs}/smtpText.js +0 -0
package/tables/admin.json
CHANGED
|
@@ -1,84 +1,82 @@
|
|
|
1
|
-
|
|
2
|
-
"
|
|
3
|
-
"name": "ID",
|
|
4
|
-
"input": "integer",
|
|
5
|
-
"min": 1,
|
|
6
|
-
"max": null
|
|
7
|
-
},
|
|
1
|
+
{
|
|
2
|
+
"$tableName": "管理员表",
|
|
8
3
|
"nickname": {
|
|
9
4
|
"name": "昵称",
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
5
|
+
"minValue": 1,
|
|
6
|
+
"maxValue": 50,
|
|
7
|
+
"paramType": "string",
|
|
8
|
+
"fieldType": "varchar",
|
|
9
|
+
"fieldDefault": ""
|
|
13
10
|
},
|
|
14
11
|
"username": {
|
|
15
12
|
"name": "用户名",
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
13
|
+
"minValue": 2,
|
|
14
|
+
"maxValue": 30,
|
|
15
|
+
"paramType": "string",
|
|
16
|
+
"pattern": "^[a-zA-Z0-9_]+$",
|
|
17
|
+
"fieldType": "varchar",
|
|
18
|
+
"fieldDefault": ""
|
|
20
19
|
},
|
|
21
20
|
"password": {
|
|
22
21
|
"name": "密码",
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
22
|
+
"minValue": 6,
|
|
23
|
+
"maxValue": 500,
|
|
24
|
+
"paramType": "string",
|
|
25
|
+
"fieldType": "varchar",
|
|
26
|
+
"fieldDefault": ""
|
|
26
27
|
},
|
|
27
28
|
"email": {
|
|
28
29
|
"name": "邮箱",
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
30
|
+
"maxValue": 100,
|
|
31
|
+
"paramType": "string",
|
|
32
|
+
"pattern": "^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$",
|
|
33
|
+
"fieldType": "varchar",
|
|
34
|
+
"fieldDefault": ""
|
|
32
35
|
},
|
|
33
36
|
"phone": {
|
|
34
37
|
"name": "手机号",
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
+
"maxValue": 20,
|
|
39
|
+
"paramType": "string",
|
|
40
|
+
"pattern": "^1[3-9]\\d{9}$",
|
|
41
|
+
"fieldType": "varchar",
|
|
42
|
+
"fieldDefault": ""
|
|
38
43
|
},
|
|
39
44
|
"avatar": {
|
|
40
45
|
"name": "头像",
|
|
41
|
-
"
|
|
42
|
-
"
|
|
46
|
+
"maxValue": 500,
|
|
47
|
+
"paramType": "string",
|
|
48
|
+
"fieldType": "varchar",
|
|
49
|
+
"fieldDefault": ""
|
|
43
50
|
},
|
|
44
51
|
"roleCode": {
|
|
45
52
|
"name": "角色编码",
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
53
|
+
"minValue": 2,
|
|
54
|
+
"maxValue": 50,
|
|
55
|
+
"paramType": "string",
|
|
56
|
+
"pattern": "^[a-zA-Z0-9_]+$",
|
|
57
|
+
"fieldType": "varchar",
|
|
58
|
+
"fieldDefault": ""
|
|
50
59
|
},
|
|
51
60
|
"roleType": {
|
|
52
61
|
"name": "角色类型",
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
62
|
+
"minValue": 4,
|
|
63
|
+
"maxValue": 5,
|
|
64
|
+
"paramType": "string",
|
|
65
|
+
"enum": ["admin", "user"],
|
|
66
|
+
"fieldType": "varchar",
|
|
67
|
+
"fieldDefault": "user"
|
|
57
68
|
},
|
|
58
69
|
"lastLoginTime": {
|
|
59
70
|
"name": "最后登录时间",
|
|
60
|
-
"
|
|
71
|
+
"paramType": "integer",
|
|
72
|
+
"fieldType": "integer",
|
|
73
|
+
"fieldDefault": 0
|
|
61
74
|
},
|
|
62
75
|
"lastLoginIp": {
|
|
63
76
|
"name": "最后登录IP",
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
"name": "状态(0=已删除,1=正常,2=禁用)",
|
|
69
|
-
"input": "enumInteger",
|
|
70
|
-
"check": "0|1|2"
|
|
71
|
-
},
|
|
72
|
-
"createdAt": {
|
|
73
|
-
"name": "创建时间",
|
|
74
|
-
"input": "number"
|
|
75
|
-
},
|
|
76
|
-
"updatedAt": {
|
|
77
|
-
"name": "更新时间",
|
|
78
|
-
"input": "number"
|
|
79
|
-
},
|
|
80
|
-
"deletedAt": {
|
|
81
|
-
"name": "删除时间",
|
|
82
|
-
"input": "number"
|
|
77
|
+
"maxValue": 50,
|
|
78
|
+
"paramType": "string",
|
|
79
|
+
"fieldType": "varchar",
|
|
80
|
+
"fieldDefault": ""
|
|
83
81
|
}
|
|
84
82
|
}
|
package/tables/api.json
CHANGED
|
@@ -1,55 +1,44 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"name": "ID",
|
|
4
|
-
"input": "integer",
|
|
5
|
-
"min": 1,
|
|
6
|
-
"max": null
|
|
7
|
-
},
|
|
2
|
+
"$tableName": "接口表",
|
|
8
3
|
"name": {
|
|
9
4
|
"name": "接口名称",
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
5
|
+
"minValue": 2,
|
|
6
|
+
"maxValue": 100,
|
|
7
|
+
"paramType": "string",
|
|
8
|
+
"fieldType": "varchar",
|
|
9
|
+
"fieldDefault": ""
|
|
13
10
|
},
|
|
14
11
|
"auth": {
|
|
15
|
-
"name": "
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
12
|
+
"name": "登录权限",
|
|
13
|
+
"detail": "0=免登录,1=需登录,其他=角色类型白名单",
|
|
14
|
+
"minValue": 1,
|
|
15
|
+
"maxValue": 200,
|
|
16
|
+
"paramType": "string",
|
|
17
|
+
"fieldType": "varchar",
|
|
18
|
+
"fieldDefault": ""
|
|
19
19
|
},
|
|
20
20
|
"method": {
|
|
21
21
|
"name": "请求方式",
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
22
|
+
"minValue": 1,
|
|
23
|
+
"maxValue": 20,
|
|
24
|
+
"paramType": "string",
|
|
25
|
+
"fieldType": "varchar",
|
|
26
|
+
"fieldDefault": ""
|
|
25
27
|
},
|
|
26
28
|
"path": {
|
|
27
29
|
"name": "接口路径",
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
30
|
+
"minValue": 1,
|
|
31
|
+
"maxValue": 200,
|
|
32
|
+
"paramType": "string",
|
|
33
|
+
"fieldType": "varchar",
|
|
34
|
+
"fieldDefault": ""
|
|
31
35
|
},
|
|
32
36
|
"parentPath": {
|
|
33
37
|
"name": "父级路径",
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"name": "状态(0=已删除,1=正常,2=禁用)",
|
|
40
|
-
"input": "enumInteger",
|
|
41
|
-
"check": "0|1|2"
|
|
42
|
-
},
|
|
43
|
-
"createdAt": {
|
|
44
|
-
"name": "创建时间",
|
|
45
|
-
"input": "number"
|
|
46
|
-
},
|
|
47
|
-
"updatedAt": {
|
|
48
|
-
"name": "更新时间",
|
|
49
|
-
"input": "number"
|
|
50
|
-
},
|
|
51
|
-
"deletedAt": {
|
|
52
|
-
"name": "删除时间",
|
|
53
|
-
"input": "number"
|
|
38
|
+
"minValue": 1,
|
|
39
|
+
"maxValue": 200,
|
|
40
|
+
"paramType": "string",
|
|
41
|
+
"fieldType": "varchar",
|
|
42
|
+
"fieldDefault": ""
|
|
54
43
|
}
|
|
55
44
|
}
|
package/tables/dailyReport.json
CHANGED
|
@@ -1,124 +1,136 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"max": null,
|
|
7
|
-
"detail": "1"
|
|
2
|
+
"$tableName": "日在线上报表",
|
|
3
|
+
"$tableIndexes": {
|
|
4
|
+
"uk_befly_daily_report_report_date_member": "unique#reportDate,member",
|
|
5
|
+
"idx_befly_daily_report_report_date_product_code": "index#reportDate,productCode"
|
|
8
6
|
},
|
|
9
7
|
"reportTime": {
|
|
10
8
|
"name": "上报时间戳",
|
|
11
|
-
"
|
|
12
|
-
"
|
|
9
|
+
"detail": "1720875600000",
|
|
10
|
+
"paramType": "integer",
|
|
11
|
+
"fieldType": "integer",
|
|
12
|
+
"fieldDefault": 0
|
|
13
13
|
},
|
|
14
14
|
"reportDate": {
|
|
15
15
|
"name": "上报日期",
|
|
16
|
-
"
|
|
17
|
-
"
|
|
16
|
+
"detail": "20260713",
|
|
17
|
+
"paramType": "integer",
|
|
18
|
+
"fieldType": "integer",
|
|
19
|
+
"fieldDefault": 0
|
|
18
20
|
},
|
|
19
21
|
"memberType": {
|
|
20
22
|
"name": "成员类型",
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
23
|
+
"minValue": 2,
|
|
24
|
+
"maxValue": 6,
|
|
25
|
+
"detail": "user",
|
|
26
|
+
"paramType": "string",
|
|
27
|
+
"enum": ["user", "client", "ip"],
|
|
28
|
+
"fieldType": "varchar",
|
|
29
|
+
"fieldDefault": ""
|
|
26
30
|
},
|
|
27
31
|
"member": {
|
|
28
32
|
"name": "成员标识",
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
33
|
+
"maxValue": 500,
|
|
34
|
+
"detail": "user:42:befly-admin",
|
|
35
|
+
"paramType": "string",
|
|
36
|
+
"fieldType": "varchar",
|
|
37
|
+
"fieldDefault": ""
|
|
32
38
|
},
|
|
33
39
|
"userId": {
|
|
34
40
|
"name": "用户ID",
|
|
35
|
-
"
|
|
36
|
-
"
|
|
41
|
+
"detail": "42",
|
|
42
|
+
"paramType": "integer",
|
|
43
|
+
"fieldType": "integer",
|
|
44
|
+
"fieldDefault": 0
|
|
37
45
|
},
|
|
38
46
|
"clientId": {
|
|
39
47
|
"name": "客户端标识",
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
48
|
+
"maxValue": 120,
|
|
49
|
+
"detail": "1691234567890-a1b2c3d4",
|
|
50
|
+
"paramType": "string",
|
|
51
|
+
"fieldType": "varchar",
|
|
52
|
+
"fieldDefault": ""
|
|
43
53
|
},
|
|
44
54
|
"ip": {
|
|
45
55
|
"name": "IP地址",
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
56
|
+
"maxValue": 50,
|
|
57
|
+
"detail": "192.168.1.1",
|
|
58
|
+
"paramType": "string",
|
|
59
|
+
"fieldType": "varchar",
|
|
60
|
+
"fieldDefault": ""
|
|
49
61
|
},
|
|
50
62
|
"clientType": {
|
|
51
63
|
"name": "客户端类型",
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
64
|
+
"minValue": 3,
|
|
65
|
+
"maxValue": 20,
|
|
66
|
+
"detail": "browser",
|
|
67
|
+
"paramType": "string",
|
|
68
|
+
"enum": ["browser", "vscode", "desktop", "miniapp", "app"],
|
|
69
|
+
"fieldType": "varchar",
|
|
70
|
+
"fieldDefault": ""
|
|
57
71
|
},
|
|
58
72
|
"productName": {
|
|
59
73
|
"name": "产品名称",
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
74
|
+
"maxValue": 100,
|
|
75
|
+
"detail": "Befly 后台管理",
|
|
76
|
+
"paramType": "string",
|
|
77
|
+
"fieldType": "varchar",
|
|
78
|
+
"fieldDefault": ""
|
|
63
79
|
},
|
|
64
80
|
"productCode": {
|
|
65
81
|
"name": "产品代号",
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
82
|
+
"maxValue": 100,
|
|
83
|
+
"detail": "befly-admin",
|
|
84
|
+
"paramType": "string",
|
|
85
|
+
"fieldType": "varchar",
|
|
86
|
+
"fieldDefault": ""
|
|
69
87
|
},
|
|
70
88
|
"productVersion": {
|
|
71
89
|
"name": "产品版本",
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
90
|
+
"maxValue": 50,
|
|
91
|
+
"detail": "1.2.3",
|
|
92
|
+
"paramType": "string",
|
|
93
|
+
"fieldType": "varchar",
|
|
94
|
+
"fieldDefault": ""
|
|
75
95
|
},
|
|
76
96
|
"clientVersion": {
|
|
77
97
|
"name": "客户端版本",
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
98
|
+
"maxValue": 100,
|
|
99
|
+
"detail": "1.90.0",
|
|
100
|
+
"paramType": "string",
|
|
101
|
+
"fieldType": "varchar",
|
|
102
|
+
"fieldDefault": ""
|
|
81
103
|
},
|
|
82
104
|
"os": {
|
|
83
105
|
"name": "操作系统",
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
106
|
+
"maxValue": 100,
|
|
107
|
+
"detail": "Android 14",
|
|
108
|
+
"paramType": "string",
|
|
109
|
+
"fieldType": "varchar",
|
|
110
|
+
"fieldDefault": ""
|
|
87
111
|
},
|
|
88
112
|
"system": {
|
|
89
113
|
"name": "系统",
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
114
|
+
"maxValue": 100,
|
|
115
|
+
"detail": "iOS 17.0",
|
|
116
|
+
"paramType": "string",
|
|
117
|
+
"fieldType": "varchar",
|
|
118
|
+
"fieldDefault": ""
|
|
93
119
|
},
|
|
94
120
|
"brand": {
|
|
95
121
|
"name": "设备品牌",
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
122
|
+
"maxValue": 100,
|
|
123
|
+
"detail": "Apple",
|
|
124
|
+
"paramType": "string",
|
|
125
|
+
"fieldType": "varchar",
|
|
126
|
+
"fieldDefault": ""
|
|
99
127
|
},
|
|
100
128
|
"model": {
|
|
101
129
|
"name": "设备型号",
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
"name": "状态(0=已删除,1=正常,2=禁用)",
|
|
108
|
-
"input": "enumInteger",
|
|
109
|
-
"check": "0|1|2"
|
|
110
|
-
},
|
|
111
|
-
"createdAt": {
|
|
112
|
-
"name": "创建时间",
|
|
113
|
-
"input": "number",
|
|
114
|
-
"detail": "1720875600000"
|
|
115
|
-
},
|
|
116
|
-
"updatedAt": {
|
|
117
|
-
"name": "更新时间",
|
|
118
|
-
"input": "number"
|
|
119
|
-
},
|
|
120
|
-
"deletedAt": {
|
|
121
|
-
"name": "删除时间",
|
|
122
|
-
"input": "number"
|
|
130
|
+
"maxValue": 100,
|
|
131
|
+
"detail": "TAS-AN00",
|
|
132
|
+
"paramType": "string",
|
|
133
|
+
"fieldType": "varchar",
|
|
134
|
+
"fieldDefault": ""
|
|
123
135
|
}
|
|
124
136
|
}
|
package/tables/dict.json
CHANGED
|
@@ -1,55 +1,43 @@
|
|
|
1
|
-
|
|
2
|
-
"
|
|
3
|
-
"name": "ID",
|
|
4
|
-
"input": "integer",
|
|
5
|
-
"min": 1,
|
|
6
|
-
"max": null
|
|
7
|
-
},
|
|
1
|
+
{
|
|
2
|
+
"$tableName": "字典项表",
|
|
8
3
|
"typeCode": {
|
|
9
4
|
"name": "字典类型代码",
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
5
|
+
"minValue": 2,
|
|
6
|
+
"maxValue": 50,
|
|
7
|
+
"paramType": "string",
|
|
8
|
+
"pattern": "^[a-zA-Z0-9_]+$",
|
|
9
|
+
"fieldType": "varchar",
|
|
10
|
+
"fieldDefault": ""
|
|
14
11
|
},
|
|
15
12
|
"key": {
|
|
16
13
|
"name": "字典键",
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
14
|
+
"minValue": 1,
|
|
15
|
+
"maxValue": 50,
|
|
16
|
+
"paramType": "string",
|
|
17
|
+
"pattern": "^[a-zA-Z0-9_]+$",
|
|
18
|
+
"fieldType": "varchar",
|
|
19
|
+
"fieldDefault": ""
|
|
21
20
|
},
|
|
22
21
|
"label": {
|
|
23
22
|
"name": "字典标签",
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
23
|
+
"minValue": 1,
|
|
24
|
+
"maxValue": 100,
|
|
25
|
+
"paramType": "string",
|
|
26
|
+
"fieldType": "varchar",
|
|
27
|
+
"fieldDefault": ""
|
|
27
28
|
},
|
|
28
29
|
"sort": {
|
|
29
30
|
"name": "排序",
|
|
30
|
-
"
|
|
31
|
-
"
|
|
31
|
+
"maxValue": 9999,
|
|
32
|
+
"paramType": "integer",
|
|
33
|
+
"fieldType": "integer",
|
|
34
|
+
"fieldDefault": 0
|
|
32
35
|
},
|
|
33
36
|
"remark": {
|
|
34
37
|
"name": "备注",
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"name": "状态(0=已删除,1=正常,2=禁用)",
|
|
40
|
-
"input": "enumInteger",
|
|
41
|
-
"check": "0|1|2"
|
|
42
|
-
},
|
|
43
|
-
"createdAt": {
|
|
44
|
-
"name": "创建时间",
|
|
45
|
-
"input": "number"
|
|
46
|
-
},
|
|
47
|
-
"updatedAt": {
|
|
48
|
-
"name": "更新时间",
|
|
49
|
-
"input": "number"
|
|
50
|
-
},
|
|
51
|
-
"deletedAt": {
|
|
52
|
-
"name": "删除时间",
|
|
53
|
-
"input": "number"
|
|
38
|
+
"maxValue": 200,
|
|
39
|
+
"paramType": "string",
|
|
40
|
+
"fieldType": "varchar",
|
|
41
|
+
"fieldDefault": ""
|
|
54
42
|
}
|
|
55
43
|
}
|
package/tables/dictType.json
CHANGED
|
@@ -1,48 +1,34 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"name": "ID",
|
|
4
|
-
"input": "integer",
|
|
5
|
-
"min": 1,
|
|
6
|
-
"max": null
|
|
7
|
-
},
|
|
2
|
+
"$tableName": "字典类型表",
|
|
8
3
|
"code": {
|
|
9
4
|
"name": "类型代码",
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
5
|
+
"minValue": 2,
|
|
6
|
+
"maxValue": 50,
|
|
7
|
+
"paramType": "string",
|
|
8
|
+
"pattern": "^[a-zA-Z0-9_]+$",
|
|
9
|
+
"fieldType": "varchar",
|
|
10
|
+
"fieldDefault": ""
|
|
14
11
|
},
|
|
15
12
|
"name": {
|
|
16
13
|
"name": "类型名称",
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
14
|
+
"minValue": 2,
|
|
15
|
+
"maxValue": 50,
|
|
16
|
+
"paramType": "string",
|
|
17
|
+
"fieldType": "varchar",
|
|
18
|
+
"fieldDefault": ""
|
|
20
19
|
},
|
|
21
20
|
"description": {
|
|
22
21
|
"name": "描述",
|
|
23
|
-
"
|
|
24
|
-
"
|
|
22
|
+
"maxValue": 200,
|
|
23
|
+
"paramType": "string",
|
|
24
|
+
"fieldType": "varchar",
|
|
25
|
+
"fieldDefault": ""
|
|
25
26
|
},
|
|
26
27
|
"sort": {
|
|
27
28
|
"name": "排序",
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
"name": "状态(0=已删除,1=正常,2=禁用)",
|
|
33
|
-
"input": "enumInteger",
|
|
34
|
-
"check": "0|1|2"
|
|
35
|
-
},
|
|
36
|
-
"createdAt": {
|
|
37
|
-
"name": "创建时间",
|
|
38
|
-
"input": "number"
|
|
39
|
-
},
|
|
40
|
-
"updatedAt": {
|
|
41
|
-
"name": "更新时间",
|
|
42
|
-
"input": "number"
|
|
43
|
-
},
|
|
44
|
-
"deletedAt": {
|
|
45
|
-
"name": "删除时间",
|
|
46
|
-
"input": "number"
|
|
29
|
+
"maxValue": 9999,
|
|
30
|
+
"paramType": "integer",
|
|
31
|
+
"fieldType": "integer",
|
|
32
|
+
"fieldDefault": 0
|
|
47
33
|
}
|
|
48
34
|
}
|