@cpzxrobot/sdk 1.1.85 → 1.1.86

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.
@@ -20,7 +20,7 @@ export class CustomerGateway extends Object {
20
20
  });
21
21
  }
22
22
 
23
- listByProvince(area_code:string){
23
+ listByProvince(area_code: string) {
24
24
  return this.context.ready.then((axios) => {
25
25
  return axios.get(`/api/v2/coremde-sale/customer/province/get?area_code=${area_code}`);
26
26
  });
@@ -44,7 +44,7 @@ export class CustomerGateway extends Object {
44
44
  });
45
45
  }
46
46
 
47
- accountManager(customerId: number,pageNo:number|undefined= undefined,pageSize:number|undefined=undefined) {
47
+ accountManager(customerId: number, pageNo: number | undefined = undefined, pageSize: number | undefined = undefined) {
48
48
  return this.context.ready.then((axios) => {
49
49
  var params = {
50
50
  customerId: customerId,
@@ -52,9 +52,9 @@ export class CustomerGateway extends Object {
52
52
  pageSize: pageSize,
53
53
  }
54
54
  return axios.get(
55
- `/api/v2/coremde-sale/customer/account-manager/list`,{
56
- params: params,
57
- }
55
+ `/api/v2/coremde-sale/customer/account-manager/list`, {
56
+ params: params,
57
+ }
58
58
  );
59
59
  });
60
60
  }
@@ -105,25 +105,17 @@ export class CustomerGateway extends Object {
105
105
  }
106
106
 
107
107
  //获得客户状态列表
108
- get status() {
109
- return {
110
- list: () => {
111
- return this.context.ready.then((axios) => {
112
- return axios.get(`/api/v2/coremde-sale/customer/status`);
113
- });
114
- },
115
- }
108
+ status() {
109
+ return this.context.ready.then((axios) => {
110
+ return axios.get(`/api/v2/coremde-sale/customer/status`);
111
+ });
116
112
  }
117
113
 
118
114
  //获得客户类型列表
119
- get types() {
120
- return {
121
- list: () => {
122
- return this.context.ready.then((axios) => {
123
- return axios.get(`/api/v2/coremde-sale/customer/types`);
124
- });
125
- },
126
- }
115
+ types() {
116
+ return this.context.ready.then((axios) => {
117
+ return axios.get(`/api/v2/coremde-sale/customer/types`);
118
+ });
127
119
  }
128
120
 
129
121
  }
@@ -77,24 +77,16 @@ class CustomerGateway extends Object {
77
77
  };
78
78
  }
79
79
  //获得客户状态列表
80
- get status() {
81
- return {
82
- list: () => {
83
- return this.context.ready.then((axios) => {
84
- return axios.get(`/api/v2/coremde-sale/customer/status`);
85
- });
86
- },
87
- };
80
+ status() {
81
+ return this.context.ready.then((axios) => {
82
+ return axios.get(`/api/v2/coremde-sale/customer/status`);
83
+ });
88
84
  }
89
85
  //获得客户类型列表
90
- get types() {
91
- return {
92
- list: () => {
93
- return this.context.ready.then((axios) => {
94
- return axios.get(`/api/v2/coremde-sale/customer/types`);
95
- });
96
- },
97
- };
86
+ types() {
87
+ return this.context.ready.then((axios) => {
88
+ return axios.get(`/api/v2/coremde-sale/customer/types`);
89
+ });
98
90
  }
99
91
  }
100
92
  exports.CustomerGateway = CustomerGateway;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cpzxrobot/sdk",
3
- "version": "1.1.85",
3
+ "version": "1.1.86",
4
4
  "description": "提供给上海正芯数智APP第三方H5应用使用的SDK",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {