forked from SuperMap/iClient-JavaScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathiPortalQueryResult.js
More file actions
33 lines (29 loc) · 1.18 KB
/
Copy pathiPortalQueryResult.js
File metadata and controls
33 lines (29 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* Copyright© 2000 - 2021 SuperMap Software Co.Ltd. All rights reserved.
* This program are made available under the terms of the Apache License, Version 2.0
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
import {SuperMap} from '../SuperMap';
import {Util} from '../commontypes/Util';
/**
* @class SuperMap.iPortalQueryResult
* @classdesc iPortal 资源结果集封装类。
* @version 10.0.1
* @category iPortal/Online
* @param {Object} queryResult - 资源参数。
* @param {Array} [queryResult.content] - 页面内容。
* @param {number} [queryResult.total] - 总记录数。
* @param {number} [queryResult.currentPage] - 当前第几页。
* @param {number} [queryResult.pageSize] - 每页大小。
* @param {Object} [queryResult.aggregations] - 聚合查询的结果。
*/
export class IPortalQueryResult {
constructor(queryResult) {
queryResult = queryResult || {};
this.content = [];
this.total = 0;
this.currentPage = 1;
this.pageSize = 12;
this.aggregations = null;
Util.extend(this, queryResult);
}
}
SuperMap.iPortalQueryResult = IPortalQueryResult;