@befly-addon/admin 1.0.13 → 1.0.14

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@befly-addon/admin",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "Befly - 管理后台功能组件",
5
5
  "type": "module",
6
6
  "private": false,
@@ -38,7 +38,7 @@
38
38
  "url": "https://github.com/chenbimo/befly.git",
39
39
  "directory": "packages/addon-admin"
40
40
  },
41
- "gitHead": "82f9de50d3c014ba80f68556da05dadcdc8d4c92",
41
+ "gitHead": "c3ad67d081d15ca86b8545e622ed96255524183a",
42
42
  "dependencies": {
43
43
  "befly": "3.8.5"
44
44
  }
package/tables/admin.json CHANGED
@@ -1,158 +1,84 @@
1
1
  {
2
2
  "name": {
3
3
  "name": "姓名",
4
- "detail": "",
5
4
  "type": "string",
6
5
  "min": 2,
7
- "max": 50,
8
- "default": null,
9
- "index": false,
10
- "unique": false,
11
- "nullable": false,
12
- "unsigned": true,
13
- "regexp": null
6
+ "max": 50
14
7
  },
15
8
  "nickname": {
16
9
  "name": "昵称",
17
- "detail": "",
18
10
  "type": "string",
19
11
  "min": 2,
20
- "max": 50,
21
- "default": null,
22
- "index": false,
23
- "unique": false,
24
- "nullable": false,
25
- "unsigned": true,
26
- "regexp": null
12
+ "max": 50
27
13
  },
28
14
  "email": {
29
15
  "name": "邮箱",
30
- "detail": "",
31
16
  "type": "string",
32
17
  "min": 5,
33
18
  "max": 100,
34
- "default": null,
35
19
  "index": true,
36
- "unique": false,
37
- "nullable": false,
38
- "unsigned": true,
39
20
  "regexp": "^[\\w.-]+@[\\w.-]+\\.\\w+$"
40
21
  },
41
22
  "phone": {
42
23
  "name": "手机号",
43
- "detail": "",
44
24
  "type": "string",
45
25
  "min": 11,
46
26
  "max": 11,
47
- "default": null,
48
- "index": false,
49
- "unique": false,
50
- "nullable": false,
51
- "unsigned": true,
52
27
  "regexp": "^1[3-9]\\d{9}$"
53
28
  },
54
29
  "username": {
55
30
  "name": "用户名",
56
- "detail": "",
57
31
  "type": "string",
58
32
  "min": 3,
59
33
  "max": 30,
60
- "default": null,
61
- "index": false,
62
- "unique": false,
63
- "nullable": false,
64
- "unsigned": true,
65
34
  "regexp": "^[a-zA-Z0-9_]+$"
66
35
  },
67
36
  "password": {
68
37
  "name": "密码",
69
- "detail": "",
70
38
  "type": "string",
71
39
  "min": 6,
72
- "max": 500,
73
- "default": null,
74
- "index": false,
75
- "unique": false,
76
- "nullable": false,
77
- "unsigned": true,
78
- "regexp": null
40
+ "max": 500
79
41
  },
80
42
  "avatar": {
81
43
  "name": "头像",
82
- "detail": "",
83
44
  "type": "string",
84
45
  "min": 0,
85
- "max": 500,
86
- "default": null,
87
- "index": false,
88
- "unique": false,
89
- "nullable": false,
90
- "unsigned": true,
91
- "regexp": null
46
+ "max": 500
92
47
  },
93
48
  "roleId": {
94
49
  "name": "角色ID",
95
- "detail": "",
96
50
  "type": "number",
97
51
  "min": 1,
98
52
  "max": 999999999999999,
99
- "default": null,
100
- "index": true,
101
- "unique": false,
102
- "nullable": false,
103
- "unsigned": true,
104
- "regexp": null
53
+ "index": true
105
54
  },
106
55
  "roleCode": {
107
56
  "name": "角色编码",
108
- "detail": "",
109
57
  "type": "string",
110
58
  "min": 2,
111
59
  "max": 50,
112
- "default": null,
113
- "index": false,
114
- "unique": false,
115
- "nullable": false,
116
- "unsigned": true,
117
60
  "regexp": "^[a-zA-Z0-9_]+$"
118
61
  },
119
62
  "roleType": {
120
63
  "name": "角色类型",
121
- "detail": "",
122
64
  "type": "string",
123
65
  "min": 4,
124
66
  "max": 5,
125
67
  "default": "user",
126
68
  "index": true,
127
- "unique": false,
128
- "nullable": false,
129
- "unsigned": true,
130
69
  "regexp": "^(admin|user)$"
131
70
  },
132
71
  "lastLoginTime": {
133
72
  "name": "最后登录时间",
134
- "detail": "",
135
73
  "type": "number",
136
74
  "min": 0,
137
75
  "max": null,
138
- "default": 0,
139
- "index": false,
140
- "unique": false,
141
- "nullable": false,
142
- "unsigned": true,
143
- "regexp": null
76
+ "default": 0
144
77
  },
145
78
  "lastLoginIp": {
146
79
  "name": "最后登录IP",
147
- "detail": "",
148
80
  "type": "string",
149
81
  "min": 0,
150
- "max": 50,
151
- "default": null,
152
- "index": false,
153
- "unique": false,
154
- "nullable": false,
155
- "unsigned": true,
156
- "regexp": null
82
+ "max": 50
157
83
  }
158
84
  }
