@ningboyz/apis 1.4.25 → 1.4.27
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/dial.ts +21 -0
- package/packages/gams/index.ts +3 -1
- package/packages/gams/types.ts +11 -0
- package/packages/yzcg/types.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/apis",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.27",
|
|
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.4.
|
|
20
|
+
"@ningboyz/types": "1.4.27",
|
|
21
21
|
"axios": "1.8.4",
|
|
22
22
|
"lodash": "^4.17.21"
|
|
23
23
|
},
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { TGams } from "@ningboyz/types";
|
|
2
|
+
import type { HttpRequest } from "../axios";
|
|
3
|
+
import { IGamsDialGet4DialQuerys } from "./types";
|
|
4
|
+
|
|
5
|
+
class DialRequest {
|
|
6
|
+
private httpRequest: HttpRequest;
|
|
7
|
+
constructor(httpRequest: HttpRequest) {
|
|
8
|
+
this.httpRequest = httpRequest;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* 获取标准
|
|
13
|
+
* @param querys
|
|
14
|
+
* @returns
|
|
15
|
+
*/
|
|
16
|
+
get4dial(querys: IGamsDialGet4DialQuerys, data: object) {
|
|
17
|
+
return this.httpRequest.post<TGams.IGamsBillResponse[]>("/gams/tdial/get4dial", querys, data);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export default DialRequest;
|
package/packages/gams/index.ts
CHANGED
|
@@ -4,6 +4,7 @@ import ItemRequest from "./item";
|
|
|
4
4
|
import K0kmRequest from "./k0km";
|
|
5
5
|
import K8kmRequest from "./k8km";
|
|
6
6
|
import TypeRequest from "./type";
|
|
7
|
+
import DialRequest from "./dial";
|
|
7
8
|
|
|
8
9
|
class GamsRequest {
|
|
9
10
|
public cnfg: CnfgRequest;
|
|
@@ -11,7 +12,7 @@ class GamsRequest {
|
|
|
11
12
|
public item: ItemRequest;
|
|
12
13
|
public k0km: K0kmRequest;
|
|
13
14
|
public k8km: K8kmRequest;
|
|
14
|
-
|
|
15
|
+
public dial: DialRequest;
|
|
15
16
|
constructor(config: IAxiosConfig) {
|
|
16
17
|
const request = createRequest(config);
|
|
17
18
|
this.cnfg = new CnfgRequest(request);
|
|
@@ -19,6 +20,7 @@ class GamsRequest {
|
|
|
19
20
|
this.item = new ItemRequest(request);
|
|
20
21
|
this.k0km = new K0kmRequest(request);
|
|
21
22
|
this.k8km = new K8kmRequest(request);
|
|
23
|
+
this.dial = new DialRequest(request);
|
|
22
24
|
}
|
|
23
25
|
}
|
|
24
26
|
|
package/packages/gams/types.ts
CHANGED
|
@@ -257,3 +257,14 @@ export class TGamsTk8kmImportdbQuerys implements IGamsTk8kmImportdbQuerys {
|
|
|
257
257
|
sourcend: number = -1;
|
|
258
258
|
sourceid: number = -1;
|
|
259
259
|
}
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
export interface IGamsDialGet4DialQuerys{
|
|
263
|
+
sourcend: number;
|
|
264
|
+
sourceid: number;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
export class TGamsDialGet4DialQuerys implements IGamsDialGet4DialQuerys{
|
|
268
|
+
sourcend: number = -1;
|
|
269
|
+
sourceid: number = -1;
|
|
270
|
+
}
|
package/packages/yzcg/types.ts
CHANGED
|
@@ -14,11 +14,11 @@ export class TYzcgMainSelectdbQuerys implements IYzcgMainSelectdbQuerys {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
export interface IYzcgMainFinishdbQuerys {
|
|
17
|
-
|
|
17
|
+
sourcend: number;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
export class TYzcgMainFinishdbQuerys implements IYzcgMainFinishdbQuerys {
|
|
21
|
-
|
|
21
|
+
sourcend: number = -1;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
export interface IYzcgMainDetaildbQuerys {
|