@ningboyz/apis 1.0.37 → 1.0.39
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 +1 -1
- package/package.json +3 -2
- package/packages/gzjg/type.ts +1 -1
- package/packages/wtui/main.ts +2 -2
- package/packages/wtui/node.ts +13 -1
- package/packages/wtui/todo.ts +2 -2
- package/packages/wtui/type.ts +10 -1
- package/packages/wtui/view.ts +2 -2
package/index.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/apis",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.39",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "宁波甬政请求库",
|
|
6
6
|
"author": "nbyt-syq",
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"main": "index.ts",
|
|
10
10
|
"types": "index.ts",
|
|
11
11
|
"scripts": {
|
|
12
|
+
"prettier": "prettier --config ./.prettierrc --write \"./**/*.{ts,tsx}\" ",
|
|
12
13
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
13
14
|
},
|
|
14
15
|
"publishConfig": {
|
|
@@ -16,7 +17,7 @@
|
|
|
16
17
|
"registry": "https://registry.npmjs.org/"
|
|
17
18
|
},
|
|
18
19
|
"dependencies": {
|
|
19
|
-
"@ningboyz/types": "^1.0.
|
|
20
|
+
"@ningboyz/types": "^1.0.38",
|
|
20
21
|
"axios": "^1.8.4"
|
|
21
22
|
},
|
|
22
23
|
"devDependencies": {}
|
package/packages/gzjg/type.ts
CHANGED
|
@@ -59,7 +59,7 @@ export interface IGzjgMainSelectdbQuerys {
|
|
|
59
59
|
unittype: number;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
export class
|
|
62
|
+
export class TGzjgMainSelectdbQuerys implements IGzjgMainSelectdbQuerys {
|
|
63
63
|
asholder: number = -1;
|
|
64
64
|
unittype: number = -1;
|
|
65
65
|
}
|
package/packages/wtui/main.ts
CHANGED
|
@@ -71,8 +71,8 @@ class MainRequest {
|
|
|
71
71
|
* @param params
|
|
72
72
|
* @returns
|
|
73
73
|
*/
|
|
74
|
-
|
|
75
|
-
return this.httpRequest.post<TWtui.IWtuiMainResponse[]>(`/wtui/tmain/
|
|
74
|
+
uploadit(querys: IWtuiMainRecoverWtuiQuerys, params: object) {
|
|
75
|
+
return this.httpRequest.post<TWtui.IWtuiMainResponse[]>(`/wtui/tmain/uploadit`, querys, params);
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
|
package/packages/wtui/node.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TWtui } from "@ningboyz/types";
|
|
2
2
|
import { HttpRequest } from "../axios";
|
|
3
|
-
import { IWtuiNodeAsmainlyQuerys, IWtuiNodeInsertdbQuerys, IWtuiNodeSelectdbQuerys, IWtuiNodeUpdatedbQuerys, IWtuiNodeDatahideQuerys } from "./type";
|
|
3
|
+
import { IWtuiNodeAsmainlyQuerys, IWtuiNodeInsertdbQuerys, IWtuiNodeSelectdbQuerys, IWtuiNodeUpdatedbQuerys, IWtuiNodeDatahideQuerys, IWtuiNodeRecoverWtuiQuerys } from "./type";
|
|
4
4
|
|
|
5
5
|
class NodeRequest {
|
|
6
6
|
private httpRequest: HttpRequest;
|
|
@@ -32,12 +32,24 @@ class NodeRequest {
|
|
|
32
32
|
updatedb(querys: IWtuiNodeUpdatedbQuerys, params: object) {
|
|
33
33
|
return this.httpRequest.post<TWtui.IWtuiNodeResponse[]>("/wtui/tnode/updatedb", querys, params);
|
|
34
34
|
}
|
|
35
|
+
|
|
35
36
|
queuesby(params: object) {
|
|
36
37
|
return this.httpRequest.post<TWtui.IWtuiNodeResponse[]>("/wtui/tnode/queuesby", undefined, params);
|
|
37
38
|
}
|
|
39
|
+
|
|
38
40
|
datahide(querys: IWtuiNodeDatahideQuerys, params: object) {
|
|
39
41
|
return this.httpRequest.post<TWtui.IWtuiNodeResponse[]>("/wtui/tnode/datahide/uploaddb", querys, params);
|
|
40
42
|
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* 恢复功能节点
|
|
46
|
+
* @param querys
|
|
47
|
+
* @param params
|
|
48
|
+
* @returns
|
|
49
|
+
*/
|
|
50
|
+
uploadit(querys: IWtuiNodeRecoverWtuiQuerys, params: object) {
|
|
51
|
+
return this.httpRequest.post<TWtui.IWtuiMainResponse[]>(`/wtui/tnode/uploadit`, querys, params);
|
|
52
|
+
}
|
|
41
53
|
}
|
|
42
54
|
|
|
43
55
|
export default NodeRequest;
|
package/packages/wtui/todo.ts
CHANGED
|
@@ -69,8 +69,8 @@ class TodoRequest {
|
|
|
69
69
|
* @param params
|
|
70
70
|
* @returns
|
|
71
71
|
*/
|
|
72
|
-
|
|
73
|
-
return this.httpRequest.post<TWtui.IWtuiTodoResponse[]>(`/gapi/wtui/ttodo/
|
|
72
|
+
uploadit(querys: IWtuiMainRecoverWtuiQuerys, params: object) {
|
|
73
|
+
return this.httpRequest.post<TWtui.IWtuiTodoResponse[]>(`/gapi/wtui/ttodo/uploadit`, querys, params);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
|
package/packages/wtui/type.ts
CHANGED
|
@@ -189,6 +189,13 @@ export class TWtuiMenuUpdatedbQuerys implements IWtuiMenuUpdatedbQuerys {
|
|
|
189
189
|
}
|
|
190
190
|
|
|
191
191
|
/** ========== node ========== */
|
|
192
|
+
export interface IWtuiNodeRecoverWtuiQuerys {
|
|
193
|
+
/** 1:覆盖,0:追加 */
|
|
194
|
+
override: number;
|
|
195
|
+
}
|
|
196
|
+
export class TWtuiNodeRecoverWtuiQuerys implements IWtuiNodeRecoverWtuiQuerys {
|
|
197
|
+
override: number = -1;
|
|
198
|
+
}
|
|
192
199
|
export interface IWtuiNodeAsmainlyQuerys {
|
|
193
200
|
useruuid: string;
|
|
194
201
|
asmobile: number;
|
|
@@ -228,7 +235,9 @@ export class TWtuiNodeUpdatedbQuerys implements IWtuiNodeUpdatedbQuerys {
|
|
|
228
235
|
wtuiroot: number = -1;
|
|
229
236
|
}
|
|
230
237
|
export interface IWtuiNodeDatahideQuerys {
|
|
231
|
-
/** 是否隐藏
|
|
238
|
+
/** 是否隐藏
|
|
239
|
+
0:正常;1:隐藏
|
|
240
|
+
*/
|
|
232
241
|
datahide: number;
|
|
233
242
|
}
|
|
234
243
|
|
package/packages/wtui/view.ts
CHANGED
|
@@ -64,8 +64,8 @@ class ViewRequest {
|
|
|
64
64
|
* @param params
|
|
65
65
|
* @returns
|
|
66
66
|
*/
|
|
67
|
-
|
|
68
|
-
return this.httpRequest.post<TWtui.IWtuiViewResponse[]>(`/wtui/tview/
|
|
67
|
+
uploadit(querys: IWtuiMainRecoverWtuiQuerys, params: object) {
|
|
68
|
+
return this.httpRequest.post<TWtui.IWtuiViewResponse[]>(`/wtui/tview/uploadit`, querys, params);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
|