@ningboyz/apis 1.6.89 → 1.6.91

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.89",
3
+ "version": "1.6.91",
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.89",
20
+ "@ningboyz/types": "1.6.91",
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";
@@ -0,0 +1,15 @@
1
+ import { createRequest, IAxiosConfig } from "../axios";
2
+ import MainRequest from "./main";
3
+
4
+ class YzcqRequest {
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 YzcqRequest;
14
+ export * from "./types";
15
+
@@ -0,0 +1,58 @@
1
+ import { TYzcq } from "@ningboyz/types";
2
+ import type { HttpRequest } from "../axios";
3
+ import { IYzcqMainDetaildbQuerys, IYzcqMainSelectdbQuerys } from "./types";
4
+
5
+ class YzcqRequest {
6
+ private httpRequest: HttpRequest;
7
+ constructor(httpRequest: HttpRequest) {
8
+ this.httpRequest = httpRequest;
9
+ }
10
+
11
+ /**
12
+ * 获取抽签列表
13
+ * @param querys
14
+ * @param params
15
+ * @returns
16
+ */
17
+ selectdb(querys: IYzcqMainSelectdbQuerys, params: object) {
18
+ return this.httpRequest.post<TYzcq.IYzcqMainResponse[]>("/gapi/yzcq/tmain/selectdb", querys, params);
19
+ }
20
+
21
+ /**
22
+ * 新增抽签
23
+ * @param params
24
+ * @returns
25
+ */
26
+ insertdb(params: object) {
27
+ return this.httpRequest.post<TYzcq.IYzcqMainResponse[]>("/gapi/yzcq/tmain/insertdb", querys, params);
28
+ }
29
+
30
+ /**
31
+ * 修改抽签
32
+ * @param params
33
+ * @returns
34
+ */
35
+ updatedb(params: object) {
36
+ return this.httpRequest.post<TYzcq.IYzcqMainResponse[]>("/gapi/yzcq/tmain/updatedb", undefined, params);
37
+ }
38
+
39
+ /**
40
+ * 删除抽签
41
+ * @param params
42
+ * @returns
43
+ */
44
+ deletedb(params: object) {
45
+ return this.httpRequest.post<TYzcq.IYzcqMainResponse[]>("/gapi/yzcq/tmain/deletedb", querys, params);
46
+ }
47
+
48
+ /**
49
+ * 获取抽签详情
50
+ * @param querys
51
+ * @returns
52
+ */
53
+ detaildb(querys: IYzcqMainDetaildbQuerys) {
54
+ return this.httpRequest.post<TYzcq.IYzcqMainResponse[]>("/gapi/yzcq/tmain/detaildb", querys);
55
+ }
56
+ }
57
+
58
+ export default YzcqRequest;
@@ -0,0 +1,18 @@
1
+ /** ========== main ========== */
2
+ export interface IYzcqMainSelectdbQuerys {
3
+ yzcqmain: number;
4
+ sourcend: number;
5
+ }
6
+
7
+ export class TYzcqMainSelectdbQuerys implements IYzcqMainSelectdbQuerys {
8
+ yzcqmain: number = -1;
9
+ sourcend: number = -1;
10
+ }
11
+
12
+ export interface IYzcqMainDetaildbQuerys {
13
+ yzcqmain: number;
14
+ }
15
+
16
+ export class TYzcqMainDetaildbQuerys implements IYzcqMainDetaildbQuerys {
17
+ yzcqmain: number = -1;
18
+ }