@ningboyz/apis 1.2.186 → 1.2.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 +2 -2
- package/packages/hznj/index.ts +3 -0
- package/packages/hznj/main.ts +44 -0
- package/packages/hznj/type.ts +59 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/apis",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.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.2.
|
|
20
|
+
"@ningboyz/types": "1.2.188",
|
|
21
21
|
"axios": "1.8.4"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {}
|
package/packages/hznj/index.ts
CHANGED
|
@@ -10,6 +10,7 @@ import ZbczRequest from "./zbcz";
|
|
|
10
10
|
import ZbjgRequest from "./zbjg";
|
|
11
11
|
import ZblyRequest from "./zbly";
|
|
12
12
|
import ZbthRequest from "./zbth";
|
|
13
|
+
import MainRequest from "./main";
|
|
13
14
|
|
|
14
15
|
class HznjRequest {
|
|
15
16
|
public base: BaseRequest;
|
|
@@ -23,6 +24,7 @@ class HznjRequest {
|
|
|
23
24
|
public zbjg: ZbjgRequest;
|
|
24
25
|
public zbly: ZblyRequest;
|
|
25
26
|
public zbth: ZbthRequest;
|
|
27
|
+
public main: MainRequest;
|
|
26
28
|
|
|
27
29
|
constructor(config: IAxiosConfig) {
|
|
28
30
|
const request = createRequest(config);
|
|
@@ -37,6 +39,7 @@ class HznjRequest {
|
|
|
37
39
|
this.zbjg = new ZbjgRequest(request);
|
|
38
40
|
this.zbly = new ZblyRequest(request);
|
|
39
41
|
this.zbth = new ZbthRequest(request);
|
|
42
|
+
this.main = new MainRequest(request);
|
|
40
43
|
}
|
|
41
44
|
}
|
|
42
45
|
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
//#检测项目管理
|
|
2
|
+
import { THznj } from "@ningboyz/types";
|
|
3
|
+
import { HttpRequest } from "../axios";
|
|
4
|
+
import {
|
|
5
|
+
THznjMainDeletedbQuerys,
|
|
6
|
+
THznjMainDetailQuerys,
|
|
7
|
+
THznjMainFinishedQuerys,
|
|
8
|
+
THznjMainInsertdbQuerys,
|
|
9
|
+
THznjMainSelectdbQuerys,
|
|
10
|
+
THznjMainUpdatedbQuerys
|
|
11
|
+
} from "./type";
|
|
12
|
+
|
|
13
|
+
class MainRequest {
|
|
14
|
+
private httpRequest: HttpRequest;
|
|
15
|
+
constructor(httpRequest: HttpRequest) {
|
|
16
|
+
this.httpRequest = httpRequest;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
selectdb(querys: THznjMainSelectdbQuerys) {
|
|
20
|
+
return this.httpRequest.post<THznj.IHznjMainResponse[]>("/gapi/hznj/tmain/selectdb", querys, undefined);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
insertdb(querys: THznjMainFinishedQuerys, params: object) {
|
|
24
|
+
return this.httpRequest.post<THznj.IHznjMainResponse[]>("/gapi/hznj/tmain/insertdb", querys, params);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
updatedb(querys: THznjMainInsertdbQuerys, params: object) {
|
|
28
|
+
return this.httpRequest.post<THznj.IHznjMainResponse[]>("/gapi/hznj/tmain/updatedb", querys, params);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
detaildb(querys: THznjMainUpdatedbQuerys) {
|
|
32
|
+
return this.httpRequest.post<THznj.IHznjMainResponse[]>("/gapi/hznj/tmain/detaildb", querys, undefined);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
deletedb(querys: THznjMainDetailQuerys, params: object) {
|
|
36
|
+
return this.httpRequest.post<THznj.IHznjMainResponse[]>("/gapi/hznj/tmain/deletedb", querys, params);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
finished(querys: THznjMainDeletedbQuerys) {
|
|
40
|
+
return this.httpRequest.post<THznj.IHznjMainResponse[]>("/gapi/hznj/tmain/finished", querys, undefined);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export default MainRequest;
|
package/packages/hznj/type.ts
CHANGED
|
@@ -580,3 +580,62 @@ export interface IHznjZbthDeletedbQuerys {
|
|
|
580
580
|
export class THznjZbthDeletedbQuerys implements IHznjZbthDeletedbQuerys {
|
|
581
581
|
sourcend: number = -1;
|
|
582
582
|
}
|
|
583
|
+
//#base
|
|
584
|
+
export interface IHznjBaseSelectdbQuerys {
|
|
585
|
+
sourcend: number;
|
|
586
|
+
withflow: number;
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
// main
|
|
590
|
+
export interface IHznjMainSelectdbQuerys {
|
|
591
|
+
sourcend: number;
|
|
592
|
+
withflow: number;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
|
|
596
|
+
export class THznjMainSelectdbQuerys implements IHznjMainSelectdbQuerys {
|
|
597
|
+
sourcend: number = -1;
|
|
598
|
+
withflow: number = 0;
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
export interface IHznjMainFinishedQuerys {
|
|
602
|
+
sourcend: number;
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
export class THznjMainFinishedQuerys implements IHznjMainFinishedQuerys {
|
|
606
|
+
sourcend: number = -1;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
export interface IHznjMainInsertdbQuerys {
|
|
610
|
+
sourcend: number;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
export class THznjMainInsertdbQuerys implements IHznjMainInsertdbQuerys {
|
|
614
|
+
sourcend: number = -1;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
export interface IHznjMainUpdatedbQuerys {
|
|
618
|
+
sourcend: number;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
export class THznjMainUpdatedbQuerys implements IHznjMainUpdatedbQuerys {
|
|
622
|
+
sourcend: number = -1;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
export interface IHznjMainDetailQuerys {
|
|
626
|
+
sourcend: number;
|
|
627
|
+
mainindx: number;
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
export class THznjMainDetailQuerys implements IHznjMainDetailQuerys {
|
|
631
|
+
sourcend: number = -1;
|
|
632
|
+
mainindx: number = -1;
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
export interface IHznjMainDeletedbQuerys {
|
|
636
|
+
sourcend: number;
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
export class THznjMainDeletedbQuerys implements IHznjMainDeletedbQuerys {
|
|
640
|
+
sourcend: number = -1;
|
|
641
|
+
}
|