@ningboyz/apis 1.7.143 → 1.7.144
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/package.json +2 -2
- package/packages/tabl/main.ts +18 -0
- package/packages/tabl/types.ts +18 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/apis",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.144",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "宁波甬政请求库",
|
|
6
6
|
"author": "nbyt-syq",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"registry": "https://registry.npmjs.org/"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@ningboyz/types": "1.7.
|
|
20
|
+
"@ningboyz/types": "1.7.144",
|
|
21
21
|
"axios": "1.8.4",
|
|
22
22
|
"lodash": "^4.17.21"
|
|
23
23
|
},
|
package/packages/tabl/main.ts
CHANGED
|
@@ -17,11 +17,14 @@ import {
|
|
|
17
17
|
ITablMainInsertdbQuerys,
|
|
18
18
|
ITablMainRestorestatusQuerys,
|
|
19
19
|
ITablMainSelectcxQuerys,
|
|
20
|
+
ITablMainSwitchbackupQuerys,
|
|
21
|
+
ITablMainSwitchreturnQuerys,
|
|
20
22
|
ITablMainTablstatUpdatedb2Querys,
|
|
21
23
|
ITablMainTablstatUpdatedbQuerys,
|
|
22
24
|
ITablMainUpdatedbAsnormalQuerys,
|
|
23
25
|
ITablMainUpdatedbCommitQuerys,
|
|
24
26
|
ITablMainUpdatedbQuerys,
|
|
27
|
+
ITablMainUploadd2TablstatQuerys,
|
|
25
28
|
ITablMainUploaddbAsnormalQuerys,
|
|
26
29
|
TTablMainSelectdbQuerys
|
|
27
30
|
} from "./types";
|
|
@@ -264,6 +267,21 @@ class MainRequest {
|
|
|
264
267
|
uploaddbAsnormal(querys: ITablMainUploaddbAsnormalQuerys, params: object) {
|
|
265
268
|
return this.httpRequest.post<TTabl.ITablMainResponse[]>("/tabl/tmain/asnormal/uploaddb", querys, params);
|
|
266
269
|
}
|
|
270
|
+
|
|
271
|
+
/**批量备份 */
|
|
272
|
+
switchBackup(querys: ITablMainSwitchbackupQuerys, params: object) {
|
|
273
|
+
return this.httpRequest.post<TTabl.ITablMainResponse[]>("/tabl/tmain/tablstat/switchdb", querys, params);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/**批量还原状态 */
|
|
277
|
+
switchReturn(querys: ITablMainSwitchreturnQuerys, params: object) {
|
|
278
|
+
return this.httpRequest.post<TTabl.ITablMainResponse[]>("/tabl/tmain/tablstat/returndb", querys, params);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
/**更新填报状态(gztb_main&unit_main)*/
|
|
282
|
+
uploadd2Tablstat(querys: ITablMainUploadd2TablstatQuerys, params: object) {
|
|
283
|
+
return this.httpRequest.post<TTabl.ITablMainResponse[]>("/tabl/tmain/tablstat/uploadd2", querys, params);
|
|
284
|
+
}
|
|
267
285
|
}
|
|
268
286
|
|
|
269
287
|
export default MainRequest;
|
package/packages/tabl/types.ts
CHANGED
|
@@ -252,3 +252,21 @@ export interface ITablMainUploaddbAsnormalQuerys {
|
|
|
252
252
|
export class TTablMainUploaddbAsnormalQuerys implements ITablMainUploaddbAsnormalQuerys {
|
|
253
253
|
asnormal: number = -1;
|
|
254
254
|
}
|
|
255
|
+
|
|
256
|
+
export interface ITablMainSwitchbackupQuerys {}
|
|
257
|
+
|
|
258
|
+
export class TTablMainSwitchbackupQuerys implements ITablMainSwitchbackupQuerys {}
|
|
259
|
+
|
|
260
|
+
export interface ITablMainSwitchreturnQuerys {}
|
|
261
|
+
|
|
262
|
+
export class TTablMainSwitchreturnQuerys implements ITablMainSwitchreturnQuerys {}
|
|
263
|
+
|
|
264
|
+
export interface ITablMainUploadd2TablstatQuerys {
|
|
265
|
+
tablmode: number;
|
|
266
|
+
tablstat: number;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
export class TTablMainUploadd2TablstatQuerys implements ITablMainUploadd2TablstatQuerys {
|
|
270
|
+
tablmode: number = -1;
|
|
271
|
+
tablstat: number = -1;
|
|
272
|
+
}
|