@ningboyz/apis 1.0.152 → 1.0.154
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/zbzd/main.ts +5 -5
- package/packages/zbzd/type.ts +9 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/apis",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.154",
|
|
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.154",
|
|
21
21
|
"axios": "1.8.4"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {}
|
package/packages/zbzd/main.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TZbzd } from "@ningboyz/types";
|
|
2
2
|
import type { HttpRequest } from "../axios";
|
|
3
|
-
import {IZbzdMainSelectdbQuerys, IZbzdMainDetaildbQuerys} from "./type";
|
|
3
|
+
import {IZbzdMainSelectdbQuerys, IZbzdMainInsertdbQuerys, IZbzdMainDetaildbQuerys} from "./type";
|
|
4
4
|
import { IParams } from "../type";
|
|
5
5
|
|
|
6
6
|
class ParaRequest {
|
|
@@ -19,15 +19,15 @@ class ParaRequest {
|
|
|
19
19
|
/**
|
|
20
20
|
* 新增预算指标
|
|
21
21
|
*/
|
|
22
|
-
insertdb(params: IParams<TZbzd.IZbzdMainResponse>) {
|
|
23
|
-
return this.httpRequest.post<TZbzd.IZbzdMainResponse[]>("/zbzd/tmain/insertdb",
|
|
22
|
+
insertdb(querys: IZbzdMainInsertdbQuerys, params: IParams<TZbzd.IZbzdMainResponse>) {
|
|
23
|
+
return this.httpRequest.post<TZbzd.IZbzdMainResponse[]>("/zbzd/tmain/insertdb", querys, params);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* 修改预算指标
|
|
28
28
|
*/
|
|
29
|
-
updatedb(params: IParams<TZbzd.IZbzdMainResponse>) {
|
|
30
|
-
return this.httpRequest.post<TZbzd.IZbzdMainResponse[]>("/zbzd/tmain/updatedb",
|
|
29
|
+
updatedb(querys: IZbzdMainInsertdbQuerys, params: IParams<TZbzd.IZbzdMainResponse>) {
|
|
30
|
+
return this.httpRequest.post<TZbzd.IZbzdMainResponse[]>("/zbzd/tmain/updatedb", querys, params);
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
|
package/packages/zbzd/type.ts
CHANGED
|
@@ -11,6 +11,15 @@ export class TZbzdMainSelectdbQuerys implements IZbzdMainSelectdbQuerys {
|
|
|
11
11
|
sourcend: number = -1
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
export interface IZbzdMainInsertdbQuerys {
|
|
15
|
+
sourcend: number;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export class TZbzdMainInsertdbQuerys implements IZbzdMainInsertdbQuerys {
|
|
19
|
+
sourcend: number = -1
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
|
|
14
23
|
export interface IZbzdMainDetaildbQuerys {
|
|
15
24
|
zbzdZdid: number;
|
|
16
25
|
}
|