@cpzxrobot/sdk 1.1.33 → 1.1.35

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.
@@ -18,5 +18,19 @@ class NewsGateway extends Object {
18
18
  return axios.post("/api/v2/coremde-sale/news/add", args);
19
19
  });
20
20
  }
21
+ get alarm() {
22
+ return {
23
+ add: (args) => {
24
+ return this.context.ready.then(axios => {
25
+ return axios.post("/api/v2/coremde-sale/alarm/add", args);
26
+ });
27
+ },
28
+ list: (args) => {
29
+ return this.context.ready.then(axios => {
30
+ return axios.get("/api/v2/coremde-sale/alarm/list", { params: args });
31
+ });
32
+ }
33
+ };
34
+ }
21
35
  }
22
36
  exports.NewsGateway = NewsGateway;
@@ -31,6 +31,11 @@ class ProjectGateway extends Object {
31
31
  return this.context.ready.then((axios) => {
32
32
  return axios.post(`/api/v2/coremde-sale/project/feedback/list`, args);
33
33
  });
34
+ },
35
+ reply: (args) => {
36
+ return this.context.ready.then((axios) => {
37
+ return axios.post(`/api/v2/coremde-sale/feedback/reply`, args);
38
+ });
34
39
  }
35
40
  };
36
41
  }
package/news_gateway.ts CHANGED
@@ -30,4 +30,27 @@ export class NewsGateway extends Object {
30
30
  });
31
31
  }
32
32
 
33
+ get alarm() {
34
+ return {
35
+ add:(args: {
36
+ content: string;
37
+ type: string;
38
+ })=> {
39
+ return this.context.ready.then(axios => {
40
+ return axios.post("/api/v2/coremde-sale/alarm/add", args);
41
+
42
+ });
43
+ },
44
+ list:(args: {
45
+ pageSize?: number;
46
+ pageNo?: number;
47
+ }) =>{
48
+ return this.context.ready.then(axios => {
49
+ return axios.get("/api/v2/coremde-sale/alarm/list", { params: args });
50
+
51
+ });
52
+ }
53
+ }
54
+ }
55
+
33
56
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cpzxrobot/sdk",
3
- "version": "1.1.33",
3
+ "version": "1.1.35",
4
4
  "description": "提供给上海正芯数智APP第三方H5应用使用的SDK",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -47,6 +47,15 @@ export class ProjectGateway extends Object {
47
47
  return this.context.ready.then((axios) => {
48
48
  return axios.post(`/api/v2/coremde-sale/project/feedback/list`, args);
49
49
  });
50
+ },
51
+ reply: (args: {
52
+ id: number;
53
+ status: number;
54
+ reply: string;
55
+ }) => {
56
+ return this.context.ready.then((axios) => {
57
+ return axios.post(`/api/v2/coremde-sale/feedback/reply`, args);
58
+ });
50
59
  }
51
60
  };
52
61
  }
package/readme.md CHANGED
@@ -160,6 +160,7 @@ baseURL: "/"
160
160
  | cpzxrobot().project.list | 获得项目列表,传入factory_id和必要的分页参数 |
161
161
  | cpzxrobot().project.feedback.list | 获得项目反馈列表,传入project_id参数 |
162
162
  | cpzxrobot().project.feedback.add | 添加项目反馈信息,传入project_id和反馈内容 |
163
+ | cpzxrobot().project.feedback.reply | 添加项目反馈回复,传入feedback_id和回复内容 |
163
164
  | cpzxrobot().project.get | 获得项目信息,传入id参数 |
164
165
  | cpzxrobot().project.stat.china | 获得项目在全国的统计信息 |
165
166
  | cpzxrobot().project.inquiry.list | 获得项目询盘列表,传入project_id参数 |
@@ -199,6 +200,8 @@ baseURL: "/"
199
200
  | cpzxrobot().car.listByCity | 获得车辆在某个市的统计信息,传入city参数 |
200
201
  | cpzxrobot().news.add | 添加新闻 |
201
202
  | cpzxrobot().news.list | 获得新闻列表,传入必要的分页参数 |
203
+ | cpzxrobot().news.alarm.add | 添加报警信息 |
204
+ | cpzxrobot().news.alarm.list | 获得报警列表,传入必要的分页参数 |
202
205
 
203
206
  ### 工厂信息接口
204
207