@steedos/standard-ui 2.5.12-beta.15 → 2.5.12-beta.16
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 +2 -2
- package/package.service.js +25 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/standard-ui",
|
|
3
|
-
"version": "2.5.12-beta.
|
|
3
|
+
"version": "2.5.12-beta.16",
|
|
4
4
|
"main": "package.service.js",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -12,5 +12,5 @@
|
|
|
12
12
|
"description": "steedos package",
|
|
13
13
|
"repository": {},
|
|
14
14
|
"license": "MIT",
|
|
15
|
-
"gitHead": "
|
|
15
|
+
"gitHead": "3b3503644fc4c9f559dd3fcb6d1da3d84469c1f8"
|
|
16
16
|
}
|
package/package.service.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* @Author: sunhaolin@hotoa.com
|
|
3
3
|
* @Date: 2022-07-29 09:40:31
|
|
4
|
-
* @LastEditors:
|
|
5
|
-
* @LastEditTime:
|
|
4
|
+
* @LastEditors: baozhoutao@steedos.com
|
|
5
|
+
* @LastEditTime: 2023-08-19 19:56:00
|
|
6
6
|
* @Description:
|
|
7
7
|
*/
|
|
8
8
|
"use strict";
|
|
@@ -36,7 +36,29 @@ module.exports = {
|
|
|
36
36
|
* Actions
|
|
37
37
|
*/
|
|
38
38
|
actions: {
|
|
39
|
-
|
|
39
|
+
getUsersName: {
|
|
40
|
+
rest: {
|
|
41
|
+
method: "POST",
|
|
42
|
+
fullPath: "/service/api/standard-ui/getUsersName"
|
|
43
|
+
},
|
|
44
|
+
async handler(ctx) {
|
|
45
|
+
const { userIds } = ctx.params;
|
|
46
|
+
if(!userIds || userIds.length == 0){
|
|
47
|
+
return []
|
|
48
|
+
}
|
|
49
|
+
//此查询不带权限, 使用userIds 获取用户姓名
|
|
50
|
+
return await ctx.broker.call(
|
|
51
|
+
'objectql.find',
|
|
52
|
+
{
|
|
53
|
+
objectName: 'space_users',
|
|
54
|
+
query: {
|
|
55
|
+
fields: ['_id', 'user', 'name'],
|
|
56
|
+
filters: [["user", "in", userIds]]
|
|
57
|
+
},
|
|
58
|
+
}
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
40
62
|
},
|
|
41
63
|
|
|
42
64
|
/**
|