@ningboyz/apis 1.1.195 → 1.1.196
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/load/cell.ts +21 -0
- package/packages/load/index.ts +3 -0
- package/packages/load/types.ts +10 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/apis",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.196",
|
|
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.1.
|
|
20
|
+
"@ningboyz/types": "1.1.196",
|
|
21
21
|
"axios": "1.8.4"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { TLoad } from "@ningboyz/types";
|
|
2
|
+
import type { HttpRequest } from "../axios";
|
|
3
|
+
import { ILoadCellSelectdcQuerys } from "./types";
|
|
4
|
+
|
|
5
|
+
class CellRequest {
|
|
6
|
+
private httpRequest: HttpRequest;
|
|
7
|
+
constructor(httpRequest: HttpRequest) {
|
|
8
|
+
this.httpRequest = httpRequest;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* 读取数据
|
|
13
|
+
* @param querys
|
|
14
|
+
* @returns
|
|
15
|
+
*/
|
|
16
|
+
selectdc(querys: ILoadCellSelectdcQuerys) {
|
|
17
|
+
return this.httpRequest.post<TLoad.ILoadCellResponse[]>("/gapi/load/tcell/selectdc", querys);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export default CellRequest;
|
package/packages/load/index.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { createRequest, IAxiosConfig } from "../axios";
|
|
2
|
+
import CellRequest from "./cell";
|
|
2
3
|
import DataRequest from "./data";
|
|
3
4
|
import MainRequest from "./main";
|
|
4
5
|
import YqdwRequest from "./yqdw";
|
|
@@ -9,6 +10,7 @@ class LoadRequest {
|
|
|
9
10
|
public yqkm: YqkmRequest;
|
|
10
11
|
public main: MainRequest;
|
|
11
12
|
public data: DataRequest;
|
|
13
|
+
public cell: CellRequest;
|
|
12
14
|
|
|
13
15
|
constructor(config: IAxiosConfig) {
|
|
14
16
|
const request = createRequest(config);
|
|
@@ -16,6 +18,7 @@ class LoadRequest {
|
|
|
16
18
|
this.yqkm = new YqkmRequest(request);
|
|
17
19
|
this.main = new MainRequest(request);
|
|
18
20
|
this.data = new DataRequest(request);
|
|
21
|
+
this.cell = new CellRequest(request);
|
|
19
22
|
}
|
|
20
23
|
}
|
|
21
24
|
|
package/packages/load/types.ts
CHANGED
|
@@ -48,3 +48,13 @@ export class TLoadDataSelectddQuerys implements ILoadDataSelectddQuerys {
|
|
|
48
48
|
gzjgmain: number = -1;
|
|
49
49
|
kjndkjqj: number = -1;
|
|
50
50
|
}
|
|
51
|
+
|
|
52
|
+
export interface ILoadCellSelectdcQuerys {
|
|
53
|
+
gzjgmain: number;
|
|
54
|
+
kjndkjqj: number;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export class TLoadCellSelectdcQuerys implements ILoadDataSelectdcQuerys {
|
|
58
|
+
gzjgmain: number = -1;
|
|
59
|
+
kjndkjqj: number = -1;
|
|
60
|
+
}
|