@steedos/service-cachers-manager 2.5.5 → 2.5.6-beta.4
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 +4 -4
- package/package.service.js +16 -3
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/service-cachers-manager",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.6-beta.4",
|
|
4
4
|
"main": "package.service.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"private": false,
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@steedos/cachers": "2.5.
|
|
9
|
-
"@steedos/metadata-registrar": "2.5.
|
|
8
|
+
"@steedos/cachers": "2.5.6-beta.4",
|
|
9
|
+
"@steedos/metadata-registrar": "2.5.6-beta.4"
|
|
10
10
|
},
|
|
11
11
|
"publishConfig": {
|
|
12
12
|
"access": "public"
|
|
13
13
|
},
|
|
14
|
-
"gitHead": "
|
|
14
|
+
"gitHead": "865682da22058bd2a954753eeeab891612e6b529"
|
|
15
15
|
}
|
package/package.service.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* @Author: baozhoutao@steedos.com
|
|
3
3
|
* @Date: 2022-03-28 09:35:35
|
|
4
|
-
* @LastEditors: sunhaolin@
|
|
5
|
-
* @LastEditTime: 2023-06-
|
|
4
|
+
* @LastEditors: Byran sunhaolin@steedos.com
|
|
5
|
+
* @LastEditTime: 2023-06-28 10:45:45
|
|
6
6
|
* @Description: 维护内存缓存
|
|
7
7
|
*/
|
|
8
8
|
"use strict";
|
|
@@ -239,7 +239,20 @@ module.exports = {
|
|
|
239
239
|
}
|
|
240
240
|
return profile;
|
|
241
241
|
}
|
|
242
|
-
}
|
|
242
|
+
},
|
|
243
|
+
getPermissionTabs: {
|
|
244
|
+
params: {
|
|
245
|
+
spaceId: { type: "string", optional: true },
|
|
246
|
+
roles: { type: "array", items: "string" },
|
|
247
|
+
},
|
|
248
|
+
async handler(ctx) {
|
|
249
|
+
const { roles, spaceId } = ctx.params;
|
|
250
|
+
|
|
251
|
+
const cache = cachers.getCacher('permission_tabs');
|
|
252
|
+
|
|
253
|
+
return [];
|
|
254
|
+
}
|
|
255
|
+
},
|
|
243
256
|
},
|
|
244
257
|
|
|
245
258
|
async started() {
|