@ningboyz/apis 1.0.38 → 1.0.40

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.0.38",
3
+ "version": "1.0.40",
4
4
  "private": false,
5
5
  "description": "宁波甬政请求库",
6
6
  "author": "nbyt-syq",
@@ -71,8 +71,8 @@ class MainRequest {
71
71
  * @param params
72
72
  * @returns
73
73
  */
74
- updateit(querys: IWtuiMainRecoverWtuiQuerys, params: object) {
75
- return this.httpRequest.post<TWtui.IWtuiMainResponse[]>(`/wtui/tmain/updateit`, querys, params);
74
+ uploadit(querys: IWtuiMainRecoverWtuiQuerys, params: object) {
75
+ return this.httpRequest.post<TWtui.IWtuiMainResponse[]>(`/wtui/tmain/uploadit`, querys, params);
76
76
  }
77
77
  }
78
78
 
@@ -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;
@@ -1,6 +1,6 @@
1
1
  import type { TWtui } from "@ningboyz/types";
2
2
  import type { HttpRequest } from "../axios";
3
- import { IWtuiMainRecoverWtuiQuerys, IWtuiTodoCopywtuiQuerys, IWtuiTodoInsertdbQuerys, IWtuiTodoSelectdbQuerys, IWtuiTodoUpdatedbQuerys } from "./type";
3
+ import { IWtuiNodeRecoverWtuiQuerys, IWtuiTodoCopywtuiQuerys, IWtuiTodoInsertdbQuerys, IWtuiTodoSelectdbQuerys, IWtuiTodoUpdatedbQuerys } from "./type";
4
4
 
5
5
  class TodoRequest {
6
6
  private httpRequest: HttpRequest;
@@ -69,8 +69,8 @@ class TodoRequest {
69
69
  * @param params
70
70
  * @returns
71
71
  */
72
- updateit(querys: IWtuiMainRecoverWtuiQuerys, params: object) {
73
- return this.httpRequest.post<TWtui.IWtuiTodoResponse[]>(`/gapi/wtui/ttodo/copywtui`, querys, params);
72
+ uploadit(querys: IWtuiNodeRecoverWtuiQuerys, params: object) {
73
+ return this.httpRequest.post<TWtui.IWtuiTodoResponse[]>(`/gapi/wtui/ttodo/uploadit`, querys, params);
74
74
  }
75
75
  }
76
76
 
@@ -189,6 +189,15 @@ export class TWtuiMenuUpdatedbQuerys implements IWtuiMenuUpdatedbQuerys {
189
189
  }
190
190
 
191
191
  /** ========== node ========== */
192
+ export interface IWtuiNodeRecoverWtuiQuerys {
193
+ /** 1:覆盖,0:追加 */
194
+ override: number;
195
+ wtuimain: number;
196
+ }
197
+ export class TWtuiNodeRecoverWtuiQuerys implements IWtuiNodeRecoverWtuiQuerys {
198
+ override: number = -1;
199
+ wtuimain: number = -1;
200
+ }
192
201
  export interface IWtuiNodeAsmainlyQuerys {
193
202
  useruuid: string;
194
203
  asmobile: number;
@@ -232,10 +241,12 @@ export interface IWtuiNodeDatahideQuerys {
232
241
  0:正常;1:隐藏
233
242
  */
234
243
  datahide: number;
244
+ wtuimain: number;
235
245
  }
236
246
 
237
247
  export class TWtuiNodeDatahideQuerys implements IWtuiNodeDatahideQuerys {
238
248
  datahide: number = -1;
249
+ wtuimain: number = -1;
239
250
  }
240
251
  /** ========== todo ========== */
241
252
  export interface IWtuiTodoSelectdbQuerys {
@@ -310,6 +321,26 @@ export interface IWtuiViewDetaildbQuerys {
310
321
  export class TWtuiViewDetaildbQuerys implements IWtuiViewDetaildbQuerys {
311
322
  wtuiview: number = -1;
312
323
  }
324
+ export interface IWtuiViewParentId {
325
+ wtuimain: number;
326
+ parentid: number;
327
+ }
328
+
329
+ export class TWtuiViewParentId implements IWtuiViewParentId {
330
+ wtuimain: number = -1;
331
+ parentid: number = -1;
332
+ }
333
+ export interface IWtuiViewHidePage {
334
+ wtuimain: number;
335
+ datahide: number;
336
+ }
337
+ /*
338
+ 0:取消隐藏,1:设为隐藏
339
+ */
340
+ export class TWtuiViewHidePage implements IWtuiViewHidePage {
341
+ wtuimain: number = -1;
342
+ datahide: number = -1;
343
+ }
313
344
 
314
345
  /** ========== zone ========== */
315
346
  export interface IWtuiZoneSelectdbQuerys {
@@ -1,6 +1,6 @@
1
1
  import type { TWtui } from "@ningboyz/types";
2
2
  import type { HttpRequest } from "../axios";
3
- import { IWtuiViewDetaildbQuerys, IWtuiViewInsertdbQuerys, IWtuiViewSelectdbQuerys, IWtuiViewUpdatedbQuerys, IWtuiMainRecoverWtuiQuerys } from "./type";
3
+ import { IWtuiViewHidePage, IWtuiViewDetaildbQuerys, IWtuiViewParentId, IWtuiViewInsertdbQuerys, IWtuiViewSelectdbQuerys, IWtuiViewUpdatedbQuerys, IWtuiNodeRecoverWtuiQuerys } from "./type";
4
4
 
5
5
  class ViewRequest {
6
6
  private httpRequest: HttpRequest;
@@ -64,8 +64,26 @@ class ViewRequest {
64
64
  * @param params
65
65
  * @returns
66
66
  */
67
- updateit(querys: IWtuiMainRecoverWtuiQuerys, params: object) {
68
- return this.httpRequest.post<TWtui.IWtuiViewResponse[]>(`/wtui/tview/copywtui`, querys, params);
67
+ uploadit(querys: IWtuiNodeRecoverWtuiQuerys, params: object) {
68
+ return this.httpRequest.post<TWtui.IWtuiViewResponse[]>(`/wtui/tview/uploadit`, querys, params);
69
+ }
70
+ /**
71
+ * 批量隐藏/显示页面
72
+ * @param querys
73
+ * @param params
74
+ * @returns
75
+ */
76
+ hideUploaddb(querys: IWtuiViewHidePage, params: object) {
77
+ return this.httpRequest.post<TWtui.IWtuiViewResponse[]>(`/wtui/tview/datahide/uploaddb`, querys, params);
78
+ }
79
+ /**
80
+ * 批量设置父级
81
+ * @param querys
82
+ * @param params
83
+ * @returns
84
+ */
85
+ uploaddb(querys: IWtuiViewParentId, params: object) {
86
+ return this.httpRequest.post<TWtui.IWtuiViewResponse[]>(`/wtui/tview/parentid/uploaddb`, querys, params);
69
87
  }
70
88
  }
71
89