@befly-addon/admin 1.7.15 → 1.7.17

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@befly-addon/admin",
3
- "version": "1.7.15",
4
- "gitHead": "5a29e676bf3724bb449262f593b986515a0bd93f",
3
+ "version": "1.7.17",
4
+ "gitHead": "a9e165c8ce84f9f866bf75b1722e77c7cab94e5f",
5
5
  "private": false,
6
6
  "description": "Befly - 管理后台功能组件",
7
7
  "keywords": [
@@ -53,7 +53,7 @@
53
53
  "ua-parser-js": "^2.0.8"
54
54
  },
55
55
  "devDependencies": {
56
- "befly": "3.15.15"
56
+ "befly": "3.15.17"
57
57
  },
58
58
  "peerDependencies": {
59
59
  "befly": "^3.14.0"
package/tables/admin.json CHANGED
@@ -1,64 +1,65 @@
1
1
  {
2
2
  "nickname": {
3
3
  "name": "昵称",
4
- "type": "string",
4
+ "type": "varchar",
5
5
  "min": 1,
6
6
  "max": 50
7
7
  },
8
8
  "username": {
9
9
  "name": "用户名",
10
- "type": "string",
10
+ "type": "varchar",
11
+ "input": "@alphanumeric_",
11
12
  "min": 2,
12
- "max": 30,
13
- "regexp": "@alphanumeric_"
13
+ "max": 30
14
14
  },
15
15
  "password": {
16
16
  "name": "密码",
17
- "type": "string",
17
+ "type": "varchar",
18
18
  "min": 6,
19
19
  "max": 500
20
20
  },
21
21
  "email": {
22
22
  "name": "邮箱",
23
- "type": "string",
24
- "max": 100,
25
- "regexp": "@email"
23
+ "type": "varchar",
24
+ "input": "@email",
25
+ "max": 100
26
26
  },
27
27
  "phone": {
28
28
  "name": "手机号",
29
- "type": "string",
30
- "max": 20,
31
- "regexp": "@phone"
29
+ "type": "varchar",
30
+ "input": "@phone",
31
+ "max": 20
32
32
  },
33
33
  "avatar": {
34
34
  "name": "头像",
35
- "type": "string",
35
+ "type": "varchar",
36
36
  "max": 500
37
37
  },
38
38
  "roleCode": {
39
39
  "name": "角色编码",
40
- "type": "string",
40
+ "type": "varchar",
41
+ "input": "@alphanumeric_",
41
42
  "min": 2,
42
- "max": 50,
43
- "regexp": "@alphanumeric_"
43
+ "max": 50
44
44
  },
45
45
  "roleType": {
46
46
  "name": "角色类型",
47
- "type": "string",
47
+ "type": "varchar",
48
+ "input": "admin|user",
48
49
  "min": 4,
49
50
  "max": 5,
50
51
  "default": "user",
51
- "index": true,
52
- "regexp": "^(admin|user)$"
52
+ "index": true
53
53
  },
54
54
  "lastLoginTime": {
55
55
  "name": "最后登录时间",
56
- "type": "number",
56
+ "type": "bigint",
57
+ "input": "number",
57
58
  "default": 0
58
59
  },
59
60
  "lastLoginIp": {
60
61
  "name": "最后登录IP",
61
- "type": "string",
62
+ "type": "varchar",
62
63
  "max": 50
63
64
  }
64
65
  }
package/tables/api.json CHANGED
@@ -1,14 +1,15 @@
1
1
  {
2
2
  "name": {
3
3
  "name": "接口名称",
4
- "type": "string",
4
+ "type": "varchar",
5
5
  "min": 2,
6
6
  "max": 100,
7
7
  "index": true
8
8
  },
9
9
  "auth": {
10
10
  "name": "是否需要登录",
11
- "type": "number",
11
+ "type": "bigint",
12
+ "input": "number",
12
13
  "min": 0,
13
14
  "max": 1,
14
15
  "default": 1,
@@ -16,21 +17,21 @@
16
17
  },
17
18
  "path": {
18
19
  "name": "接口路径",
19
- "type": "string",
20
+ "type": "varchar",
20
21
  "min": 1,
21
22
  "max": 200,
22
23
  "index": true
23
24
  },
24
25
  "parentPath": {
25
26
  "name": "父级路径",
26
- "type": "string",
27
+ "type": "varchar",
27
28
  "min": 1,
28
29
  "max": 200,
29
30
  "index": true
30
31
  },
31
32
  "addonName": {
32
33
  "name": "所属插件",
33
- "type": "string",
34
+ "type": "varchar",
34
35
  "max": 50
35
36
  }
36
37
  }
package/tables/dict.json CHANGED
@@ -1,36 +1,37 @@
1
1
  {
2
2
  "typeCode": {
3
3
  "name": "字典类型代码",
4
- "type": "string",
4
+ "type": "varchar",
5
+ "input": "@alphanumeric_",
5
6
  "min": 2,
6
7
  "max": 50,
7
- "index": true,
8
- "regexp": "@alphanumeric_"
8
+ "index": true
9
9
  },
10
10
  "key": {
11
11
  "name": "字典键",
12
- "type": "string",
12
+ "type": "varchar",
13
+ "input": "@alphanumeric_",
13
14
  "min": 1,
14
15
  "max": 50,
15
- "index": true,
16
- "regexp": "@alphanumeric_"
16
+ "index": true
17
17
  },
18
18
  "label": {
19
19
  "name": "字典标签",
20
- "type": "string",
20
+ "type": "varchar",
21
21
  "min": 1,
22
22
  "max": 100
23
23
  },
24
24
  "sort": {
25
25
  "name": "排序",
26
- "type": "number",
26
+ "type": "bigint",
27
+ "input": "number",
27
28
  "min": 0,
28
29
  "max": 9999,
29
30
  "default": 0
30
31
  },
31
32
  "remark": {
32
33
  "name": "备注",
33
- "type": "string",
34
+ "type": "varchar",
34
35
  "max": 200
35
36
  }
36
37
  }
@@ -1,26 +1,27 @@
1
1
  {
2
2
  "code": {
3
3
  "name": "类型代码",
4
- "type": "string",
4
+ "type": "varchar",
5
+ "input": "@alphanumeric_",
5
6
  "min": 2,
6
7
  "max": 50,
7
- "unique": true,
8
- "regexp": "@alphanumeric_"
8
+ "unique": true
9
9
  },
10
10
  "name": {
11
11
  "name": "类型名称",
12
- "type": "string",
12
+ "type": "varchar",
13
13
  "min": 2,
14
14
  "max": 50
15
15
  },
16
16
  "description": {
17
17
  "name": "描述",
18
- "type": "string",
18
+ "type": "varchar",
19
19
  "max": 200
20
20
  },
21
21
  "sort": {
22
22
  "name": "排序",
23
- "type": "number",
23
+ "type": "bigint",
24
+ "input": "number",
24
25
  "min": 0,
25
26
  "max": 9999,
26
27
  "default": 0
@@ -1,30 +1,31 @@
1
1
  {
2
2
  "adminId": {
3
3
  "name": "发送人ID",
4
- "type": "number",
4
+ "type": "bigint",
5
+ "input": "number",
5
6
  "min": 0,
6
7
  "index": true
7
8
  },
8
9
  "username": {
9
10
  "name": "发送人账号",
10
- "type": "string",
11
+ "type": "varchar",
11
12
  "max": 100
12
13
  },
13
14
  "nickname": {
14
15
  "name": "发送人昵称",
15
- "type": "string",
16
+ "type": "varchar",
16
17
  "max": 100
17
18
  },
18
19
  "toEmail": {
19
20
  "name": "收件人邮箱",
20
- "type": "string",
21
+ "type": "varchar",
22
+ "input": "@email",
21
23
  "min": 5,
22
- "max": 200,
23
- "regexp": "@email"
24
+ "max": 200
24
25
  },
25
26
  "subject": {
26
27
  "name": "邮件主题",
27
- "type": "string",
28
+ "type": "varchar",
28
29
  "min": 1,
29
30
  "max": 200
30
31
  },
@@ -34,33 +35,35 @@
34
35
  },
35
36
  "ccEmail": {
36
37
  "name": "抄送邮箱",
37
- "type": "string",
38
+ "type": "varchar",
38
39
  "max": 500
39
40
  },
40
41
  "bccEmail": {
41
42
  "name": "密送邮箱",
42
- "type": "string",
43
+ "type": "varchar",
43
44
  "max": 500
44
45
  },
45
46
  "sendTime": {
46
47
  "name": "发送时间",
47
- "type": "number"
48
+ "type": "bigint",
49
+ "input": "number"
48
50
  },
49
51
  "sendResult": {
50
52
  "name": "发送结果",
51
- "type": "number",
53
+ "type": "bigint",
54
+ "input": "number",
52
55
  "min": 0,
53
56
  "max": 1,
54
57
  "default": 0
55
58
  },
56
59
  "messageId": {
57
60
  "name": "消息ID",
58
- "type": "string",
61
+ "type": "varchar",
59
62
  "max": 200
60
63
  },
61
64
  "failReason": {
62
65
  "name": "失败原因",
63
- "type": "string",
66
+ "type": "varchar",
64
67
  "max": 500
65
68
  }
66
69
  }
@@ -1,86 +1,89 @@
1
1
  {
2
2
  "adminId": {
3
3
  "name": "管理员ID",
4
- "type": "number",
4
+ "type": "bigint",
5
+ "input": "number",
5
6
  "min": 0,
6
7
  "index": true
7
8
  },
8
9
  "username": {
9
10
  "name": "用户名",
10
- "type": "string",
11
+ "type": "varchar",
11
12
  "min": 1,
12
13
  "max": 50
13
14
  },
14
15
  "nickname": {
15
16
  "name": "昵称",
16
- "type": "string",
17
+ "type": "varchar",
17
18
  "max": 50
18
19
  },
19
20
  "ip": {
20
21
  "name": "登录IP",
21
- "type": "string",
22
+ "type": "varchar",
22
23
  "max": 50,
23
24
  "index": true
24
25
  },
25
26
  "userAgent": {
26
27
  "name": "用户代理",
27
- "type": "string",
28
+ "type": "varchar",
28
29
  "max": 500
29
30
  },
30
31
  "browserName": {
31
32
  "name": "浏览器名称",
32
- "type": "string",
33
+ "type": "varchar",
33
34
  "max": 50
34
35
  },
35
36
  "browserVersion": {
36
37
  "name": "浏览器版本",
37
- "type": "string",
38
+ "type": "varchar",
38
39
  "max": 50
39
40
  },
40
41
  "osName": {
41
42
  "name": "操作系统",
42
- "type": "string",
43
+ "type": "varchar",
43
44
  "max": 50
44
45
  },
45
46
  "osVersion": {
46
47
  "name": "系统版本",
47
- "type": "string",
48
+ "type": "varchar",
48
49
  "max": 50
49
50
  },
50
51
  "deviceType": {
51
52
  "name": "设备类型",
52
- "type": "string",
53
+ "type": "varchar",
53
54
  "max": 20
54
55
  },
55
56
  "deviceVendor": {
56
57
  "name": "设备厂商",
57
- "type": "string",
58
+ "type": "varchar",
58
59
  "max": 50
59
60
  },
60
61
  "deviceModel": {
61
62
  "name": "设备型号",
62
- "type": "string",
63
+ "type": "varchar",
63
64
  "max": 50
64
65
  },
65
66
  "engineName": {
66
67
  "name": "引擎名称",
67
- "type": "string",
68
+ "type": "varchar",
68
69
  "max": 50
69
70
  },
70
71
  "cpuArchitecture": {
71
72
  "name": "CPU架构",
72
- "type": "string",
73
+ "type": "varchar",
73
74
  "max": 20
74
75
  },
75
76
  "loginTime": {
76
77
  "name": "登录时间",
77
- "type": "number",
78
+ "type": "bigint",
79
+ "input": "number",
78
80
  "min": 0,
79
81
  "index": true
80
82
  },
81
83
  "loginResult": {
82
84
  "name": "登录结果",
83
- "type": "number",
85
+ "type": "bigint",
86
+ "input": "number",
84
87
  "min": 0,
85
88
  "max": 1,
86
89
  "default": 1,
@@ -88,7 +91,7 @@
88
91
  },
89
92
  "failReason": {
90
93
  "name": "失败原因",
91
- "type": "string",
94
+ "type": "varchar",
92
95
  "max": 200
93
96
  }
94
97
  }
package/tables/menu.json CHANGED
@@ -1,28 +1,29 @@
1
1
  {
2
2
  "name": {
3
3
  "name": "菜单名称",
4
- "type": "string",
4
+ "type": "varchar",
5
5
  "min": 2,
6
6
  "max": 50,
7
7
  "index": true
8
8
  },
9
9
  "path": {
10
10
  "name": "路由路径",
11
- "type": "string",
11
+ "type": "varchar",
12
12
  "min": 1,
13
13
  "max": 150,
14
14
  "unique": true
15
15
  },
16
16
  "sort": {
17
17
  "name": "排序",
18
- "type": "number",
18
+ "type": "bigint",
19
+ "input": "number",
19
20
  "min": 0,
20
21
  "max": 9999,
21
22
  "default": 0
22
23
  },
23
24
  "parentPath": {
24
25
  "name": "父级路径",
25
- "type": "string",
26
+ "type": "varchar",
26
27
  "max": 200,
27
28
  "default": "",
28
29
  "index": true
@@ -1,47 +1,48 @@
1
1
  {
2
2
  "adminId": {
3
3
  "name": "管理员ID",
4
- "type": "number",
4
+ "type": "bigint",
5
+ "input": "number",
5
6
  "min": 0,
6
7
  "index": true
7
8
  },
8
9
  "username": {
9
10
  "name": "用户名",
10
- "type": "string",
11
+ "type": "varchar",
11
12
  "min": 1,
12
13
  "max": 50
13
14
  },
14
15
  "nickname": {
15
16
  "name": "昵称",
16
- "type": "string",
17
+ "type": "varchar",
17
18
  "max": 50
18
19
  },
19
20
  "ip": {
20
21
  "name": "操作IP",
21
- "type": "string",
22
+ "type": "varchar",
22
23
  "max": 50,
23
24
  "index": true
24
25
  },
25
26
  "module": {
26
27
  "name": "操作模块",
27
- "type": "string",
28
+ "type": "varchar",
28
29
  "max": 50,
29
30
  "index": true
30
31
  },
31
32
  "action": {
32
33
  "name": "操作类型",
33
- "type": "string",
34
+ "type": "varchar",
34
35
  "max": 50,
35
36
  "index": true
36
37
  },
37
38
  "method": {
38
39
  "name": "请求方法",
39
- "type": "string",
40
+ "type": "varchar",
40
41
  "max": 10
41
42
  },
42
43
  "path": {
43
44
  "name": "请求路径",
44
- "type": "string",
45
+ "type": "varchar",
45
46
  "max": 200
46
47
  },
47
48
  "params": {
@@ -50,7 +51,8 @@
50
51
  },
51
52
  "result": {
52
53
  "name": "操作结果",
53
- "type": "number",
54
+ "type": "bigint",
55
+ "input": "number",
54
56
  "min": 0,
55
57
  "max": 1,
56
58
  "default": 1,
@@ -62,18 +64,20 @@
62
64
  },
63
65
  "duration": {
64
66
  "name": "耗时毫秒",
65
- "type": "number",
67
+ "type": "bigint",
68
+ "input": "number",
66
69
  "min": 0
67
70
  },
68
71
  "operateTime": {
69
72
  "name": "操作时间",
70
- "type": "number",
73
+ "type": "bigint",
74
+ "input": "number",
71
75
  "min": 0,
72
76
  "index": true
73
77
  },
74
78
  "remark": {
75
79
  "name": "备注",
76
- "type": "string",
80
+ "type": "varchar",
77
81
  "max": 500
78
82
  }
79
83
  }
package/tables/role.json CHANGED
@@ -1,37 +1,40 @@
1
1
  {
2
2
  "name": {
3
3
  "name": "角色名称",
4
- "type": "string",
4
+ "type": "varchar",
5
5
  "min": 2,
6
6
  "max": 50,
7
7
  "index": true
8
8
  },
9
9
  "code": {
10
10
  "name": "角色编码",
11
- "type": "string",
11
+ "type": "varchar",
12
+ "input": "@alphanumericDash_",
12
13
  "min": 2,
13
14
  "max": 50,
14
- "index": true,
15
- "regexp": "@alphanumericDash_"
15
+ "index": true
16
16
  },
17
17
  "description": {
18
18
  "name": "角色描述",
19
- "type": "string",
19
+ "type": "varchar",
20
20
  "max": 200
21
21
  },
22
22
  "menus": {
23
23
  "name": "菜单权限",
24
- "type": "array_text",
24
+ "type": "mediumtext",
25
+ "input": "array",
25
26
  "detail": "菜单路径数组(menu.path),如 [\"/permission/role\",\"/dashboard\"]"
26
27
  },
27
28
  "apis": {
28
29
  "name": "接口权限",
29
- "type": "array_text",
30
+ "type": "mediumtext",
31
+ "input": "array",
30
32
  "detail": "接口路径数组(url.pathname),如 [\"/api/addon/addonAdmin/auth/login\"]"
31
33
  },
32
34
  "sort": {
33
35
  "name": "排序",
34
- "type": "number",
36
+ "type": "bigint",
37
+ "input": "number",
35
38
  "min": 0,
36
39
  "max": 9999,
37
40
  "default": 0
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": {
3
3
  "name": "配置名称",
4
- "type": "string",
4
+ "type": "varchar",
5
5
  "min": 2,
6
6
  "max": 50
7
7
  },
8
8
  "code": {
9
9
  "name": "配置代码",
10
- "type": "string",
10
+ "type": "varchar",
11
+ "input": "@alphanumeric_",
11
12
  "min": 2,
12
13
  "max": 100,
13
- "unique": true,
14
- "regexp": "@alphanumeric_"
14
+ "unique": true
15
15
  },
16
16
  "value": {
17
17
  "name": "配置值",
@@ -19,27 +19,30 @@
19
19
  },
20
20
  "valueType": {
21
21
  "name": "值类型",
22
- "type": "string",
22
+ "type": "varchar",
23
+ "input": "string|number|boolean|json",
23
24
  "max": 20,
24
25
  "default": "string",
25
26
  "detail": "string number boolean json"
26
27
  },
27
28
  "group": {
28
29
  "name": "配置分组",
29
- "type": "string",
30
+ "type": "varchar",
30
31
  "max": 50,
31
32
  "index": true
32
33
  },
33
34
  "sort": {
34
35
  "name": "排序",
35
- "type": "number",
36
+ "type": "bigint",
37
+ "input": "number",
36
38
  "min": 0,
37
39
  "max": 9999,
38
40
  "default": 0
39
41
  },
40
42
  "isSystem": {
41
43
  "name": "是否系统配置",
42
- "type": "number",
44
+ "type": "bigint",
45
+ "input": "number",
43
46
  "min": 0,
44
47
  "max": 1,
45
48
  "default": 0,
@@ -47,7 +50,7 @@
47
50
  },
48
51
  "description": {
49
52
  "name": "描述说明",
50
- "type": "string",
53
+ "type": "varchar",
51
54
  "max": 500
52
55
  }
53
56
  }