@ningboyz/apis 1.1.55 → 1.1.57
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/apis",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.57",
|
|
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.1.
|
|
20
|
+
"@ningboyz/types": "1.1.57",
|
|
21
21
|
"axios": "1.8.4"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {}
|
package/packages/core/part.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TCore } from "@ningboyz/types";
|
|
2
2
|
import type { HttpRequest } from "../axios";
|
|
3
|
-
import { ICorePartDetaildbQuerys,
|
|
3
|
+
import { ICorePartDetaildbQuerys, ICorePartSelectdbQuerys } from "./types";
|
|
4
4
|
|
|
5
5
|
class PartRequest {
|
|
6
6
|
private httpRequest: HttpRequest;
|
|
@@ -54,8 +54,8 @@ class PartRequest {
|
|
|
54
54
|
* @param querys
|
|
55
55
|
* @returns
|
|
56
56
|
*/
|
|
57
|
-
selectdb1(
|
|
58
|
-
return this.httpRequest.post<TCore.IPartResponse[]>("/core/tpart/selectdb",
|
|
57
|
+
selectdb1() {
|
|
58
|
+
return this.httpRequest.post<TCore.IPartResponse[]>("/core/tpart/selectdb", undefined, undefined);
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
|
package/packages/core/types.ts
CHANGED
|
@@ -28,12 +28,6 @@ export interface ICoreDeptInsertdbQuerys {
|
|
|
28
28
|
autocode: number;
|
|
29
29
|
sysclasc: number;
|
|
30
30
|
}
|
|
31
|
-
export interface ICorePartSelectdb1Querys {
|
|
32
|
-
userindx: number;
|
|
33
|
-
}
|
|
34
|
-
export class TCorePartSelectdb1Querys implements ICorePartSelectdb1Querys {
|
|
35
|
-
userindx: number = -1
|
|
36
|
-
}
|
|
37
31
|
|
|
38
32
|
export class TCoreDeptInsertdbQuerys implements ICoreDeptInsertdbQuerys {
|
|
39
33
|
unitmain: number = -1;
|
package/packages/gztb/main.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TGztb } from "@ningboyz/types";
|
|
2
2
|
import type { HttpRequest } from "../axios";
|
|
3
|
-
import { IGztbMainSelectdbQuerys, IGztbMainDetaildbQuerys, IGztbMainInsertdbQuerys
|
|
3
|
+
import { IGztbMainSelectdbQuerys, IGztbMainDetaildbQuerys, IGztbMainInsertdbQuerys } from "./type";
|
|
4
4
|
|
|
5
5
|
class MainRequest {
|
|
6
6
|
private httpRequest: HttpRequest;
|
|
@@ -14,16 +14,16 @@ class MainRequest {
|
|
|
14
14
|
detaildb(querys: IGztbMainDetaildbQuerys) {
|
|
15
15
|
return this.httpRequest.post<TGztb.IGztbMainResponse[]>("/gapi/gztb/tmain/detaildb", querys, undefined);
|
|
16
16
|
}
|
|
17
|
-
insertdb(querys: IGztbMainInsertdbQuerys) {
|
|
18
|
-
return this.httpRequest.post<TGztb.IGztbMainResponse[]>("/gapi/gztb/tmain/insertdb", querys,
|
|
17
|
+
insertdb(querys: IGztbMainInsertdbQuerys, params: TGztb.IGztbMainResponse[]) {
|
|
18
|
+
return this.httpRequest.post<TGztb.IGztbMainResponse[]>("/gapi/gztb/tmain/insertdb", querys, params);
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* 检查是否重复发布
|
|
22
22
|
* @param querys
|
|
23
23
|
* @returns
|
|
24
24
|
*/
|
|
25
|
-
chkexist(
|
|
26
|
-
return this.httpRequest.post<TGztb.IGztbMainResponse[]>("/gapi/gztb/tmain/chkexist",
|
|
25
|
+
chkexist( params: TGztb.IGztbMainResponse[]) {
|
|
26
|
+
return this.httpRequest.post<TGztb.IGztbMainResponse[]>("/gapi/gztb/tmain/chkexist", undefined, params);
|
|
27
27
|
}
|
|
28
28
|
deletedb(params: TGztb.IGztbMainResponse[]) {
|
|
29
29
|
return this.httpRequest.post<TGztb.IGztbMainResponse[]>("/gapi/gztb/tmain/deletedb", undefined, params);
|
package/packages/gztb/type.ts
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
export interface IGztbMainSelectdbQuerys {
|
|
2
2
|
taskmain: number;
|
|
3
|
+
sourcend: number;
|
|
4
|
+
sourceqj: number;
|
|
5
|
+
useronly:number;
|
|
3
6
|
}
|
|
4
7
|
|
|
5
8
|
export class TGztbMainSelectdbQuerys implements IGztbMainSelectdbQuerys {
|
|
6
9
|
taskmain: number = -1;
|
|
10
|
+
sourcend: number = -1;
|
|
11
|
+
sourceqj: number = -1;
|
|
12
|
+
useronly: number = -1;
|
|
7
13
|
}
|
|
8
14
|
export interface IGztbMainDetaildbQuerys {
|
|
9
15
|
gztbmain: number;
|
|
@@ -13,17 +19,9 @@ export class TGztbMainDetaildbQuerys implements IGztbMainDetaildbQuerys {
|
|
|
13
19
|
}
|
|
14
20
|
|
|
15
21
|
export interface IGztbMainInsertdbQuerys {
|
|
16
|
-
userindx: number;
|
|
17
22
|
menuuuid:string
|
|
18
23
|
}
|
|
19
24
|
export class TGztbMainInsertdbQuerys implements IGztbMainInsertdbQuerys {
|
|
20
|
-
userindx: number = -1;
|
|
21
25
|
menuuuid: string = "";
|
|
22
26
|
}
|
|
23
|
-
export interface IGztbMainChkexistQuerys {
|
|
24
|
-
userindx: number;
|
|
25
|
-
}
|
|
26
|
-
export class TGztbMainChkexistQuerys implements IGztbMainChkexistQuerys {
|
|
27
|
-
userindx: number = -1;
|
|
28
|
-
}
|
|
29
27
|
|