@ningboyz/apis 1.0.38 → 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/package.json +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 +7 -0
- package/packages/wtui/view.ts +2 -2
package/package.json
CHANGED
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;
|
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
|
|