@ningboyz/apis 1.1.186 → 1.1.188

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.1.186",
3
+ "version": "1.1.188",
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.186",
20
+ "@ningboyz/types": "1.1.188",
21
21
  "axios": "1.8.4"
22
22
  },
23
23
  "devDependencies": {}
@@ -41,7 +41,7 @@ class MainRequest {
41
41
  * @returns
42
42
  */
43
43
  detaildb(querys: ILoadMainDetaildbQuerys) {
44
- return this.httpRequest.post<TLoad.ILoadDataResponse[]>("/gapi/load/tmain/detaildb", querys);
44
+ return this.httpRequest.post<TLoad.ILoadMainResponse[]>("/gapi/load/tmain/detaildb", querys);
45
45
  }
46
46
 
47
47
  /**
@@ -0,0 +1,60 @@
1
+ import { TZbhd } from "@ningboyz/types";
2
+ import type { HttpRequest } from "../axios";
3
+ import { IZbhdCnfgDetaildbQuerys, IZbhdCnfgInsertdbQuerys, IZbhdCnfgSelectdbQuerys, IZbhdCnfgUpdatedbQuerys } from "./types";
4
+
5
+ class CnfgRequest {
6
+ private httpRequest: HttpRequest;
7
+ constructor(httpRequest: HttpRequest) {
8
+ this.httpRequest = httpRequest;
9
+ }
10
+
11
+ /**
12
+ * 获取额度设置列表
13
+ * @param querys
14
+ * @returns
15
+ */
16
+ selectdb(querys: IZbhdCnfgSelectdbQuerys) {
17
+ return this.httpRequest.post<TZbhd.IZbhdMainResponse[]>("/zbhd/tcnfg/selectdb", querys);
18
+ }
19
+
20
+ /**
21
+ * 新增额度设置
22
+ * @param querys
23
+ * @param params
24
+ * @returns
25
+ */
26
+ insertdb(querys: IZbhdCnfgInsertdbQuerys, params: object) {
27
+ return this.httpRequest.post<TZbhd.IZbhdMainResponse[]>("/zbhd/tcnfg/insertdb", querys, params);
28
+ }
29
+
30
+ /**
31
+ * 修改额度设置
32
+ * @param querys
33
+ * @param params
34
+ * @returns
35
+ */
36
+ updatedb(querys: IZbhdCnfgUpdatedbQuerys, params: object) {
37
+ return this.httpRequest.post<TZbhd.IZbhdMainResponse[]>("/zbhd/tcnfg/updatedb", querys, params);
38
+ }
39
+
40
+ /**
41
+ * 删除额度设置
42
+ * @param params
43
+ * @returns
44
+ */
45
+ deletedb(params: object) {
46
+ return this.httpRequest.post<TZbhd.IZbhdMainResponse[]>("/zbhd/tcnfg/deletedb", undefined, params);
47
+ }
48
+
49
+ /**
50
+ * 获取额度设置详情
51
+ * @param querys
52
+ * @param params
53
+ * @returns
54
+ */
55
+ detaildb(querys: IZbhdCnfgDetaildbQuerys, params: object) {
56
+ return this.httpRequest.post<TZbhd.IZbhdMainResponse[]>("/zbhd/tcnfg/detaildb", querys, params);
57
+ }
58
+ }
59
+
60
+ export default CnfgRequest;
@@ -1,15 +1,17 @@
1
1
  import { createRequest, IAxiosConfig } from "../axios";
2
2
  import MainRequest from "./main";
3
+ import CnfgRequest from "./cnfg";
3
4
 
4
5
  class ZbhdRequest {
5
6
  public main: MainRequest;
7
+ public cnfg: CnfgRequest;
6
8
 
7
9
  constructor(config: IAxiosConfig) {
8
10
  const request = createRequest(config);
9
11
  this.main = new MainRequest(request);
12
+ this.cnfg = new CnfgRequest(request);
10
13
  }
11
14
  }
12
15
 
13
16
  export default ZbhdRequest;
14
17
  export * from "./types";
15
-
@@ -58,3 +58,45 @@ export class TZbhdMainDetaildbQuerys implements IZbhdMainDetaildbQuerys {
58
58
  zbhdmain: number = -1;
59
59
  sourcend: number = -1;
60
60
  }
61
+
62
+ /** ========== cnfg ========== */
63
+ export interface IZbhdCnfgSelectdbQuerys {
64
+ ysbmmain: number;
65
+ ysbmonly: number;
66
+ sourcend: number;
67
+ unitmain: number;
68
+ }
69
+
70
+ export class TZbhdCnfgSelectdbQuerys implements IZbhdCnfgSelectdbQuerys {
71
+ ysbmmain: number = -1;
72
+ ysbmonly: number = -1;
73
+ sourcend: number = -1;
74
+ unitmain: number = -1;
75
+ }
76
+
77
+ export interface IZbhdCnfgInsertdbQuerys {
78
+ sourcend: number;
79
+ }
80
+
81
+ export class TZbhdCnfgInsertdbQuerys implements IZbhdCnfgInsertdbQuerys {
82
+ sourcend: number = -1;
83
+ }
84
+
85
+ export interface IZbhdCnfgUpdatedbQuerys {
86
+ sourcend: number;
87
+ }
88
+
89
+ export class TZbhdCnfgUpdatedbQuerys implements IZbhdCnfgUpdatedbQuerys {
90
+ sourcend: number = -1
91
+ }
92
+
93
+ export interface IZbhdCnfgDetaildbQuerys {
94
+ zbhdmain: number;
95
+ sourcend: number;
96
+ }
97
+
98
+ export class TZbhdCnfgDetaildbQuerys implements IZbhdCnfgDetaildbQuerys {
99
+ zbhdmain: number = -1;
100
+ sourcend: number = -1;
101
+ }
102
+