@ningboyz/apis 1.0.148 → 1.0.149

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/index.ts CHANGED
@@ -21,6 +21,7 @@ import YzcgRequest from "./packages/yzcg";
21
21
  import MyoaRequest from "./packages/myoa";
22
22
  import CronRequest from "./packages/cron";
23
23
  import ZbysRequest from "./packages/zbys";
24
+ import ZbzdRequest from "./packages/zbzd";
24
25
  import { IAxiosConfig } from "./packages/axios";
25
26
 
26
27
  class Request {
@@ -47,6 +48,7 @@ class Request {
47
48
  public static myoa: MyoaRequest;
48
49
  public static cron: CronRequest;
49
50
  public static zbys: ZbysRequest;
51
+ public static zbzd: ZbzdRequest;
50
52
 
51
53
  public static createRequest(config: IAxiosConfig) {
52
54
  this.zbys = new ZbysRequest(config);
@@ -72,6 +74,7 @@ class Request {
72
74
  this.yzcg = new YzcgRequest(config);
73
75
  this.myoa = new MyoaRequest(config);
74
76
  this.cron = new CronRequest(config);
77
+ this.zbzd = new ZbzdRequest(config);
75
78
  }
76
79
  }
77
80
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ningboyz/apis",
3
- "version": "1.0.148",
3
+ "version": "1.0.149",
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.0.148",
20
+ "@ningboyz/types": "1.0.149",
21
21
  "axios": "1.8.4"
22
22
  },
23
23
  "devDependencies": {}
package/packages/index.ts CHANGED
@@ -20,3 +20,4 @@ export * from "./elem";
20
20
  export * from "./yzcg";
21
21
  export * from "./myoa";
22
22
  export * from "./cron";
23
+ export * from "./zbzd";
@@ -85,8 +85,8 @@ class WithCardRequest {
85
85
  /**
86
86
  * 公物仓入仓/领用终审判断已
87
87
  */
88
- chkexist(querys: IEmptyQuerys, params: IParams<TMyoa.IMyoaMainResponse>) {
89
- return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/withcard/chkexist", querys, params);
88
+ chkexist(querys: IEmptyQuerys, params: IParams<TMyoa.IMyoaMainResponse[]>) {
89
+ return this.httpRequest.post<TCore.ICoreValidResponse[]>("/gapi/myoa/tmain/withcard/chkexist", querys, params);
90
90
  }
91
91
 
92
92
  /**
@@ -1,6 +1,6 @@
1
1
  import { TYzcg } from "@ningboyz/types";
2
2
  import type { HttpRequest } from "../axios";
3
- import {TYzcgMainDetaildbQuerys, IYzcgMainSelectdbQuerys} from "./type";
3
+ import {IYzcgMainDetaildbQuerys, IYzcgMainSelectdbQuerys} from "./type";
4
4
 
5
5
 
6
6
  class ParaRequest {
@@ -41,7 +41,7 @@ class ParaRequest {
41
41
  /**
42
42
  * 获取采购申请详情
43
43
  */
44
- detaildb(querys: TYzcgMainDetaildbQuerys, params: object) {
44
+ detaildb(querys: IYzcgMainDetaildbQuerys, params: object) {
45
45
  return this.httpRequest.post<TYzcg.IYzcgMainResponse[]>("/gapi/yzcg/tmain/detaildb", querys, params);
46
46
  }
47
47
  }
@@ -0,0 +1,14 @@
1
+ import { createRequest, IAxiosConfig } from "../axios";
2
+ import MainRequest from "./main";
3
+
4
+ class ZbzdRequest {
5
+ public main: MainRequest;
6
+
7
+ constructor(config: IAxiosConfig) {
8
+ const request = createRequest(config);
9
+ this.main = new MainRequest(request);
10
+ }
11
+ }
12
+
13
+ export default ZbzdRequest;
14
+ export * from "./type"
@@ -0,0 +1,49 @@
1
+ import { TZbzd } from "@ningboyz/types";
2
+ import type { HttpRequest } from "../axios";
3
+ import {IZbzdMainSelectdbQuerys, IZbzdMainDetaildbQuerys} from "./type";
4
+
5
+
6
+ class ParaRequest {
7
+ private httpRequest: HttpRequest;
8
+ constructor(httpRequest: HttpRequest) {
9
+ this.httpRequest = httpRequest;
10
+ }
11
+
12
+ /**
13
+ * 获取预算指标
14
+ */
15
+ selectdb(querys: IZbzdMainSelectdbQuerys) {
16
+ return this.httpRequest.post<TZbzd.IZbzdMainResponse[]>("/zbzd/tmain/selectdb", querys, undefined);
17
+ }
18
+
19
+ /**
20
+ * 新增预算指标
21
+ */
22
+ insertdb(params: object) {
23
+ return this.httpRequest.post<TZbzd.IZbzdMainResponse[]>("/zbzd/tmain/insertdb", undefined, params);
24
+ }
25
+
26
+ /**
27
+ * 修改预算指标
28
+ */
29
+ updatedb(params: object) {
30
+ return this.httpRequest.post<TZbzd.IZbzdMainResponse[]>("/zbzd/tmain/updatedb", undefined, params);
31
+ }
32
+
33
+
34
+ /**
35
+ * 删除预算指标
36
+ */
37
+ deletedb(params: object) {
38
+ return this.httpRequest.post<TZbzd.IZbzdMainResponse[]>("/zbzd/tmain/deletedb", undefined, params);
39
+ }
40
+
41
+ /**
42
+ * 获取预算指标
43
+ */
44
+ detaildb(querys: IZbzdMainDetaildbQuerys, params: object) {
45
+ return this.httpRequest.post<TZbzd.IZbzdMainResponse[]>("/zbzd/tmain/detaildb", querys, params);
46
+ }
47
+ }
48
+
49
+ export default ParaRequest;
@@ -0,0 +1,19 @@
1
+ /** ========== main ========== */
2
+ export interface IZbzdMainSelectdbQuerys {
3
+ withflow: number;
4
+ useronly: number;
5
+ }
6
+
7
+ export class TZbzdMainSelectdbQuerys implements IZbzdMainSelectdbQuerys {
8
+ withflow: number = 0
9
+ useronly: number = -1;
10
+ }
11
+
12
+ export interface IZbzdMainDetaildbQuerys {
13
+ zbzdZdid: number;
14
+ }
15
+
16
+ export class TZbzdMainDetaildbQuerys implements IZbzdMainDetaildbQuerys {
17
+ zbzdZdid: number = -1;
18
+ }
19
+