@ningboyz/apis 1.0.0

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.
@@ -0,0 +1,59 @@
1
+ import type { TWtui } from "@ningboyz/types";
2
+ import type { HttpRequest } from "../axios";
3
+
4
+ class TViewRequest {
5
+ private httpRequest: HttpRequest;
6
+ constructor(httpRequest: HttpRequest) {
7
+ this.httpRequest = httpRequest;
8
+ }
9
+
10
+ /**
11
+ * 根据wtuimain查看页面定义
12
+ * @param params
13
+ */
14
+ selectdb(params: object) {
15
+ return this.httpRequest.post<TWtui.IViewCtrlResponse[]>("/wtui/tview/selectdb", undefined, params);
16
+ }
17
+
18
+ /**
19
+ * 添加页面定义
20
+ * @param wtuimain
21
+ * @param data
22
+ */
23
+ insertdb(wtuimain: number, data: object) {
24
+ const params = {
25
+ wtuimain
26
+ };
27
+ return this.httpRequest.post<TWtui.IWtuiViewResponse[]>(`/wtui/tview/insertdb`, data, params);
28
+ }
29
+
30
+ /**
31
+ * 删除页面定义
32
+ * @param data
33
+ */
34
+ deletedb(data: object) {
35
+ return this.httpRequest.post<TWtui.IWtuiMainResponse[]>("/wtui/tview/deletedb", data);
36
+ }
37
+
38
+ /**
39
+ * 根据wtuiview查看页面定义详情
40
+ * @param params
41
+ */
42
+ detaildb(params: object) {
43
+ return this.httpRequest.post<TWtui.IWtuiViewResponse[]>("/wtui/tview/detaildb", undefined, params);
44
+ }
45
+
46
+ /**
47
+ * 修改页面定义
48
+ * @param wtuimain
49
+ * @param data
50
+ */
51
+ updatedb(wtuimain: number, data: object) {
52
+ const params = {
53
+ wtuimain
54
+ };
55
+ return this.httpRequest.post<TWtui.IWtuiViewResponse[]>(`/wtui/tview/updatedb`, data, params);
56
+ }
57
+ }
58
+
59
+ export default TViewRequest;