@ningboyz/apis 1.6.90 → 1.6.92

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
@@ -37,6 +37,7 @@ import HznjRequest from "./packages/hznj";
37
37
  import VaryRequest from "./packages/vary";
38
38
  import TalkRequest from "./packages/talk";
39
39
  import DingRequest from "./packages/ding";
40
+ import YzcqRequest from "./packages/yzcq";
40
41
 
41
42
  class Request {
42
43
  public static core: CoreRequest;
@@ -77,6 +78,7 @@ class Request {
77
78
  public static vary: VaryRequest;
78
79
  public static talk: TalkRequest;
79
80
  public static ding: DingRequest;
81
+ public static yzcq: YzcqRequest;
80
82
 
81
83
  public static createRequest(config: IAxiosConfig) {
82
84
  this.core = new CoreRequest(config);
@@ -117,6 +119,7 @@ class Request {
117
119
  this.vary = new VaryRequest(config);
118
120
  this.talk = new TalkRequest(config);
119
121
  this.ding = new DingRequest(config);
122
+ this.yzcq = new YzcqRequest(config);
120
123
  }
121
124
  }
122
125
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ningboyz/apis",
3
- "version": "1.6.90",
3
+ "version": "1.6.92",
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.6.90",
20
+ "@ningboyz/types": "1.6.92",
21
21
  "axios": "1.8.4",
22
22
  "lodash": "^4.17.21"
23
23
  },
package/packages/index.ts CHANGED
@@ -35,3 +35,4 @@ export * from "./yzht";
35
35
  export * from "./yzpz";
36
36
  export * from "./zbhd";
37
37
  export * from "./zbzd";
38
+ export * from "./yzcq";
@@ -1,6 +1,6 @@
1
1
  import { TYzcq } from "@ningboyz/types";
2
2
  import type { HttpRequest } from "../axios";
3
- import { IYzcqMainDetaildbQuerys, IYzcqMainSelectdbQuerys } from "./types";
3
+ import { IYzcqMainDeletedbQuerys, IYzcqMainDetaildbQuerys, IYzcqMainInsertdbQuerys, IYzcqMainSelectdbQuerys, IYzcqMainUpdatedbQuerys } from "./types";
4
4
 
5
5
  class YzcqRequest {
6
6
  private httpRequest: HttpRequest;
@@ -23,7 +23,7 @@ class YzcqRequest {
23
23
  * @param params
24
24
  * @returns
25
25
  */
26
- insertdb(params: object) {
26
+ insertdb(querys: IYzcqMainInsertdbQuerys, params: object) {
27
27
  return this.httpRequest.post<TYzcq.IYzcqMainResponse[]>("/gapi/yzcq/tmain/insertdb", querys, params);
28
28
  }
29
29
 
@@ -32,8 +32,8 @@ class YzcqRequest {
32
32
  * @param params
33
33
  * @returns
34
34
  */
35
- updatedb(params: object) {
36
- return this.httpRequest.post<TYzcq.IYzcqMainResponse[]>("/gapi/yzcq/tmain/updatedb", undefined, params);
35
+ updatedb(querys: IYzcqMainUpdatedbQuerys, params: object) {
36
+ return this.httpRequest.post<TYzcq.IYzcqMainResponse[]>("/gapi/yzcq/tmain/updatedb", querys, params);
37
37
  }
38
38
 
39
39
  /**
@@ -41,7 +41,7 @@ class YzcqRequest {
41
41
  * @param params
42
42
  * @returns
43
43
  */
44
- deletedb(params: object) {
44
+ deletedb(querys: IYzcqMainDeletedbQuerys, params: object) {
45
45
  return this.httpRequest.post<TYzcq.IYzcqMainResponse[]>("/gapi/yzcq/tmain/deletedb", querys, params);
46
46
  }
47
47
 
@@ -50,8 +50,8 @@ class YzcqRequest {
50
50
  * @param querys
51
51
  * @returns
52
52
  */
53
- detaildb(querys: IYzcqMainDetaildbQuerys) {
54
- return this.httpRequest.post<TYzcq.IYzcqMainResponse[]>("/gapi/yzcq/tmain/detaildb", querys);
53
+ detaildb(querys: IYzcqMainDetaildbQuerys, params: object) {
54
+ return this.httpRequest.post<TYzcq.IYzcqMainResponse[]>("/gapi/yzcq/tmain/detaildb", querys, params);
55
55
  }
56
56
  }
57
57
 
@@ -15,4 +15,16 @@ export interface IYzcqMainDetaildbQuerys {
15
15
 
16
16
  export class TYzcqMainDetaildbQuerys implements IYzcqMainDetaildbQuerys {
17
17
  yzcqmain: number = -1;
18
- }
18
+ }
19
+
20
+ export interface IYzcqMainInsertdbQuerys {}
21
+
22
+ export class TYzcqMainInsertdbQuerys implements IYzcqMainInsertdbQuerys {}
23
+
24
+ export interface IYzcqMainUpdatedbQuerys {}
25
+
26
+ export class TYzcqMainUpdatedbQuerys implements IYzcqMainUpdatedbQuerys {}
27
+
28
+ export interface IYzcqMainDeletedbQuerys {}
29
+
30
+ export class TYzcqMainDeletedbQuerys implements IYzcqMainDeletedbQuerys {}