@ningboyz/apis 1.0.149 → 1.0.150
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/type.ts +1 -1
- package/packages/zbzd/main.ts +6 -6
- package/packages/zbzd/type.ts +10 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/apis",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.150",
|
|
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.150",
|
|
21
21
|
"axios": "1.8.4"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {}
|
package/packages/type.ts
CHANGED
|
@@ -6,4 +6,4 @@ export type IParams<T> = FormData | T
|
|
|
6
6
|
/**
|
|
7
7
|
* 空querys。为了确保以后增加querys,导致params位置后移一位不好改。可以使用这个空的querys类型
|
|
8
8
|
* */
|
|
9
|
-
export type IEmptyQuerys = {} |
|
|
9
|
+
export type IEmptyQuerys = {} | Omit<Record<string, string | number>, "r" | "whobuild" | "userindx">
|
package/packages/zbzd/main.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TZbzd } from "@ningboyz/types";
|
|
2
2
|
import type { HttpRequest } from "../axios";
|
|
3
|
-
import {IZbzdMainSelectdbQuerys, IZbzdMainDetaildbQuerys} from "./type";
|
|
4
|
-
|
|
3
|
+
import {IZbzdMainSelectdbQuerys, IZbzdMainSelectdbParams, IZbzdMainDetaildbQuerys} from "./type";
|
|
4
|
+
import { IParams } from "../type";
|
|
5
5
|
|
|
6
6
|
class ParaRequest {
|
|
7
7
|
private httpRequest: HttpRequest;
|
|
@@ -12,21 +12,21 @@ class ParaRequest {
|
|
|
12
12
|
/**
|
|
13
13
|
* 获取预算指标
|
|
14
14
|
*/
|
|
15
|
-
selectdb(querys: IZbzdMainSelectdbQuerys) {
|
|
16
|
-
return this.httpRequest.post<TZbzd.IZbzdMainResponse[]>("/zbzd/tmain/selectdb", querys,
|
|
15
|
+
selectdb(querys: IZbzdMainSelectdbQuerys, params: IZbzdMainSelectdbParams) {
|
|
16
|
+
return this.httpRequest.post<TZbzd.IZbzdMainResponse[]>("/zbzd/tmain/selectdb", querys, params);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* 新增预算指标
|
|
21
21
|
*/
|
|
22
|
-
insertdb(params:
|
|
22
|
+
insertdb(params: IParams<TZbzd.IZbzdMainResponse>) {
|
|
23
23
|
return this.httpRequest.post<TZbzd.IZbzdMainResponse[]>("/zbzd/tmain/insertdb", undefined, params);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* 修改预算指标
|
|
28
28
|
*/
|
|
29
|
-
updatedb(params:
|
|
29
|
+
updatedb(params: IParams<TZbzd.IZbzdMainResponse>) {
|
|
30
30
|
return this.httpRequest.post<TZbzd.IZbzdMainResponse[]>("/zbzd/tmain/updatedb", undefined, params);
|
|
31
31
|
}
|
|
32
32
|
|
package/packages/zbzd/type.ts
CHANGED
|
@@ -2,11 +2,21 @@
|
|
|
2
2
|
export interface IZbzdMainSelectdbQuerys {
|
|
3
3
|
withflow: number;
|
|
4
4
|
useronly: number;
|
|
5
|
+
sorucend: number;
|
|
5
6
|
}
|
|
6
7
|
|
|
7
8
|
export class TZbzdMainSelectdbQuerys implements IZbzdMainSelectdbQuerys {
|
|
8
9
|
withflow: number = 0
|
|
9
10
|
useronly: number = -1;
|
|
11
|
+
sorucend: number = -1
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface IZbzdMainSelectdbParams {
|
|
15
|
+
sorucend: number;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export class TZbzdMainSelectdbParams implements IZbzdMainSelectdbParams {
|
|
19
|
+
sorucend: number = -1
|
|
10
20
|
}
|
|
11
21
|
|
|
12
22
|
export interface IZbzdMainDetaildbQuerys {
|