@ningboyz/apis 1.0.156 → 1.0.157
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 +37 -1
- package/packages/gams/type.ts +26 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/apis",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.157",
|
|
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.0.
|
|
20
|
+
"@ningboyz/types": "1.0.157",
|
|
21
21
|
"axios": "1.8.4"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {}
|
package/packages/gams/cnfg.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TGams } from "@ningboyz/types";
|
|
2
2
|
import type { HttpRequest } from "../axios";
|
|
3
|
-
import { IGamsCnfgSelectdbQuerys } from "./type";
|
|
3
|
+
import { IGamsCnfgSelectdbQuerys, IGamsCnfgInsertdbQuerys, IGamsCnfgDetaildbQuerys } from "./type";
|
|
4
4
|
|
|
5
5
|
class CnfgRequest {
|
|
6
6
|
private httpRequest: HttpRequest;
|
|
@@ -8,9 +8,45 @@ class CnfgRequest {
|
|
|
8
8
|
this.httpRequest = httpRequest;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
+
/**
|
|
12
|
+
* 获取标准账套列表
|
|
13
|
+
*/
|
|
11
14
|
selectdb(querys: IGamsCnfgSelectdbQuerys) {
|
|
12
15
|
return this.httpRequest.post<TGams.IGamsCnfgResponse>("/gams/tcnfg/selectdb", querys, undefined);
|
|
13
16
|
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* 添加标准账套
|
|
20
|
+
*/
|
|
21
|
+
insertdb(querys: IGamsCnfgInsertdbQuerys, params: object) {
|
|
22
|
+
return this.httpRequest.post<TGams.IGamsCnfgResponse>("/gams/tcnfg/insertdb", querys, params);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* 修改标准账套
|
|
27
|
+
*/
|
|
28
|
+
updatedb(querys: IGamsCnfgInsertdbQuerys, params: object) {
|
|
29
|
+
return this.httpRequest.post<TGams.IGamsCnfgResponse>("/gams/tcnfg/updatedb", querys, params);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* 删除标准账套
|
|
34
|
+
*/
|
|
35
|
+
deletedb(querys: IGamsCnfgInsertdbQuerys, params: object) {
|
|
36
|
+
return this.httpRequest.post<TGams.IGamsCnfgResponse>("/gams/tcnfg/deletedb", querys, params);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* 获取标准详情
|
|
40
|
+
*/
|
|
41
|
+
detaildb(querys: IGamsCnfgDetaildbQuerys) {
|
|
42
|
+
return this.httpRequest.post<TGams.IGamsCnfgResponse>("/gams/tcnfg/detaildb", querys, undefined);
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* 结转下一年度
|
|
46
|
+
*/
|
|
47
|
+
nextyear(querys: IGamsCnfgInsertdbQuerys, params: object) {
|
|
48
|
+
return this.httpRequest.post<TGams.IGamsCnfgResponse>("/gams/tcnfg/nextyear", querys, params);
|
|
49
|
+
}
|
|
14
50
|
}
|
|
15
51
|
|
|
16
52
|
export default CnfgRequest;
|
package/packages/gams/type.ts
CHANGED
|
@@ -1,7 +1,29 @@
|
|
|
1
|
-
export interface IGamsCnfgSelectdbQuerys{
|
|
1
|
+
export interface IGamsCnfgSelectdbQuerys {
|
|
2
|
+
sourcend: number;
|
|
3
|
+
sourceid: number;
|
|
4
|
+
unitmain: number;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export class TGamsCnfgSelectdbQuerys implements IGamsCnfgSelectdbQuerys {
|
|
8
|
+
sourcend: number = -1;
|
|
9
|
+
sourceid: number = -1;
|
|
10
|
+
unitmain: number = -1;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface IGamsCnfgInsertdbQuerys {
|
|
14
|
+
sourcend: number;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export class TGamsCnfgInsertdbQuerys implements IGamsCnfgInsertdbQuerys {
|
|
18
|
+
sourcend: number = -1;
|
|
19
|
+
}
|
|
2
20
|
|
|
21
|
+
export interface IGamsCnfgDetaildbQuerys {
|
|
22
|
+
sourcend: number;
|
|
23
|
+
sourceid: number;
|
|
3
24
|
}
|
|
4
25
|
|
|
5
|
-
export class
|
|
6
|
-
|
|
7
|
-
|
|
26
|
+
export class TGamsCnfgDetaildbQuerys implements IGamsCnfgDetaildbQuerys {
|
|
27
|
+
sourcend: number = -1;
|
|
28
|
+
sourceid: number = -1;
|
|
29
|
+
}
|