@ningboyz/apis 1.4.27 → 1.4.29
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 +3 -0
- package/package.json +2 -2
- package/packages/hznj/main.ts +5 -5
- package/packages/hznj/type.ts +8 -0
- package/packages/index.ts +1 -0
- package/packages/talk/index.ts +14 -0
- package/packages/talk/main.ts +32 -0
- package/packages/talk/types.ts +25 -0
package/index.ts
CHANGED
|
@@ -35,6 +35,7 @@ import JapzRequest from "./packages/japz";
|
|
|
35
35
|
import HznkRequest from "./packages/hznk";
|
|
36
36
|
import HznjRequest from "./packages/hznj";
|
|
37
37
|
import VaryRequest from "./packages/vary";
|
|
38
|
+
import TalkRequest from "./packages/talk";
|
|
38
39
|
|
|
39
40
|
class Request {
|
|
40
41
|
public static core: CoreRequest;
|
|
@@ -73,6 +74,7 @@ class Request {
|
|
|
73
74
|
public static hznk: HznkRequest;
|
|
74
75
|
public static hznj: HznjRequest;
|
|
75
76
|
public static vary: VaryRequest;
|
|
77
|
+
public static talk: TalkRequest;
|
|
76
78
|
|
|
77
79
|
public static createRequest(config: IAxiosConfig) {
|
|
78
80
|
this.core = new CoreRequest(config);
|
|
@@ -111,6 +113,7 @@ class Request {
|
|
|
111
113
|
this.hznk = new HznkRequest(config);
|
|
112
114
|
this.hznj = new HznjRequest(config);
|
|
113
115
|
this.vary = new VaryRequest(config);
|
|
116
|
+
this.talk = new TalkRequest(config);
|
|
114
117
|
}
|
|
115
118
|
}
|
|
116
119
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/apis",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.29",
|
|
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.4.
|
|
20
|
+
"@ningboyz/types": "1.4.29",
|
|
21
21
|
"axios": "1.8.4",
|
|
22
22
|
"lodash": "^4.17.21"
|
|
23
23
|
},
|
package/packages/hznj/main.ts
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
//#检测项目管理
|
|
2
2
|
import { THznj } from "@ningboyz/types";
|
|
3
3
|
import { HttpRequest } from "../axios";
|
|
4
|
-
import {
|
|
5
|
-
IHznjMainDeletedbQuerys,
|
|
6
|
-
IHznjMainDetailQuerys, IHznjMainFinishedQuerys,
|
|
7
|
-
IHznjMainInsertdbQuerys, IHznjMainSelectdbQuerys, IHznjMainUpdatedbQuerys,
|
|
8
|
-
} from "./type";
|
|
4
|
+
import { IHznjMainDeletedbQuerys, IHznjMainDetailQuerys, IHznjMainFinishedQuerys, IHznjMainInsertdbQuerys, IHznjMainSelectdbQuerys, IHznjMainUpdateBaseQuerys, IHznjMainUpdatedbQuerys } from "./type";
|
|
9
5
|
|
|
10
6
|
class MainRequest {
|
|
11
7
|
private httpRequest: HttpRequest;
|
|
@@ -36,6 +32,10 @@ class MainRequest {
|
|
|
36
32
|
finished(querys: IHznjMainFinishedQuerys) {
|
|
37
33
|
return this.httpRequest.post<THznj.IHznjMainResponse[]>("/gapi/hznj/tmain/finished", querys, undefined);
|
|
38
34
|
}
|
|
35
|
+
|
|
36
|
+
updatebase(querys: IHznjMainUpdateBaseQuerys, params: object) {
|
|
37
|
+
return this.httpRequest.post<THznj.IHznjMainResponse[]>("/gapi/hznj/tmain/updatebase", querys, params);
|
|
38
|
+
}
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
export default MainRequest;
|
package/packages/hznj/type.ts
CHANGED
|
@@ -740,6 +740,14 @@ export class THznjMainFinishedQuerys implements IHznjMainFinishedQuerys {
|
|
|
740
740
|
useronly: number = -1;
|
|
741
741
|
}
|
|
742
742
|
|
|
743
|
+
export interface IHznjMainUpdateBaseQuerys {
|
|
744
|
+
sourcend: number;
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
export class THznjMainUpdateBaseQuerys implements IHznjMainUpdateBaseQuerys {
|
|
748
|
+
sourcend: number = -1;
|
|
749
|
+
}
|
|
750
|
+
|
|
743
751
|
export interface IHznjMainInsertdbQuerys {
|
|
744
752
|
sourcend: number;
|
|
745
753
|
}
|
package/packages/index.ts
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { createRequest, IAxiosConfig } from "../axios";
|
|
2
|
+
import MainRequest from "./main";
|
|
3
|
+
|
|
4
|
+
class TalkRequest {
|
|
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 TalkRequest;
|
|
14
|
+
export * from "./types";
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { HttpRequest } from "../axios";
|
|
2
|
+
import type { TTalk } from "@ningboyz/types";
|
|
3
|
+
import { ITalkMainDeletedbQuerys, ITalkMainDetaildbQuerys, ITalkMainInsertdbQuerys, ITalkMainSelectdbQuerys, ITalkMainUpdatedbQuerys } from "./types";
|
|
4
|
+
|
|
5
|
+
class MainRequest {
|
|
6
|
+
private httpRequest: HttpRequest;
|
|
7
|
+
constructor(httpRequest: HttpRequest) {
|
|
8
|
+
this.httpRequest = httpRequest;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
selectdb(querys: ITalkMainSelectdbQuerys) {
|
|
12
|
+
return this.httpRequest.post<TTalk.ITalkMainResponse[]>("/gapi/talk/tmain/selectdb", querys, undefined);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
insertds(querys: ITalkMainInsertdbQuerys, params: object) {
|
|
16
|
+
return this.httpRequest.post<TTalk.ITalkMainResponse>("/gapi/talk/tmain/insertdb", querys, params);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
updateds(querys: ITalkMainUpdatedbQuerys, params: object) {
|
|
20
|
+
return this.httpRequest.post<TTalk.ITalkMainResponse>("/gapi/talk/tmain/updatedb", querys, params);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
deleteds(querys: ITalkMainDeletedbQuerys, params: object) {
|
|
24
|
+
return this.httpRequest.post<TTalk.ITalkMainResponse>("/gapi/talk/tmain/deletedb", querys, params);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
detaildb(querys: ITalkMainDetaildbQuerys, params: object) {
|
|
28
|
+
return this.httpRequest.post<TTalk.ITalkMainResponse>("/gapi/talk/tmain/detaildb", querys, params);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export default MainRequest;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface ITalkMainSelectdbQuerys {}
|
|
2
|
+
|
|
3
|
+
export class TTalkMainSelectdbQuerys implements ITalkMainSelectdbQuerys {}
|
|
4
|
+
|
|
5
|
+
export interface ITalkMainInsertdbQuerys {}
|
|
6
|
+
|
|
7
|
+
export class TTalkMainInsertdbQuerys implements ITalkMainInsertdbQuerys {}
|
|
8
|
+
|
|
9
|
+
export interface ITalkMainUpdatedbQuerys {}
|
|
10
|
+
|
|
11
|
+
export class TTalkMainUpdatedbQuerys implements ITalkMainUpdatedbQuerys {}
|
|
12
|
+
|
|
13
|
+
export interface ITalkMainDeletedbQuerys {}
|
|
14
|
+
|
|
15
|
+
export class TTalkMainDeletedbQuerys implements ITalkMainDeletedbQuerys {}
|
|
16
|
+
|
|
17
|
+
export interface ITalkMainDetaildbQuerys {
|
|
18
|
+
/** 单据主键 */
|
|
19
|
+
talkmain: number;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export class TTalkMainDetaildbQuerys implements ITalkMainDetaildbQuerys {
|
|
23
|
+
/** 单据主键 */
|
|
24
|
+
talkmain: number = -1;
|
|
25
|
+
}
|