@ningboyz/apis 1.0.16 → 1.0.18

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.
Files changed (107) hide show
  1. package/index.ts +20 -21
  2. package/package.json +1 -1
  3. package/{src → packages}/antv/cnfg.ts +13 -18
  4. package/{src → packages}/antv/index.ts +1 -0
  5. package/{src → packages}/antv/main.ts +14 -22
  6. package/{src → packages}/antv/para.ts +11 -17
  7. package/packages/antv/type.ts +56 -0
  8. package/{src → packages}/axios.ts +25 -25
  9. package/{src → packages}/card/gblb.ts +38 -43
  10. package/{src → packages}/card/index.ts +1 -0
  11. package/packages/card/main.ts +210 -0
  12. package/packages/card/p4pz.ts +93 -0
  13. package/packages/card/type.ts +570 -0
  14. package/{src → packages}/card/zcbd.ts +33 -46
  15. package/{src → packages}/card/zccf.ts +34 -50
  16. package/{src → packages}/card/zccz.ts +39 -46
  17. package/packages/card/zcdb.ts +113 -0
  18. package/{src → packages}/card/zclb.ts +28 -29
  19. package/{src → packages}/card/zczj.ts +5 -10
  20. package/{src → packages}/card/zczjProp.ts +5 -12
  21. package/{src → packages}/cnfg/main.ts +9 -6
  22. package/{src → packages}/core/dept.ts +35 -52
  23. package/packages/core/dict.ts +61 -0
  24. package/{src → packages}/core/index.ts +2 -1
  25. package/packages/core/laid.ts +75 -0
  26. package/{src → packages}/core/part.ts +18 -22
  27. package/{src → packages}/core/path.ts +14 -24
  28. package/{src → packages}/core/sysbilltype.ts +5 -10
  29. package/{src → packages}/core/sysclas.ts +3 -7
  30. package/{src → packages}/core/sysmenu.ts +39 -26
  31. package/{src/core/tsystravel.ts → packages/core/systravel.ts} +13 -20
  32. package/{src → packages}/core/type.ts +13 -15
  33. package/packages/core/types.ts +451 -0
  34. package/{src → packages}/core/unit.ts +20 -34
  35. package/packages/core/user.ts +294 -0
  36. package/{src → packages}/expd/index.ts +1 -0
  37. package/{src → packages}/expd/main.ts +3 -5
  38. package/packages/expd/type.ts +8 -0
  39. package/packages/flow/type.ts +0 -0
  40. package/{src → packages}/gzjg/gzlm.ts +10 -2
  41. package/{src → packages}/gzjg/main.ts +8 -0
  42. package/packages/wtui/ctrl.ts +45 -0
  43. package/{src → packages}/wtui/form.ts +20 -33
  44. package/{src → packages}/wtui/item.ts +18 -32
  45. package/packages/wtui/main.ts +69 -0
  46. package/packages/wtui/menu.ts +37 -0
  47. package/packages/wtui/node.ts +37 -0
  48. package/packages/wtui/todo.ts +60 -0
  49. package/packages/wtui/type.ts +327 -0
  50. package/packages/wtui/user.ts +39 -0
  51. package/{src → packages}/wtui/view.ts +25 -28
  52. package/{src → packages}/wtui/zone.ts +11 -19
  53. package/src/card/main.ts +0 -234
  54. package/src/card/p4pz.ts +0 -145
  55. package/src/card/zcdb.ts +0 -141
  56. package/src/core/dict.ts +0 -77
  57. package/src/core/laid.ts +0 -96
  58. package/src/core/user.ts +0 -311
  59. package/src/wtui/ctrl.ts +0 -43
  60. package/src/wtui/main.ts +0 -65
  61. package/src/wtui/menu.ts +0 -44
  62. package/src/wtui/node.ts +0 -66
  63. package/src/wtui/todo.ts +0 -50
  64. package/src/wtui/user.ts +0 -33
  65. /package/{src → packages}/card/form.ts +0 -0
  66. /package/{src → packages}/cnfg/index.ts +0 -0
  67. /package/{src → packages}/core/sysenvr.ts +0 -0
  68. /package/{src → packages}/core/syskjnd.ts +0 -0
  69. /package/{src → packages}/flow/duty.ts +0 -0
  70. /package/{src → packages}/flow/flow.ts +0 -0
  71. /package/{src → packages}/flow/index.ts +0 -0
  72. /package/{src → packages}/flow/main.ts +0 -0
  73. /package/{src → packages}/flow/node.ts +0 -0
  74. /package/{src → packages}/gams/cnfg.ts +0 -0
  75. /package/{src → packages}/gams/index.ts +0 -0
  76. /package/{src → packages}/grow/grow.ts +0 -0
  77. /package/{src → packages}/grow/index.ts +0 -0
  78. /package/{src → packages}/gzjg/index.ts +0 -0
  79. /package/{src → packages}/gzjg/types.ts +0 -0
  80. /package/{src → packages}/gztb/index.ts +0 -0
  81. /package/{src → packages}/gztb/main.ts +0 -0
  82. /package/{src → packages}/load/index.ts +0 -0
  83. /package/{src → packages}/load/yqdw.ts +0 -0
  84. /package/{src → packages}/load/yqkm.ts +0 -0
  85. /package/{src → packages}/noti/index.ts +0 -0
  86. /package/{src → packages}/noti/main.ts +0 -0
  87. /package/{src → packages}/ocri/index.ts +0 -0
  88. /package/{src → packages}/ocri/path.ts +0 -0
  89. /package/{src → packages}/pzpt/cnfg.ts +0 -0
  90. /package/{src → packages}/pzpt/index.ts +0 -0
  91. /package/{src → packages}/pzpt/item.ts +0 -0
  92. /package/{src → packages}/pzpt/k0km.ts +0 -0
  93. /package/{src → packages}/pzpt/k8km.ts +0 -0
  94. /package/{src → packages}/pzpt/kbkm.ts +0 -0
  95. /package/{src → packages}/pzpt/type.ts +0 -0
  96. /package/{src → packages}/pzpt/yqkb.ts +0 -0
  97. /package/{src → packages}/pzpt/yqkm.ts +0 -0
  98. /package/{src → packages}/tabl/index.ts +0 -0
  99. /package/{src → packages}/tabl/main.ts +0 -0
  100. /package/{src → packages}/task/index.ts +0 -0
  101. /package/{src → packages}/task/main.ts +0 -0
  102. /package/{src → packages}/wldy/data.ts +0 -0
  103. /package/{src → packages}/wldy/index.ts +0 -0
  104. /package/{src → packages}/wldy/item.ts +0 -0
  105. /package/{src → packages}/wldy/page.ts +0 -0
  106. /package/{src → packages}/wtui/envr.ts +0 -0
  107. /package/{src → packages}/wtui/index.ts +0 -0
