@ningboyz/apis 1.2.16 → 1.2.18

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ningboyz/apis",
3
- "version": "1.2.16",
3
+ "version": "1.2.18",
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.2.16",
20
+ "@ningboyz/types": "1.2.18",
21
21
  "axios": "1.8.4"
22
22
  },
23
23
  "devDependencies": {}
@@ -0,0 +1,23 @@
1
+ import { TYzht } from "@ningboyz/types";
2
+ import type { HttpRequest } from "../axios";
3
+ import { IYzhtBillUpdated8Querys } from "./types";
4
+
5
+
6
+ class BillRequest {
7
+ private httpRequest: HttpRequest;
8
+ constructor(httpRequest: HttpRequest) {
9
+ this.httpRequest = httpRequest;
10
+ }
11
+
12
+ /**
13
+ * 更新合同付款计划
14
+ * @param querys
15
+ * @param params
16
+ * @returns
17
+ */
18
+ updated8(querys: IYzhtBillUpdated8Querys, params: object) {
19
+ return this.httpRequest.post<TYzht.IYzhtMainResponse[]>("/gapi/yzht/tbill/updated8", querys, params);
20
+ }
21
+ }
22
+
23
+ export default BillRequest;
@@ -1,18 +1,20 @@
1
1
  import { createRequest, IAxiosConfig } from "../axios";
2
+ import BillRequest from "./bill";
2
3
  import GlpzRequest from "./glpz";
3
4
  import MainRequest from "./main";
4
5
 
5
6
  class YzhtRequest {
6
7
  public main: MainRequest;
8
+ public bill: BillRequest;
7
9
  public glpz: GlpzRequest;
8
10
 
9
11
  constructor(config: IAxiosConfig) {
10
12
  const request = createRequest(config);
11
13
  this.main = new MainRequest(request);
14
+ this.bill = new BillRequest(request);
12
15
  this.glpz = new GlpzRequest(request);
13
16
  }
14
17
  }
15
18
 
16
19
  export default YzhtRequest;
17
20
  export * from "./types";
18
-
@@ -62,3 +62,10 @@ export class TYzhtGlpzUploaddbQuerys implements IYzhtGlpzUploaddbQuerys {
62
62
  sourcend: number = -1;
63
63
  unitmain: number = -1;
64
64
  }
65
+
66
+
67
+ export interface IYzhtBillUpdated8Querys {
68
+ }
69
+
70
+ export class TYzhtBillUpdated8Querys implements IYzhtBillUpdated8Querys {
71
+ }