@steedos/service-rest 2.7.0-beta.11 → 2.7.0-beta.13

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/consts.js CHANGED
@@ -1,11 +1,11 @@
1
1
  /*
2
2
  * @Author: sunhaolin@hotoa.com
3
3
  * @Date: 2023-06-12 17:20:40
4
- * @LastEditors: sunhaolin@hotoa.com
5
- * @LastEditTime: 2023-06-15 18:38:17
4
+ * @LastEditors: baozhoutao@steedos.com
5
+ * @LastEditTime: 2024-03-29 13:17:38
6
6
  * @Description:
7
7
  */
8
8
  module.exports = {
9
- QUERY_DOCS_TOP: 5000,
9
+ QUERY_DOCS_TOP: 500,
10
10
  REQUEST_SUCCESS_STATUS: 0,
11
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/service-rest",
3
- "version": "2.7.0-beta.11",
3
+ "version": "2.7.0-beta.13",
4
4
  "main": "package.service.js",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -16,9 +16,9 @@
16
16
  "repository": {},
17
17
  "license": "MIT",
18
18
  "dependencies": {
19
- "@steedos/objectql": "2.7.0-beta.11",
20
- "@steedos/service-object-mixin": "2.7.0-beta.11",
19
+ "@steedos/objectql": "2.7.0-beta.13",
20
+ "@steedos/service-object-mixin": "2.7.0-beta.13",
21
21
  "lodash": "^4.17.21"
22
22
  },
23
- "gitHead": "3a99b902d0e03a0aa4cd169a77fc482795c01137"
23
+ "gitHead": "dd3fcbbd08faa6b1e9b4c827bf2ff50caf12df98"
24
24
  }
@@ -1,8 +1,8 @@
1
1
  /*
2
2
  * @Author: sunhaolin@hotoa.com
3
3
  * @Date: 2023-03-23 15:12:14
4
- * @LastEditors: 殷亮辉 yinlianghui@hotoa.com
5
- * @LastEditTime: 2024-03-14 10:39:22
4
+ * @LastEditors: baozhoutao@steedos.com
5
+ * @LastEditTime: 2024-03-29 13:17:21
6
6
  * @Description:
7
7
  */
8
8
  "use strict";
@@ -57,7 +57,7 @@ module.exports = {
57
57
  * @apiQuery {String} [uiFields] 字段名,如:'["owner", "date"]',此参数中的字段要求在参数fields中存在
58
58
  * @apiQuery {String} [expandFields] 字段名,如:'{owner: {fields: ["name"], uiFields: ["owner"], expandFields: ...}}'
59
59
  * @apiQuery {String} [filters] 过滤条件,如:'[["name", "=", "test"],["amount", ">", 100]]'
60
- * @apiQuery {String} [top] 获取条数,如:'10',最多5000
60
+ * @apiQuery {String} [top] 获取条数,如:'10',最多500
61
61
  * @apiQuery {String} [skip] 跳过条数,如:'10'
62
62
  * @apiQuery {String} [sort] 排序,如:'name desc'
63
63
  * @apiSuccess {Object[]} find 记录列表
@@ -154,7 +154,7 @@ module.exports = {
154
154
  return []
155
155
  }
156
156
  if (query.top > QUERY_DOCS_TOP) {
157
- query.top = QUERY_DOCS_TOP // 最多返回5000条数据
157
+ query.top = QUERY_DOCS_TOP // 最多返回500条数据
158
158
  }
159
159
  }
160
160
 
@@ -288,7 +288,7 @@ module.exports = {
288
288
  * @apiParam {String} objectName 对象API Name,如:contracts
289
289
  * @apiBody {String[]} [fields] 字段名,如:["name", "description"]
290
290
  * @apiBody {Object[]} [filters] 过滤条件,如:[['name', '=', 'test'],['amount', '>', 100]]
291
- * @apiBody {Number} [top] 获取条数,如:10,最多5000
291
+ * @apiBody {Number} [top] 获取条数,如:10,最多500
292
292
  * @apiBody {Number} [skip] 跳过条数,如:10
293
293
  * @apiBody {String} [sort] 排序,如:'name desc'
294
294
  * @apiSuccess {Object[]} search 记录列表
@@ -356,7 +356,7 @@ module.exports = {
356
356
  return []
357
357
  }
358
358
  if (query.top > QUERY_DOCS_TOP) {
359
- query.top = QUERY_DOCS_TOP // 最多返回5000条数据
359
+ query.top = QUERY_DOCS_TOP // 最多返回500条数据
360
360
  }
361
361
  }
362
362