@@ -1,5 +1,6 @@
1
1
  import type { TCore } from "@ningboyz/types";
2
2
  import type { HttpRequest } from "../axios";
3
+ import { ICoreDeptDeletedbQuerys, ICoreDeptDetaildbQuerys, ICoreDeptInsertdbQuerys, ICoreDeptSelectdbQuerys, ICoreDeptUpdatedbQuerys, ICoreDeptUploadd2Querys, ICoreDeptUploadd3Querys } from "./types";
3
4
 
4
5
  class DeptRequest {
5
6
  private httpRequest: HttpRequest;
@@ -16,95 +17,77 @@ class DeptRequest {
16
17
 
17
18
  /**
18
19
  * 根据单位获取对应的部门
20
+ * @param querys
21
+ * @returns
19
22
  */
20
- selectdb(unitmain: number, datahide: number, get4unit: number, queuesby: string, sysclasc: number) {
21
- const params = {
22
- unitmain,
23
- datahide,
24
- get4unit,
25
- queuesby,
26
- sysclasc
27
- };
28
- return this.httpRequest.post<TCore.IDeptResponse[]>("/core/tdept/selectdb", undefined, params);
23
+ selectdb(querys: ICoreDeptSelectdbQuerys) {
24
+ return this.httpRequest.post<TCore.IDeptResponse[]>("/core/tdept/selectdb", querys, undefined);
29
25
  }
30
26
 
31
27
  /**
32
28
  * 获取部门详情
33
29
  */
34
- detaildb(deptmain: number) {
35
- const params = {
36
- deptmain
37
- };
38
- return this.httpRequest.post<TCore.IDeptResponse[]>("/core/tdept/detaildb", undefined, params);
30
+ detaildb(querys: ICoreDeptDetaildbQuerys) {
31
+ return this.httpRequest.post<TCore.IDeptResponse[]>("/core/tdept/detaildb", querys, undefined);
39
32
  }
40
33
 
41
34
  /**
42
35
  * 新增部门
36
+ * @param querys
37
+ * @param params
38
+ * @returns
43
39
  */
44
- insertdb(unitmain: number, autocode: number, formData: FormData, sysclasc: number) {
45
- const params = {
46
- unitmain,
47
- autocode,
48
- sysclasc
49
- };
50
- return this.httpRequest.post<TCore.IDeptResponse[]>("/core/tdept/insertdb", formData, params);
40
+ insertdb(querys: ICoreDeptInsertdbQuerys, params: object) {
41
+ return this.httpRequest.post<TCore.IDeptResponse[]>("/core/tdept/insertdb", querys, params);
51
42
  }
52
43
 
53
44
  /**
54
45
  * 新增部门
46
+ * @param querys
47
+ * @param params
48
+ * @returns
55
49
  */
56
- updatedb(unitmain: number, formData: FormData, autocode: number) {
57
- const params = {
58
- unitmain,
59
- autocode
60
- };
61
- return this.httpRequest.post<TCore.IDeptResponse[]>("/core/tdept/updatedb", formData, params);
50
+ updatedb(querys: ICoreDeptUpdatedbQuerys, params: object) {
51
+ return this.httpRequest.post<TCore.IDeptResponse[]>("/core/tdept/updatedb", querys, params);
62
52
  }
63
53
 
64
54
  /**
65
55
  * 删除部门
56
+ * @param querys
57
+ * @param params
58
+ * @returns
66
59
  */
67
- deletedb(unitmain: number, formData: FormData) {
68
- const params = {
69
- unitmain
70
- };
71
- return this.httpRequest.post<TCore.IDeptResponse[]>("/core/tdept/deletedb", formData, params);
60
+ deletedb(querys: ICoreDeptDeletedbQuerys, params: object) {
61
+ return this.httpRequest.post<TCore.IDeptResponse[]>("/core/tdept/deletedb", querys, params);
72
62
  }
73
63
 
74
64
  /**
75
65
  * 判断使用部门是否关联资产卡片
76
- * @param data
66
+ * @param params
77
67
  */
78
- judgedb(data: object) {
79
- return this.httpRequest.post<TCore.ILaidResponse[]>("/core/tdept/judgedb", data, undefined);
68
+ judgedb(params: object) {
69
+ return this.httpRequest.post<TCore.ILaidResponse[]>("/core/tdept/judgedb", undefined, params);
80
70
  }
81
71
 
82
72
  /**
83
73
  * 批量新增使用部门并建立树型
84
- * @param unitmain
85
- * @param data
86
- * @param sysclasc
74
+ * @param querys
75
+ * @param params
76
+ * @returns
87
77
  */
88
- uploadd2(unitmain: number, data: object, sysclasc: number) {
89
- const params = {
90
- unitmain,
91
- sysclasc
92
- };
93
- return this.httpRequest.post<TCore.ILaidResponse[]>("/core/tdept/uploadd2", data, params);
78
+ uploadd2(querys: ICoreDeptUploadd2Querys, params: object) {
79
+ return this.httpRequest.post<TCore.ILaidResponse[]>("/core/tdept/uploadd2", querys, params);
94
80
  }
95
81
 
96
82
  /**
97
83
  * 卡片生成的时候,批量补全
98
84
  * 批量新增使用部门并建立树型
99
- * @param unitmain
100
- * @param data
101
- * @param sysclasc
85
+ * @param querys
86
+ * @param params
87
+ * @returns
102
88
  */
103
- uploadd3(data: object, sysclasc: number) {
104
- const params = {
105
- sysclasc
106
- };
107
- return this.httpRequest.post<TCore.ILaidResponse[]>("/core/tdept/uploadd3", data, params);
89
+ uploadd3(querys: ICoreDeptUploadd3Querys, params: object) {
90
+ return this.httpRequest.post<TCore.ILaidResponse[]>("/core/tdept/uploadd3", querys, params);
108
91
  }
109
92
  }
110
93
 
@@ -0,0 +1,61 @@
1
+ import type { TCore } from "@ningboyz/types";
2
+ import type { HttpRequest } from "../axios";
3
+ import { ICoreDictDetaildbQuerys, ICoreDictSelectdbQuerys } from "./types";
4
+
5
+ class DictRequest {
6
+ private httpRequest: HttpRequest;
7
+ constructor(httpRequest: HttpRequest) {
8
+ this.httpRequest = httpRequest;
9
+ }
10
+
11
+ /**
12
+ * 获取字典列表
13
+ * @param querys
14
+ * @returns
15
+ */
16
+ selectdb(querys: ICoreDictSelectdbQuerys) {
17
+ return this.httpRequest.post<TCore.IDictResponse[]>("/core/tdict/selectdb", querys, undefined);
18
+ }
19
+
20
+ /**
21
+ * 删除字典信息
22
+ * @param params
23
+ */
24
+ deletedb(params: object) {
25
+ return this.httpRequest.post<TCore.IDictResponse[]>("/core/tdict/deletedb", undefined, params);
26
+ }
27
+
28
+ /**
29
+ * 新增字典信息
30
+ * @param params
31
+ */
32
+ insertdb(params: object) {
33
+ return this.httpRequest.post<TCore.IDictResponse[]>("/core/tdict/insertdb", undefined, params);
34
+ }
35
+
36
+ /**
37
+ * 更新字典信息
38
+ * @param params
39
+ */
40
+ updatedb(params: object) {
41
+ return this.httpRequest.post<TCore.IDictResponse[]>("/core/tdict/updatedb", undefined, params);
42
+ }
43
+
44
+ /**
45
+ * 更新字典信息
46
+ * @param dictmain
47
+ */
48
+ detaildb(querys: ICoreDictDetaildbQuerys) {
49
+ return this.httpRequest.post<TCore.IDictResponse[]>("/core/tdict/detaildb", querys, undefined);
50
+ }
51
+
52
+ /**
53
+ * 按字典类型
54
+ * @param params
55
+ */
56
+ selectdy(params: object) {
57
+ return this.httpRequest.post<TCore.IDictResponse[]>("/core/tdict/selectdy", undefined, params);
58
+ }
59
+ }
60
+
61
+ export default DictRequest;
@@ -12,7 +12,8 @@ import DeptRequest from "./dept";
12
12
  import PathRequest from "./path";
13
13
  import SyskjndRequest from "./syskjnd";
14
14
  import LaidRequest from "./laid";
15
- import SysTravelRequest from "./tsystravel";
15
+ import SysTravelRequest from "./systravel";
16
+ export * from "./types";
16
17
 
17
18
  class CoreRequest {
18
19
  public type: TypeRequest;
@@ -0,0 +1,75 @@
1
+ import type { TCore } from "@ningboyz/types";
2
+ import type { HttpRequest } from "../axios";
3
+ import { ICoreLaidInsertdbQuerys, ICoreLaidSelectdbQuerys, ICoreLaidUpdatedbQuerys, ICoreLaidUploadd3Querys, ICoreLaidUploadd4Querys } from "./types";
4
+
5
+ class LaidRequest {
6
+ private httpRequest: HttpRequest;
7
+ constructor(httpRequest: HttpRequest) {
8
+ this.httpRequest = httpRequest;
9
+ }
10
+
11
+ /**
12
+ * 获取存放地点
13
+ * @param querys
14
+ */
15
+ selectdb(querys: ICoreLaidSelectdbQuerys) {
16
+ return this.httpRequest.post<TCore.ILaidResponse[]>("/core/tlaid/selectdb", querys, undefined);
17
+ }
18
+
19
+ /**
20
+ * 添加存放地点
21
+ * @param querys
22
+ * @param params
23
+ * @returns
24
+ */
25
+ insertdb(querys: ICoreLaidInsertdbQuerys, params: object) {
26
+ return this.httpRequest.post<TCore.ILaidResponse[]>(`/core/tlaid/insertdb`, querys, params);
27
+ }
28
+
29
+ /**
30
+ * 编辑存放地点
31
+ * @param querys
32
+ * @returns
33
+ */
34
+ updatedb(querys: ICoreLaidUpdatedbQuerys) {
35
+ return this.httpRequest.post<TCore.ILaidResponse[]>("/core/tlaid/updatedb", querys, undefined);
36
+ }
37
+
38
+ /**
39
+ * 删除存放地点
40
+ * @param params
41
+ */
42
+ deletedb(params: object) {
43
+ return this.httpRequest.post<TCore.ILaidResponse[]>("/core/tlaid/deletedb", undefined, params);
44
+ }
45
+
46
+ /**
47
+ * 判断存放地点是否关联资产卡片
48
+ * @param params
49
+ */
50
+ judgedb(params: object) {
51
+ return this.httpRequest.post<TCore.ILaidResponse[]>("/core/tlaid/judgedb", undefined, params);
52
+ }
53
+
54
+ /**
55
+ * 批量新增存放地点并建立树型
56
+ * @param querys
57
+ * @returns
58
+ */
59
+ uploadd3(querys: ICoreLaidUploadd3Querys) {
60
+ return this.httpRequest.post<TCore.ILaidResponse[]>("/core/tlaid/uploadd3", querys, undefined);
61
+ }
62
+
63
+ /**
64
+ * 卡片生成的时候,批量补全
65
+ * 批量新增存放地点并建立树型
66
+ * @param querys
67
+ * @param params
68
+ * @returns
69
+ */
70
+ uploadd4(querys: ICoreLaidUploadd4Querys, params: object) {
71
+ return this.httpRequest.post<TCore.ILaidResponse[]>("/core/tlaid/uploadd4", querys, params);
72
+ }
73
+ }
74
+
75
+ export default LaidRequest;
@@ -1,5 +1,6 @@
1
1
  import { TCore } from "@ningboyz/types";
2
2
  import type { HttpRequest } from "../axios";
3
+ import { ICorePartDetaildbQuerys, ICorePartSelectdbQuerys } from "./types";
3
4
 
4
5
  class PartRequest {
5
6
  private httpRequest: HttpRequest;
@@ -9,49 +10,44 @@ class PartRequest {
9
10
 
10
11
  /**
11
12
  * 获取角色管理
13
+ * @param querys
14
+ * @returns
12
15
  */
13
- selectdb(sysclasc: number, useruuid: string, unitmain: number) {
14
- const params = {
15
- sysclasc,
16
- useruuid,
17
- unitmain
18
- };
19
- return this.httpRequest.post<TCore.IPartResponse[]>("/core/tpart/selectdb", undefined, params);
16
+ selectdb(querys: ICorePartSelectdbQuerys) {
17
+ return this.httpRequest.post<TCore.IPartResponse[]>("/core/tpart/selectdb", querys, undefined);
20
18
  }
21
19
 
22
20
  /**
23
21
  * 新增角色管理
24
- * @param data
22
+ * @param params
25
23
  */
26
- insertdb(data: object) {
27
- return this.httpRequest.post<TCore.IPartResponse[]>("/core/tpart/insertdb", data, undefined);
24
+ insertdb(params: object) {
25
+ return this.httpRequest.post<TCore.IPartResponse[]>("/core/tpart/insertdb", undefined, params);
28
26
  }
29
27
 
30
28
  /**
31
29
  * 编辑角色管理
32
- * @param data
30
+ * @param params
33
31
  */
34
- updatedb(data: object) {
35
- return this.httpRequest.post<TCore.IPartResponse[]>("/core/tpart/updatedb", data, undefined);
32
+ updatedb(params: object) {
33
+ return this.httpRequest.post<TCore.IPartResponse[]>("/core/tpart/updatedb", undefined, params);
36
34
  }
37
35
 
38
36
  /**
39
37
  * 角色管理详情
40
- * @param usrpartc
38
+ * @param querys
39
+ * @returns
41
40
  */
42
- detaildb(usrpartc: number) {
43
- const params = {
44
- usrpartc
45
- };
46
- return this.httpRequest.post<TCore.IPartResponse[]>("/core/tpart/detaildb", undefined, params);
41
+ detaildb(querys: ICorePartDetaildbQuerys) {
42
+ return this.httpRequest.post<TCore.IPartResponse[]>("/core/tpart/detaildb", querys, undefined);
47
43
  }
48
44
 
49
45
  /**
50
46
  * 删除角色管理
51
- * @param data
47
+ * @param params
52
48
  */
53
- deletedb(data: object) {
54
- return this.httpRequest.post<TCore.IPartResponse[]>("/core/tpart/deletedb", data, undefined);
49
+ deletedb(params: object) {
50
+ return this.httpRequest.post<TCore.IPartResponse[]>("/core/tpart/deletedb", undefined, params);
55
51
  }
56
52
  }
57
53
 
@@ -1,5 +1,6 @@
1
1
  import type { TCore } from "@ningboyz/types";
2
2
  import type { HttpRequest } from "../axios";
3
+ import { ICorePathDownloadGtbase64Querys, ICorePathRotationQuerys, ICorePathUploaddbQuerys } from "./types";
3
4
 
4
5
  class PathRequest {
5
6
  private httpRequest: HttpRequest;
@@ -7,27 +8,22 @@ class PathRequest {
7
8
  this.httpRequest = httpRequest;
8
9
  }
9
10
 
10
- uploaddbInbase64(data: object) {
11
- return this.httpRequest.post<TCore.IPathResponse[]>("/core/tpath/uploaddb/inbase64", data, undefined);
11
+ uploaddbInbase64(params: object) {
12
+ return this.httpRequest.post<TCore.IPathResponse[]>("/core/tpath/uploaddb/inbase64", undefined, params);
12
13
  }
13
14
 
14
- downloadGtbase64(syspathc: number) {
15
- const params = {
16
- syspathc
17
- };
18
- return this.httpRequest.post<TCore.IPathResponse[]>("/core/tpath/download/gtbase64", undefined, params);
15
+ downloadGtbase64(querys: ICorePathDownloadGtbase64Querys) {
16
+ return this.httpRequest.post<TCore.IPathResponse[]>("/core/tpath/download/gtbase64", querys, undefined);
19
17
  }
20
18
 
21
19
  /**
22
20
  * 上传附件
23
- * @param data
24
- * @param txupload
21
+ * @param querys
22
+ * @param params
23
+ * @returns
25
24
  */
26
- uploaddb(data: object, txupload: number) {
27
- const params = {
28
- txupload
29
- };
30
- return this.httpRequest.postFile<TCore.IPathResponse[]>("/core/tpath/uploaddb", data, params);
25
+ uploaddb(querys: ICorePathUploaddbQuerys, params: object) {
26
+ return this.httpRequest.postFile<TCore.IPathResponse[]>("/core/tpath/uploaddb", querys, params);
31
27
  }
32
28
 
33
29
  /**
@@ -39,17 +35,11 @@ class PathRequest {
39
35
 
40
36
  /**
41
37
  * 附件旋转
42
- * @param syspathc
43
- * @param rotation
44
- * @param pagenums
38
+ * @param querys
39
+ * @returns
45
40
  */
46
- rotation(syspathc: number, rotation: number, pagenums: number) {
47
- const params = {
48
- syspathc,
49
- rotation,
50
- pagenums
51
- };
52
- return this.httpRequest.postFile<TCore.IPathResponse[]>("/core/tpath/rotation", undefined, params);
41
+ rotation(querys: ICorePathRotationQuerys) {
42
+ return this.httpRequest.postFile<TCore.IPathResponse[]>("/core/tpath/rotation", querys, undefined);
53
43
  }
54
44
  }
55
45
 
@@ -1,5 +1,6 @@
1
1
  import type { TCore } from "@ningboyz/types";
2
2
  import type { HttpRequest } from "../axios";
3
+ import { ICoreSysbilltypeSelectdbQuerys } from "./types";
3
4
 
4
5
  class SysbilltypeRequest {
5
6
  private httpRequest: HttpRequest;
@@ -9,17 +10,11 @@ class SysbilltypeRequest {
9
10
 
10
11
  /**
11
12
  * 获取业务类型
12
- * @param sysclasc
13
- * @param useruuid
14
- * @param unitmain
13
+ * @param querys
14
+ * @returns
15
15
  */
16
- selectdb(sysclasc: number, useruuid: string, unitmain: number) {
17
- const params = {
18
- sysclasc,
19
- useruuid,
20
- unitmain
21
- };
22
- return this.httpRequest.post<TCore.ISysMenuWithExpdResponse[]>("/core/tsysbilltype/selectdb", undefined, params);
16
+ selectdb(querys: ICoreSysbilltypeSelectdbQuerys) {
17
+ return this.httpRequest.post<TCore.ISysMenuWithExpdResponse[]>("/core/tsysbilltype/selectdb", querys, undefined);
23
18
  }
24
19
  }
25
20
 
@@ -1,5 +1,6 @@
1
1
  import type { TCore } from "@ningboyz/types";
2
2
  import type { HttpRequest } from "../axios";
3
+ import { ICoreSysclasSelectdbQuerys } from "./types";
3
4
 
4
5
  class SysClasRequest {
5
6
  private httpRequest: HttpRequest;
@@ -7,13 +8,8 @@ class SysClasRequest {
7
8
  this.httpRequest = httpRequest;
8
9
  }
9
10
 
10
- selectdb(sysclasc: number, useruuid: string, unitmain: number) {
11
- const params = {
12
- sysclasc,
13
- useruuid,
14
- unitmain
15
- };
16
- return this.httpRequest.post<TCore.ISysClasResponse[]>("/core/tsysclas/selectdb", undefined, params);
11
+ selectdb(querys: ICoreSysclasSelectdbQuerys) {
12
+ return this.httpRequest.post<TCore.ISysClasResponse[]>("/core/tsysclas/selectdb", querys, undefined);
17
13
  }
18
14
  }
19
15
 
@@ -1,5 +1,6 @@
1
1
  import type { TCore } from "@ningboyz/types";
2
2
  import type { HttpRequest } from "../axios";
3
+ import { ICoreSysmenuWithCoreDetaildbQuerys, ICoreSysmenuWithExpdDetaildbQuerys, ICoreSysmenuWithExpdSelectdbQuerys } from "./types";
3
4
 
4
5
  class SysmenuRequest {
5
6
  private httpRequest: HttpRequest;
@@ -13,84 +14,96 @@ class SysmenuRequest {
13
14
  * @param useruuid
14
15
  * @param unitmain
15
16
  */
16
- withexpdSelectdb(sysclasc: number, useruuid: string, unitmain: number) {
17
- const params = {
18
- sysclasc,
19
- useruuid,
20
- unitmain
21
- };
22
- return this.httpRequest.post<TCore.ISysMenuWithExpdResponse[]>("/core/tsysmenu/withexpd/selectdb", undefined, params);
17
+ withExpdSelectdb(querys: ICoreSysmenuWithExpdSelectdbQuerys) {
18
+ return this.httpRequest.post<TCore.ISysMenuWithExpdResponse[]>("/core/tsysmenu/withexpd/selectdb", querys, undefined);
23
19
  }
24
20
 
25
21
  /**
26
22
  * 功能菜单查询详情
27
23
  * @param params
28
24
  */
29
- withexpdDetaildb(params: object) {
30
- return this.httpRequest.post<TCore.ISysMenuWithExpdResponse[]>("/core/tsysmenu/withexpd/detaildb", undefined, params);
25
+ withExpdDetaildb(querys: ICoreSysmenuWithExpdDetaildbQuerys) {
26
+ return this.httpRequest.post<TCore.ISysMenuWithExpdResponse[]>("/core/tsysmenu/withexpd/detaildb", querys, undefined);
31
27
  }
32
28
 
33
29
  /**
34
30
  * 功能菜单添加
31
+ * @param params
32
+ * @returns
35
33
  */
36
- withexpdInsertdb(data: object) {
37
- return this.httpRequest.post<TCore.ISysMenuWithExpdResponse[]>("/core/tsysmenu/withexpd/insertdb", data);
34
+ withExpdInsertdb(params: object) {
35
+ return this.httpRequest.post<TCore.ISysMenuWithExpdResponse[]>("/core/tsysmenu/withexpd/insertdb", undefined, params);
38
36
  }
39
37
 
40
38
  /**
41
39
  * 功能菜单修改
40
+ * @param params
41
+ * @returns
42
42
  */
43
- withexpdUpdatedb(data: object) {
44
- return this.httpRequest.post<TCore.ISysMenuWithExpdResponse[]>("/core/tsysmenu/withexpd/updatedb", data);
43
+ withExpdUpdatedb(params: object) {
44
+ return this.httpRequest.post<TCore.ISysMenuWithExpdResponse[]>("/core/tsysmenu/withexpd/updatedb", undefined, params);
45
45
  }
46
46
 
47
47
  /**
48
48
  * 功能菜单删除
49
+ * @param data
50
+ * @returns
49
51
  */
50
- withexpdDeletedb(data: object) {
51
- return this.httpRequest.post<TCore.ISysMenuWithExpdResponse[]>("/core/tsysmenu/withexpd/deletedb", data);
52
+ withExpdDeletedb(params: object) {
53
+ return this.httpRequest.post<TCore.ISysMenuWithExpdResponse[]>("/core/tsysmenu/withexpd/deletedb", undefined, params);
52
54
  }
53
55
 
54
56
  /**
55
57
  * 所有菜单查询
58
+ * @returns
56
59
  */
57
- withcoreSelectdb() {
60
+ withCoreSelectdb() {
58
61
  return this.httpRequest.post<TCore.ISysMenuWithCoreResponse[]>("/core/tsysmenu/withcore/selectdb", undefined);
59
62
  }
60
63
 
61
64
  /**
62
65
  * 所有菜单查询详情
66
+ * @param querys
67
+ * @returns
63
68
  */
64
- withcoreDetaildb(params: object) {
65
- return this.httpRequest.post<TCore.ISysMenuWithCoreResponse[]>("/core/tsysmenu/withcore/detaildb", undefined, params);
69
+ withCoreDetaildb(querys: ICoreSysmenuWithCoreDetaildbQuerys) {
70
+ return this.httpRequest.post<TCore.ISysMenuWithCoreResponse[]>("/core/tsysmenu/withcore/detaildb", querys, undefined);
66
71
  }
67
72
 
68
73
  /**
69
74
  * 添加所有菜单
75
+ * @param params
76
+ * @returns
70
77
  */
71
- withcoreInsertdb(data: object) {
72
- return this.httpRequest.post<TCore.ISysMenuWithCoreResponse[]>("/core/tsysmenu/withcore/insertdb", data);
78
+ withCoreInsertdb(params: object) {
79
+ return this.httpRequest.post<TCore.ISysMenuWithCoreResponse[]>("/core/tsysmenu/withcore/insertdb", undefined, params);
73
80
  }
74
81
 
75
82
  /**
76
83
  * 修改所有菜单
84
+ * @param params
85
+ * @returns
77
86
  */
78
- withcoreuUdatedb(data: object) {
79
- return this.httpRequest.post<TCore.ISysMenuWithCoreResponse[]>("/core/tsysmenu/withcore/updatedb", data);
87
+ withcoreuUdatedb(params: object) {
88
+ return this.httpRequest.post<TCore.ISysMenuWithCoreResponse[]>("/core/tsysmenu/withcore/updatedb", undefined, params);
80
89
  }
81
90
 
82
91
  /**
83
92
  * 删除所有菜单
93
+ * @param params
94
+ * @returns
84
95
  */
85
- withcoreDeletedb(data: object) {
86
- return this.httpRequest.post<TCore.ISysMenuWithCoreResponse[]>("/core/tsysmenu/withcore/deletedb", data);
96
+ withCoreDeletedb(params: object) {
97
+ return this.httpRequest.post<TCore.ISysMenuWithCoreResponse[]>("/core/tsysmenu/withcore/deletedb", undefined, params);
87
98
  }
88
99
 
89
100
  /**
90
101
  * 获取所有菜单
102
+ * @param params
103
+ * @returns
91
104
  */
92
- withcoreDetailal(data: object) {
93
- return this.httpRequest.post<TCore.ISysMenuWithCoreResponse[]>("/core/tsysmenu/withcore/detailal", data);
105
+ withCoreDetailal(params: object) {
106
+ return this.httpRequest.post<TCore.ISysMenuWithCoreResponse[]>("/core/tsysmenu/withcore/detailal", undefined, params);
94
107
  }
95
108
  }
96
109
 
@@ -1,6 +1,7 @@
1
1
  import type { TCore } from "@ningboyz/types";
2
2
  import type { HttpRequest } from "../axios";
3
3
  import { ISysTravelResponse } from "@ningboyz/types/src/core";
4
+ import { ICoreSystravelSelectdbQuerys } from "./types";
4
5
 
5
6
  class SysTravelRequest {
6
7
  private httpRequest: HttpRequest;
@@ -10,37 +11,29 @@ class SysTravelRequest {
10
11
 
11
12
  /**
12
13
  * 获取审计日志
13
- * @param useronly
14
- * @param tablfrom
14
+ * @param querys
15
+ * @returns
15
16
  */
16
- selectdb(useronly: number, tablfrom: "WEB") {
17
- const params = {
18
- useronly,
19
- tablfrom
20
- };
21
- return this.httpRequest.post<TCore.ISysTravelResponse[]>("/core/tsystravel/selectdb", undefined, params);
17
+ selectdb(querys: ICoreSystravelSelectdbQuerys) {
18
+ return this.httpRequest.post<TCore.ISysTravelResponse[]>("/core/tsystravel/selectdb", querys, undefined);
22
19
  }
23
20
 
24
21
  /**
25
22
  * 新增审计日志
26
- * @param useronly
27
- * @param tablfrom
23
+ * @param params
24
+ * @returns
28
25
  */
29
- insertdb(travel: ISysTravelResponse) {
30
- const formData = new FormData();
31
- formData.append("params", JSON.stringify(travel));
32
- return this.httpRequest.post<TCore.ISysTravelResponse[]>("/core/tsystravel/insertdb", formData, undefined);
26
+ insertdb(params: object) {
27
+ return this.httpRequest.post<TCore.ISysTravelResponse[]>("/core/tsystravel/insertdb", undefined, params);
33
28
  }
34
29
 
35
30
  /**
36
31
  * 批量新增审计日志
37
- * @param useronly
38
- * @param tablfrom
32
+ * @param params
33
+ * @returns
39
34
  */
40
- uploaddb(listTravel: ISysTravelResponse[]) {
41
- const formData = new FormData();
42
- formData.append("params", JSON.stringify(listTravel));
43
- return this.httpRequest.post<TCore.ISysTravelResponse[]>("/core/tsystravel/uploaddb", formData, undefined);
35
+ uploaddb(params: object) {
36
+ return this.httpRequest.post<TCore.ISysTravelResponse[]>("/core/tsystravel/uploaddb", undefined, params);
44
37
  }
45
38
  }
46
39