@befly-addon/admin 1.1.4 → 1.1.6
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/apis/admin/del.ts +3 -1
- package/apis/admin/detail.ts +3 -0
- package/apis/admin/list.ts +6 -0
- package/apis/api/list.ts +6 -0
- package/apis/dict/del.ts +3 -0
- package/apis/dict/detail.ts +3 -0
- package/apis/dict/list.ts +6 -0
- package/apis/email/logList.ts +6 -0
- package/apis/loginLog/list.ts +6 -0
- package/apis/menu/list.ts +6 -0
- package/apis/operateLog/list.ts +6 -0
- package/apis/role/del.ts +3 -0
- package/apis/role/detail.ts +3 -0
- package/apis/role/list.ts +6 -0
- package/apis/sysConfig/del.ts +3 -0
- package/apis/sysConfig/get.ts +3 -0
- package/apis/sysConfig/list.ts +6 -0
- package/apis/sysConfig/upd.ts +4 -1
- package/package.json +3 -2
- package/plugins/email.ts +2 -2
- package/tables/emailLog.json +2 -4
- package/tables/operateLog.json +1 -1
- package/tables/sysConfig.json +2 -2
package/apis/admin/del.ts
CHANGED
package/apis/admin/detail.ts
CHANGED
package/apis/admin/list.ts
CHANGED
package/apis/api/list.ts
CHANGED
|
@@ -2,6 +2,12 @@ import type { ApiRoute } from 'befly';
|
|
|
2
2
|
|
|
3
3
|
export default {
|
|
4
4
|
name: '获取接口列表(分页)',
|
|
5
|
+
fields: {
|
|
6
|
+
page: '@page',
|
|
7
|
+
limit: '@limit',
|
|
8
|
+
keyword: '@keyword',
|
|
9
|
+
state: '@state'
|
|
10
|
+
},
|
|
5
11
|
handler: async (befly, ctx) => {
|
|
6
12
|
try {
|
|
7
13
|
const { page = 1, limit = 30, keyword = '' } = ctx.body;
|
package/apis/dict/del.ts
CHANGED
package/apis/dict/detail.ts
CHANGED
package/apis/dict/list.ts
CHANGED
package/apis/email/logList.ts
CHANGED
package/apis/loginLog/list.ts
CHANGED
package/apis/menu/list.ts
CHANGED
package/apis/operateLog/list.ts
CHANGED
package/apis/role/del.ts
CHANGED
package/apis/role/detail.ts
CHANGED
package/apis/role/list.ts
CHANGED
package/apis/sysConfig/del.ts
CHANGED
package/apis/sysConfig/get.ts
CHANGED
package/apis/sysConfig/list.ts
CHANGED
package/apis/sysConfig/upd.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@befly-addon/admin",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.6",
|
|
4
4
|
"title": "管理后台",
|
|
5
5
|
"description": "Befly - 管理后台功能组件",
|
|
6
6
|
"type": "module",
|
|
@@ -43,8 +43,9 @@
|
|
|
43
43
|
"url": "https://github.com/chenbimo/befly.git",
|
|
44
44
|
"directory": "packages/addon-admin"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "58cd1c7adf8222e8b38464acfff8795e3a9580fc",
|
|
47
47
|
"dependencies": {
|
|
48
|
+
"befly": "3.9.21",
|
|
48
49
|
"befly-shared": "^1.2.3",
|
|
49
50
|
"nodemailer": "^7.0.11",
|
|
50
51
|
"ua-parser-js": "^2.0.7"
|
package/plugins/email.ts
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
import nodemailer from 'nodemailer';
|
|
7
7
|
|
|
8
8
|
import type { Transporter } from 'nodemailer';
|
|
9
|
-
import type { Plugin } from 'befly
|
|
10
|
-
import type { BeflyContext } from 'befly
|
|
9
|
+
import type { Plugin } from 'befly/types/plugin.js';
|
|
10
|
+
import type { BeflyContext } from 'befly/types/befly.js';
|
|
11
11
|
|
|
12
12
|
/** 邮件配置 */
|
|
13
13
|
export interface EmailConfig {
|
package/tables/emailLog.json
CHANGED
|
@@ -21,15 +21,13 @@
|
|
|
21
21
|
"type": "string",
|
|
22
22
|
"min": 5,
|
|
23
23
|
"max": 200,
|
|
24
|
-
"
|
|
25
|
-
"regex": "email"
|
|
24
|
+
"regexp": "@email"
|
|
26
25
|
},
|
|
27
26
|
"subject": {
|
|
28
27
|
"name": "邮件主题",
|
|
29
28
|
"type": "string",
|
|
30
29
|
"min": 1,
|
|
31
|
-
"max": 200
|
|
32
|
-
"required": true
|
|
30
|
+
"max": 200
|
|
33
31
|
},
|
|
34
32
|
"content": {
|
|
35
33
|
"name": "邮件内容",
|
package/tables/operateLog.json
CHANGED
package/tables/sysConfig.json
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"type": "string",
|
|
23
23
|
"max": 20,
|
|
24
24
|
"default": "string",
|
|
25
|
-
"
|
|
25
|
+
"detail": "string number boolean json"
|
|
26
26
|
},
|
|
27
27
|
"group": {
|
|
28
28
|
"name": "配置分组",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"min": 0,
|
|
44
44
|
"max": 1,
|
|
45
45
|
"default": 0,
|
|
46
|
-
"
|
|
46
|
+
"detail": "1是 0否"
|
|
47
47
|
},
|
|
48
48
|
"description": {
|
|
49
49
|
"name": "描述说明",
|