package/tables/api.json CHANGED
@@ -1,80 +1,43 @@
1
1
  {
2
2
  "name": {
3
3
  "name": "接口名称",
4
- "detail": "",
5
4
  "type": "string",
6
5
  "min": 2,
7
6
  "max": 100,
8
- "default": null,
9
- "index": true,
10
- "unique": false,
11
- "nullable": false,
12
- "unsigned": true,
13
- "regexp": null
7
+ "index": true
14
8
  },
15
9
  "path": {
16
10
  "name": "接口路径",
17
- "detail": "",
18
11
  "type": "string",
19
12
  "min": 1,
20
13
  "max": 200,
21
- "default": null,
22
- "index": true,
23
- "unique": false,
24
- "nullable": false,
25
- "unsigned": true,
26
- "regexp": null
14
+ "index": true
27
15
  },
28
16
  "method": {
29
17
  "name": "请求方法",
30
- "detail": "",
31
18
  "type": "string",
32
19
  "min": 3,
33
20
  "max": 10,
34
21
  "default": "POST",
35
22
  "index": true,
36
- "unique": false,
37
- "nullable": false,
38
- "unsigned": true,
39
23
  "regexp": "^(GET|POST|PUT|DELETE|PATCH)$"
40
24
  },
41
25
  "description": {
42
26
  "name": "接口描述",
43
- "detail": "",
44
27
  "type": "string",
45
28
  "min": 0,
46
- "max": 500,
47
- "default": null,
48
- "index": false,
49
- "unique": false,
50
- "nullable": false,
51
- "unsigned": true,
52
- "regexp": null
29
+ "max": 500
53
30
  },
54
31
  "addonName": {
55
32
  "name": "所属插件",
56
- "detail": "",
57
33
  "type": "string",
58
34
  "min": 0,
59
- "max": 50,
60
- "default": null,
61
- "index": false,
62
- "unique": false,
63
- "nullable": false,
64
- "unsigned": true,
65
- "regexp": null
35
+ "max": 50
66
36
  },
67
37
  "addonTitle": {
68
38
  "name": "插件标题",
69
- "detail": "",
70
39
  "type": "string",
71
40
  "min": 0,
72
- "max": 100,
73
- "default": null,
74
- "index": false,
75
- "unique": false,
76
- "nullable": false,
77
- "unsigned": true,
78
- "regexp": null
41
+ "max": 100
79
42
  }
80
43
  }
package/tables/dict.json CHANGED
@@ -1,80 +1,45 @@
1
1
  {
2
2
  "name": {
3
3
  "name": "字典名称",
4
- "detail": "",
5
4
  "type": "string",
6
5
  "min": 2,
7
6
  "max": 50,
8
- "default": null,
9
- "index": true,
10
- "unique": false,
11
- "nullable": false,
12
- "unsigned": true,
13
- "regexp": null
7
+ "index": true
14
8
  },
15
9
  "code": {
16
10
  "name": "字典代码",
17
- "detail": "",
18
11
  "type": "string",
19
12
  "min": 2,
20
13
  "max": 50,
21
- "default": null,
22
14
  "index": true,
23
- "unique": false,
24
- "nullable": false,
25
- "unsigned": true,
26
15
  "regexp": "^[a-zA-Z0-9_]+$"
27
16
  },
28
17
  "value": {
29
18
  "name": "字典值",
30
- "detail": "",
31
19
  "type": "string",
32
20
  "min": 0,
33
21
  "max": 200,
34
- "default": null,
35
- "index": true,
36
- "unique": false,
37
- "nullable": false,
38
- "unsigned": true,
39
- "regexp": null
22
+ "index": true
40
23
  },
41
24
  "sort": {
42
25
  "name": "排序",
43
- "detail": "",
44
26
  "type": "number",
45
27
  "min": 0,
46
28
  "max": 9999,
47
- "default": 0,
48
- "index": false,
49
- "unique": false,
50
- "nullable": false,
51
- "unsigned": true,
52
- "regexp": null
29
+ "default": 0
53
30
  },
54
31
  "pid": {
55
32
  "name": "父级ID",
56
- "detail": "",
57
33
  "type": "number",
58
34
  "min": 0,
59
35
  "max": 999999999999999,
60
36
  "default": 0,
61
- "index": true,
62
- "unique": false,
63
- "nullable": false,
64
- "unsigned": true,
65
- "regexp": null
37
+ "index": true
66
38
  },
67
39
  "description": {
68
40
  "name": "描述",
69
- "detail": "",
70
41
  "type": "string",
71
42
  "min": 0,
72
- "max": 200,
73
- "default": null,
74
- "index": false,
75
- "unique": false,
76
- "nullable": false,
77
- "unsigned": true,
78
- "regexp": null
43
+ "max": 200
79
44
  }
80
45
  }
