@steedos/service-object-mixin 2.5.19-beta.1 → 2.5.19-beta.3
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 +13 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/service-object-mixin",
|
|
3
|
-
"version": "2.5.19-beta.
|
|
3
|
+
"version": "2.5.19-beta.3",
|
|
4
4
|
"main": "package.service.js",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
"description": "steedos package",
|
|
14
14
|
"repository": {},
|
|
15
15
|
"license": "MIT",
|
|
16
|
-
"gitHead": "
|
|
16
|
+
"gitHead": "35ab575bdc829b2e9280044651d10d1acb0e3108"
|
|
17
17
|
}
|
package/package.service.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: sunhaolin@hotoa.com
|
|
3
3
|
* @Date: 2023-03-23 15:12:14
|
|
4
4
|
* @LastEditors: 孙浩林 sunhaolin@steedos.com
|
|
5
|
-
* @LastEditTime: 2023-
|
|
5
|
+
* @LastEditTime: 2023-11-08 09:19:14
|
|
6
6
|
* @Description:
|
|
7
7
|
*/
|
|
8
8
|
"use strict";
|
|
@@ -355,6 +355,18 @@ module.exports = {
|
|
|
355
355
|
user: userSession
|
|
356
356
|
}
|
|
357
357
|
})
|
|
358
|
+
},
|
|
359
|
+
createIndex: async (fieldName) => {
|
|
360
|
+
return await this.broker.call("objectql.createIndex", {
|
|
361
|
+
objectName,
|
|
362
|
+
fieldName
|
|
363
|
+
})
|
|
364
|
+
},
|
|
365
|
+
dropIndex: async (fieldName) => {
|
|
366
|
+
return await this.broker.call("objectql.dropIndex", {
|
|
367
|
+
objectName,
|
|
368
|
+
fieldName
|
|
369
|
+
})
|
|
358
370
|
}
|
|
359
371
|
|
|
360
372
|
}
|