@ningboyz/apis 1.8.34 → 1.8.36
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/task/main.ts +9 -1
- package/packages/task/types.ts +12 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/apis",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.36",
|
|
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.8.
|
|
20
|
+
"@ningboyz/types": "1.8.36",
|
|
21
21
|
"axios": "1.8.4",
|
|
22
22
|
"lodash": "^4.17.21"
|
|
23
23
|
},
|
package/packages/task/main.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TTask } from "@ningboyz/types";
|
|
2
2
|
import type { HttpRequest } from "../axios";
|
|
3
|
-
import { ITaskMainDetaildbQuerys, ITaskMainSelectdbQuerys } from "./types";
|
|
3
|
+
import { ISelectdbWithgzzdQuerys, ITaskMainDetaildbQuerys, ITaskMainSelectdbQuerys } from "./types";
|
|
4
4
|
|
|
5
5
|
class MainRequest {
|
|
6
6
|
private httpRequest: HttpRequest;
|
|
@@ -60,6 +60,14 @@ class MainRequest {
|
|
|
60
60
|
get4task() {
|
|
61
61
|
return this.httpRequest.post<TTask.ITaskMainResponse[]>("/gapi/task/tmain/get4task", undefined, undefined);
|
|
62
62
|
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* 获取任务列表(V2)
|
|
66
|
+
*/
|
|
67
|
+
|
|
68
|
+
selectdbWithgzzd(querys: ISelectdbWithgzzdQuerys, params: object) {
|
|
69
|
+
return this.httpRequest.post<TTask.ITaskMainResponse[]>("/gapi/task/tmain/selectdb/withgzzd", querys, params);
|
|
70
|
+
}
|
|
63
71
|
}
|
|
64
72
|
|
|
65
73
|
export default MainRequest;
|
package/packages/task/types.ts
CHANGED
|
@@ -16,3 +16,15 @@ export interface ITaskMainDetaildbQuerys {
|
|
|
16
16
|
export class TTaskMainDetaildbQuerys implements ITaskMainDetaildbQuerys {
|
|
17
17
|
taskmain: number = -1;
|
|
18
18
|
}
|
|
19
|
+
|
|
20
|
+
export interface ISelectdbWithgzzdQuerys {
|
|
21
|
+
useronly: number;
|
|
22
|
+
gzjgmain: number;
|
|
23
|
+
unitmain: number;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export class TSelectdbWithgzzdQuerys implements ISelectdbWithgzzdQuerys {
|
|
27
|
+
useronly: number = -1;
|
|
28
|
+
gzjgmain: number = -1;
|
|
29
|
+
unitmain: number = -1;
|
|
30
|
+
}
|