package/tables/menu.json CHANGED
@@ -1,67 +1,37 @@
1
1
  {
2
2
  "name": {
3
3
  "name": "菜单名称",
4
- "detail": "",
5
4
  "type": "string",
6
5
  "min": 2,
7
6
  "max": 50,
8
- "default": null,
9
- "index": true,
10
- "unique": false,
11
- "nullable": false,
12
- "unsigned": true,
13
- "regexp": null
7
+ "index": true
14
8
  },
15
9
  "path": {
16
10
  "name": "路由路径",
17
- "detail": "",
18
11
  "type": "string",
19
12
  "min": 1,
20
13
  "max": 200,
21
- "default": null,
22
- "index": true,
23
- "unique": false,
24
- "nullable": false,
25
- "unsigned": true,
26
- "regexp": null
14
+ "index": true
27
15
  },
28
16
  "icon": {
29
17
  "name": "图标名称",
30
- "detail": "",
31
18
  "type": "string",
32
19
  "min": 0,
33
- "max": 50,
34
- "default": null,
35
- "index": false,
36
- "unique": false,
37
- "nullable": false,
38
- "unsigned": true,
39
- "regexp": null
20
+ "max": 50
40
21
  },
41
22
  "sort": {
42
23
  "name": "排序",
43
- "detail": "",
44
24
  "type": "number",
45
25
  "min": 0,
46
26
  "max": 9999,
47
- "default": 0,
48
- "index": false,
49
- "unique": false,
50
- "nullable": false,
51
- "unsigned": true,
52
- "regexp": null
27
+ "default": 0
53
28
  },
54
29
  "pid": {
55
30
  "name": "父级ID",
56
- "detail": "",
57
31
  "type": "number",
58
32
  "min": 0,
59
33
  "max": 999999999999999,
60
34
  "default": 0,
61
- "index": true,
62
- "unique": false,
63
- "nullable": false,
64
- "unsigned": true,
65
- "regexp": null
35
+ "index": true
66
36
  }
67
37
  }
package/tables/role.json CHANGED
@@ -1,80 +1,42 @@
1
1
  {
2
2
  "name": {
3
3
  "name": "角色名称",
4
- "detail": "",
5
4
  "type": "string",
6
5
  "min": 2,
7
6
  "max": 50,
8
- "default": null,
9
- "index": true,
10
- "unique": false,
11
- "nullable": false,
12
- "unsigned": true,
13
- "regexp": null
7
+ "index": true
14
8
  },
15
9
  "code": {
16
10
  "name": "角色编码",
17
- "detail": "",
18
11
  "type": "string",
19
12
  "min": 2,
20
13
  "max": 50,
21
- "default": null,
22
14
  "index": true,
23
- "unique": false,
24
- "nullable": false,
25
- "unsigned": true,
26
15
  "regexp": "^[a-zA-Z0-9_]+$"
27
16
  },
28
17
  "description": {
29
18
  "name": "角色描述",
30
- "detail": "",
31
19
  "type": "string",
32
20
  "min": 0,
33
- "max": 200,
34
- "default": null,
35
- "index": false,
36
- "unique": false,
37
- "nullable": false,
38
- "unsigned": true,
39
- "regexp": null
21
+ "max": 200
40
22
  },
41
23
  "menus": {
42
24
  "name": "菜单权限",
43
- "detail": "",
44
25
  "type": "array_text",
45
26
  "min": null,
46
- "max": null,
47
- "default": null,
48
- "index": false,
49
- "unique": false,
50
- "nullable": false,
51
- "unsigned": true,
52
- "regexp": null
27
+ "max": null
53
28
  },
54
29
  "apis": {
55
30
  "name": "接口权限",
56
- "detail": "",
57
31
  "type": "array_text",
58
32
  "min": null,
59
- "max": null,
60
- "default": null,
61
- "index": false,
62
- "unique": false,
63
- "nullable": false,
64
- "unsigned": true,
65
- "regexp": null
33
+ "max": null
66
34
  },
67
35
  "sort": {
68
36
  "name": "排序",
69
- "detail": "",
70
37
  "type": "number",
71
38
  "min": 0,
72
39
  "max": 9999,
73
- "default": 0,
74
- "index": false,
75
- "unique": false,
76
- "nullable": false,
77
- "unsigned": true,
78
- "regexp": null
40
+ "default": 0
79
41
  }
80
42
  }