@cpzxrobot/sdk 1.1.30 → 1.1.32

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.
@@ -7,10 +7,10 @@ export class CompanyGateway extends Object {
7
7
  this.context = context;
8
8
  }
9
9
 
10
- async list() {
10
+ async list(pageNo: number, pageSize: number) {
11
11
  var axios = await this.context.ready;
12
12
  return axios
13
- .get(`/api/v2/company/list`);
13
+ .get(`/api/v2/company/list?current=${pageNo}&size=${pageSize}`);
14
14
  }
15
15
 
16
16
  get rank() {
@@ -6,10 +6,10 @@ class CompanyGateway extends Object {
6
6
  super();
7
7
  this.context = context;
8
8
  }
9
- async list() {
9
+ async list(pageNo, pageSize) {
10
10
  var axios = await this.context.ready;
11
11
  return axios
12
- .get(`/api/v2/company/list`);
12
+ .get(`/api/v2/company/list?current=${pageNo}&size=${pageSize}`);
13
13
  }
14
14
  get rank() {
15
15
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cpzxrobot/sdk",
3
- "version": "1.1.30",
3
+ "version": "1.1.32",
4
4
  "description": "提供给上海正芯数智APP第三方H5应用使用的SDK",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
package/types.d.ts CHANGED
@@ -228,6 +228,7 @@ type DeviceV2 = {
228
228
  realDeviceId?: number;
229
229
  location?: string;
230
230
  supplier?: string;
231
+ enterpriseId?: number;
231
232
  };
232
233
 
233
234
  type FeedTowerV2 = {