@ningboyz/apis 1.2.7 → 1.2.9
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/gams/cnfg.ts +19 -8
- package/packages/gams/types.ts +8 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/apis",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.9",
|
|
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.2.
|
|
20
|
+
"@ningboyz/types": "1.2.9",
|
|
21
21
|
"axios": "1.8.4"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {}
|
package/packages/gams/cnfg.ts
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import type { TGams } from "@ningboyz/types";
|
|
2
2
|
import type { HttpRequest } from "../axios";
|
|
3
|
-
import {
|
|
4
|
-
IGamsCnfgDetaildbQuerys,
|
|
5
|
-
IGamsCnfgGet4billQuerys,
|
|
6
|
-
IGamsCnfgInsertdbQuerys,
|
|
7
|
-
IGamsCnfgSelectdbQuerys
|
|
8
|
-
} from "./types";
|
|
3
|
+
import { IGamsCnfgDetaildbQuerys, IGamsCnfgGet4billQuerys, IGamsCnfgInsertdbQuerys, IGamsCnfgSelectdbQuerys, IGamsCnfgUploaditQuerys } from "./types";
|
|
9
4
|
|
|
10
5
|
class CnfgRequest {
|
|
11
6
|
private httpRequest: HttpRequest;
|
|
@@ -51,7 +46,7 @@ class CnfgRequest {
|
|
|
51
46
|
deletedb(querys: IGamsCnfgInsertdbQuerys, params: object) {
|
|
52
47
|
return this.httpRequest.post<TGams.IGamsCnfgResponse[]>("/gams/tcnfg/deletedb", querys, params);
|
|
53
48
|
}
|
|
54
|
-
|
|
49
|
+
|
|
55
50
|
/**
|
|
56
51
|
* 获取标准详情
|
|
57
52
|
* @param querys
|
|
@@ -60,7 +55,7 @@ class CnfgRequest {
|
|
|
60
55
|
detaildb(querys: IGamsCnfgDetaildbQuerys) {
|
|
61
56
|
return this.httpRequest.post<TGams.IGamsCnfgResponse[]>("/gams/tcnfg/detaildb", querys, undefined);
|
|
62
57
|
}
|
|
63
|
-
|
|
58
|
+
|
|
64
59
|
/**
|
|
65
60
|
* 结转下一年度
|
|
66
61
|
* @param querys
|
|
@@ -79,6 +74,22 @@ class CnfgRequest {
|
|
|
79
74
|
get4bill(querys: IGamsCnfgGet4billQuerys) {
|
|
80
75
|
return this.httpRequest.post<TGams.IGamsBillResponse[]>("/gams/tmain/get4bill", querys);
|
|
81
76
|
}
|
|
77
|
+
/**
|
|
78
|
+
* 备份账套
|
|
79
|
+
* @param querys
|
|
80
|
+
* @returns
|
|
81
|
+
*/
|
|
82
|
+
detaild2(querys: IGamsCnfgDetaildbQuerys) {
|
|
83
|
+
return this.httpRequest.post<TGams.IGamsCnfgResponse[]>("/gams/tcnfg/detaild2", querys, undefined);
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* 追加账套override(0: 追加,1: 覆盖)
|
|
87
|
+
* @param querys
|
|
88
|
+
* @returns
|
|
89
|
+
*/
|
|
90
|
+
uploadit(querys: IGamsCnfgUploaditQuerys, params: object) {
|
|
91
|
+
return this.httpRequest.post<TGams.IGamsCnfgResponse[]>("gams/tcnfg/uploadit", querys, params);
|
|
92
|
+
}
|
|
82
93
|
}
|
|
83
94
|
|
|
84
95
|
export default CnfgRequest;
|
package/packages/gams/types.ts
CHANGED
|
@@ -195,3 +195,11 @@ export class TGamsTk8kmDetaildbQuerys implements IGamsTk8kmDetaildbQuerys {
|
|
|
195
195
|
sourceid: number = -1;
|
|
196
196
|
k8kmkmid: number = -1;
|
|
197
197
|
}
|
|
198
|
+
export interface IGamsCnfgUploaditQuerys {
|
|
199
|
+
sourcend: number;
|
|
200
|
+
override: number;
|
|
201
|
+
}
|
|
202
|
+
export class TGamsCnfgUploaditQuerys implements IGamsCnfgUploaditQuerys {
|
|
203
|
+
sourcend: number = -1;
|
|
204
|
+
override: number = -1;
|
|
205
|
+
}
|