@ningboyz/apis 1.6.89 → 1.6.90
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 +2 -2
- package/packages/yzcq/index.ts +15 -0
- package/packages/yzcq/main.ts +58 -0
- package/packages/yzcq/types.ts +18 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/apis",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.90",
|
|
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.
|
|
20
|
+
"@ningboyz/types": "1.6.90",
|
|
21
21
|
"axios": "1.8.4",
|
|
22
22
|
"lodash": "^4.17.21"
|
|
23
23
|
},
|
|
@@ -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
|
+
}
|