@ningboyz/apis 1.1.113 → 1.1.115

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 (180) hide show
  1. package/.prettierrc +15 -15
  2. package/index.ts +90 -90
  3. package/package.json +24 -24
  4. package/packages/antv/cnfg.ts +47 -47
  5. package/packages/antv/index.ts +20 -20
  6. package/packages/antv/main.ts +54 -54
  7. package/packages/antv/para.ts +47 -47
  8. package/packages/antv/type.ts +59 -59
  9. package/packages/axios.ts +136 -136
  10. package/packages/card/form.ts +18 -18
  11. package/packages/card/gblb.ts +113 -113
  12. package/packages/card/index.ts +49 -49
  13. package/packages/card/main.ts +270 -270
  14. package/packages/card/p4pz.ts +93 -93
  15. package/packages/card/tdata.ts +104 -104
  16. package/packages/card/type.ts +792 -792
  17. package/packages/card/tzclbgblb.ts +36 -36
  18. package/packages/card/zcbd.ts +110 -110
  19. package/packages/card/zccf.ts +105 -105
  20. package/packages/card/zccz.ts +112 -112
  21. package/packages/card/zcdb.ts +120 -120
  22. package/packages/card/zclb.ts +93 -93
  23. package/packages/card/zczj.ts +21 -21
  24. package/packages/card/zczjProp.ts +21 -21
  25. package/packages/cnfg/index.ts +14 -14
  26. package/packages/cnfg/main.ts +42 -42
  27. package/packages/cnfg/type.ts +4 -4
  28. package/packages/core/dddw.ts +51 -51
  29. package/packages/core/dept.ts +94 -94
  30. package/packages/core/dict.ts +69 -69
  31. package/packages/core/index.ts +62 -62
  32. package/packages/core/laid.ts +85 -85
  33. package/packages/core/local.ts +29 -29
  34. package/packages/core/mast.ts +23 -23
  35. package/packages/core/part.ts +62 -62
  36. package/packages/core/path.ts +46 -46
  37. package/packages/core/sysbilltype.ts +53 -53
  38. package/packages/core/sysclas.ts +16 -16
  39. package/packages/core/sysenvr.ts +15 -15
  40. package/packages/core/syskjnd.ts +18 -18
  41. package/packages/core/sysmenu.ts +119 -119
  42. package/packages/core/systravel.ts +40 -40
  43. package/packages/core/type.ts +73 -73
  44. package/packages/core/types.ts +588 -588
  45. package/packages/core/unit.ts +87 -87
  46. package/packages/core/user.ts +395 -395
  47. package/packages/cron/index.ts +14 -14
  48. package/packages/cron/main.ts +55 -55
  49. package/packages/cron/type.ts +18 -18
  50. package/packages/elem/data.ts +56 -56
  51. package/packages/elem/index.ts +15 -15
  52. package/packages/elem/main.ts +68 -68
  53. package/packages/elem/type.ts +47 -47
  54. package/packages/expd/index.ts +14 -14
  55. package/packages/expd/main.ts +23 -23
  56. package/packages/expd/type.ts +18 -18
  57. package/packages/flow/duty.ts +57 -57
  58. package/packages/flow/flow.ts +97 -97
  59. package/packages/flow/index.ts +25 -25
  60. package/packages/flow/main.ts +61 -61
  61. package/packages/flow/node.ts +76 -76
  62. package/packages/flow/type.ts +214 -214
  63. package/packages/flow/void.ts +64 -64
  64. package/packages/gams/cnfg.ts +64 -64
  65. package/packages/gams/index.ts +23 -23
  66. package/packages/gams/{titem.ts → item.ts} +40 -40
  67. package/packages/gams/{tkokm.ts → k0km.ts} +48 -48
  68. package/packages/gams/type.ts +40 -144
  69. package/packages/gams/types.ts +144 -0
  70. package/packages/grow/grow.ts +17 -17
  71. package/packages/grow/index.ts +14 -14
  72. package/packages/grow/type.ts +7 -7
  73. package/packages/gzjg/gzlm.ts +98 -98
  74. package/packages/gzjg/index.ts +19 -19
  75. package/packages/gzjg/main.ts +69 -69
  76. package/packages/gzjg/qzgs.ts +39 -39
  77. package/packages/gzjg/type.ts +126 -126
  78. package/packages/gztb/index.ts +14 -14
  79. package/packages/gztb/main.ts +33 -33
  80. package/packages/gztb/type.ts +27 -27
  81. package/packages/gzzd/index.ts +14 -14
  82. package/packages/gzzd/main.ts +82 -82
  83. package/packages/gzzd/type.ts +68 -68
  84. package/packages/hzcb/index.ts +14 -14
  85. package/packages/hzcb/main.ts +43 -43
  86. package/packages/hzcb/type.ts +20 -20
  87. package/packages/index.ts +30 -30
  88. package/packages/load/data.ts +20 -20
  89. package/packages/load/index.ts +23 -23
  90. package/packages/load/main.ts +19 -19
  91. package/packages/load/type.ts +30 -30
  92. package/packages/load/yqdw.ts +15 -15
  93. package/packages/load/yqkm.ts +15 -15
  94. package/packages/myoa/index.ts +19 -19
  95. package/packages/myoa/main.ts +142 -142
  96. package/packages/myoa/room.ts +45 -45
  97. package/packages/myoa/type.ts +186 -186
  98. package/packages/myoa/withcard.ts +114 -114
  99. package/packages/noti/index.ts +14 -14
  100. package/packages/noti/main.ts +47 -47
  101. package/packages/noti/type.ts +26 -26
  102. package/packages/ocri/index.ts +13 -13
  103. package/packages/ocri/path.ts +17 -17
  104. package/packages/ocri/type.ts +6 -6
  105. package/packages/pzpt/cnfg.ts +92 -92
  106. package/packages/pzpt/glfa.ts +59 -59
  107. package/packages/pzpt/glkm.ts +51 -51
  108. package/packages/pzpt/index.ts +47 -47
  109. package/packages/pzpt/item.ts +54 -54
  110. package/packages/pzpt/k0km.ts +49 -49
  111. package/packages/pzpt/k8km.ts +55 -55
  112. package/packages/pzpt/kbkm.ts +25 -25
  113. package/packages/pzpt/pzpz.ts +60 -60
  114. package/packages/pzpt/pzpzp6pz.ts +44 -44
  115. package/packages/pzpt/type.ts +50 -50
  116. package/packages/pzpt/types.ts +491 -491
  117. package/packages/pzpt/yqkb.ts +20 -20
  118. package/packages/pzpt/yqkm.ts +34 -34
  119. package/packages/tabl/index.ts +14 -14
  120. package/packages/tabl/main.ts +116 -116
  121. package/packages/tabl/type.ts +148 -148
  122. package/packages/task/index.ts +13 -13
  123. package/packages/task/main.ts +48 -48
  124. package/packages/task/type.ts +18 -18
  125. package/packages/type.ts +9 -9
  126. package/packages/wldy/data.ts +52 -52
  127. package/packages/wldy/index.ts +20 -20
  128. package/packages/wldy/item.ts +52 -52
  129. package/packages/wldy/page.ts +63 -63
  130. package/packages/wldy/type.ts +48 -48
  131. package/packages/wtui/ctrl.ts +45 -45
  132. package/packages/wtui/envr.ts +15 -15
  133. package/packages/wtui/form.ts +61 -61
  134. package/packages/wtui/index.ts +44 -44
  135. package/packages/wtui/item.ts +62 -62
  136. package/packages/wtui/main.ts +85 -85
  137. package/packages/wtui/menu.ts +37 -37
  138. package/packages/wtui/node.ts +55 -55
  139. package/packages/wtui/todo.ts +77 -77
  140. package/packages/wtui/type.ts +384 -384
  141. package/packages/wtui/user.ts +39 -39
  142. package/packages/wtui/view.ts +90 -90
  143. package/packages/wtui/zone.ts +52 -52
  144. package/packages/wzpz/cnfg.ts +57 -57
  145. package/packages/wzpz/index.ts +30 -30
  146. package/packages/wzpz/item.ts +60 -60
  147. package/packages/wzpz/k0km.ts +47 -47
  148. package/packages/wzpz/k8km.ts +55 -55
  149. package/packages/wzpz/kbkm.ts +21 -21
  150. package/packages/wzpz/type.ts +57 -57
  151. package/packages/wzpz/types.ts +247 -247
  152. package/packages/yzcg/index.ts +14 -14
  153. package/packages/yzcg/main.ts +49 -49
  154. package/packages/yzcg/type.ts +22 -22
  155. package/packages/yzht/index.ts +14 -14
  156. package/packages/yzht/main.ts +50 -50
  157. package/packages/yzht/type.ts +38 -38
  158. package/packages/yzpz/cnfg.ts +57 -57
  159. package/packages/yzpz/index.ts +30 -30
  160. package/packages/yzpz/item.ts +60 -60
  161. package/packages/yzpz/k0km.ts +47 -47
  162. package/packages/yzpz/k8km.ts +72 -55
  163. package/packages/yzpz/kbkm.ts +40 -40
  164. package/packages/yzpz/type.ts +57 -57
  165. package/packages/yzpz/types.ts +271 -247
  166. package/packages/zbzd/index.ts +14 -14
  167. package/packages/zbzd/main.ts +48 -48
  168. package/packages/zbzd/type.ts +29 -29
  169. package/pnpm-lock.yaml +225 -0
  170. package/readme.md +1 -1
  171. package/packages/antv/type.ts~ +0 -57
  172. package/packages/card/index.ts~ +0 -47
  173. package/packages/card/tzclbsort.ts~ +0 -36
  174. package/packages/card/zccz.ts~ +0 -106
  175. package/packages/core/laid.ts~ +0 -84
  176. package/packages/expd/type.ts~ +0 -17
  177. package/packages/gams/ttype.ts +0 -40
  178. package/packages/noti/main.ts~ +0 -47
  179. package/packages/noti/type.ts~ +0 -29
  180. package/packages/wtui/type.ts~ +0 -380
@@ -1,142 +1,142 @@
1
- import { TCore, TMyoa, TCard } from "@ningboyz/types";
2
- import type { HttpRequest } from "../axios";
3
- import {
4
- TMyoaMainDetaildbQuerys,
5
- IMyoaMainSelectdbQuerys,
6
- IMyoaMainInsertdb2Querys,
7
- IMyoaMainUpdated4Querys,
8
- TMyoaMainMrokdbQuerys,
9
- IMyoaMainDetail2dbQuerys,
10
- IMyoaMainSet4pathQuerys,
11
- IMyoaMainUsesdzqzUpdatedbQuerys,
12
- IMyoaFinishedQuerys,
13
- IMyoaMainScheduleQuerys
14
- } from "./type";
15
- import { IEmptyQuerys, IParams } from "../type";
16
-
17
- class ParaRequest {
18
- private httpRequest: HttpRequest;
19
- constructor(httpRequest: HttpRequest) {
20
- this.httpRequest = httpRequest;
21
- }
22
-
23
- /**
24
- * 获取盖章申请
25
- */
26
- selectdb(querys: IMyoaMainSelectdbQuerys, params: object) {
27
- return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/selectdb", querys, params);
28
- }
29
-
30
- /**
31
- * 新增盖章申请
32
- */
33
- insertdb(params: object) {
34
- return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/insertdb", undefined, params);
35
- }
36
- /**
37
- * 修改盖章申请
38
- */
39
- updatedb(params: object) {
40
- return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/updatedb", undefined, params);
41
- }
42
-
43
- /**
44
- * 删除盖章申请, 删除公物仓入仓/领用关联资产卡片
45
- */
46
- deletedb(params: object) {
47
- return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/deletedb", undefined, params);
48
- }
49
-
50
- /**
51
- * 获取盖章申请详情
52
- */
53
- detaildb(querys: TMyoaMainDetaildbQuerys, params: object) {
54
- return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/detaildb", querys, params);
55
- }
56
-
57
- //公物仓
58
- /**
59
- * 新增公物仓入仓/领用
60
- */
61
- insertd2(querys: IMyoaMainInsertdb2Querys, params: IParams<TMyoa.IMyoaMainResponse>) {
62
- return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/insertd2", querys, params);
63
- }
64
-
65
- /**
66
- * 修改公物仓入仓/领用
67
- */
68
- updated4(querys: IMyoaMainUpdated4Querys, params: IParams<TMyoa.IMyoaMainResponse>) {
69
- return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/updated4", querys, params);
70
- }
71
-
72
- /**
73
- * 获取公物仓入仓/领用详情
74
- */
75
- detaild2(querys: IMyoaMainDetail2dbQuerys) {
76
- return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/detaild2", querys, undefined);
77
- }
78
-
79
- /**
80
- * 公物仓入仓撤销终审
81
- */
82
- canceled(querys: IEmptyQuerys, params: IParams<TMyoa.IMyoaMainResponse[]>) {
83
- return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/canceled", querys, params);
84
- }
85
-
86
- /**
87
- * 公物仓入仓终审
88
- */
89
- executed(querys: IEmptyQuerys, params: IParams<TMyoa.IMyoaMainResponse[]>) {
90
- return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/executed", querys, params);
91
- }
92
-
93
- /**
94
- * 公物仓入仓/领用终审判断
95
- */
96
- chkexist(querys: IEmptyQuerys, params: IParams<TMyoa.IMyoaMainResponse[]>) {
97
- return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/chkexist", querys, params);
98
- }
99
-
100
- /**
101
- * 获取公物仓入仓/领用详情
102
- */
103
- mrokdb(querys: TMyoaMainMrokdbQuerys, params: IParams<TMyoa.IMyoaMainResponse[]>) {
104
- return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/mrokdb", querys, params);
105
- }
106
-
107
- /**
108
- * 反折旧反结账后判断卡片是否有变动
109
- * 获取公物仓入仓/领用详情
110
- */
111
- chkinsert(querys: IEmptyQuerys, params: IParams<TMyoa.IMyoaMainResponse[]>) {
112
- return this.httpRequest.post<TCore.ICoreValidResponse[]>("/gapi/myoa/tmain/chkinsert", querys, params);
113
- }
114
-
115
- /**
116
- * 根据myoamain进行其附件的替换
117
- */
118
- set4path(querys: IMyoaMainSet4pathQuerys, params: object) {
119
- return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/set4path", querys, params);
120
- }
121
-
122
- /**
123
- * 根据myoamain修改其是否签章的标记
124
- */
125
- usesdzqzUpdatedb(querys: IMyoaMainUsesdzqzUpdatedbQuerys, params: object) {
126
- return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/usesdzqz/updatedb", querys, params);
127
- }
128
- /**
129
- * 获取登记已办业务
130
- */
131
- finished(querys: IMyoaFinishedQuerys) {
132
- return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/finished", querys, undefined);
133
- }
134
- /**
135
- * 获取用车列表/会议室列表
136
- */
137
- schedule(querys: IMyoaMainScheduleQuerys, params: object) {
138
- return this.httpRequest.post<TCard.ICardMainResponse[]>("/gapi/myoa/tmain/schedule", querys, params);
139
- }
140
- }
141
-
142
- export default ParaRequest;
1
+ import { TCore, TMyoa, TCard } from "@ningboyz/types";
2
+ import type { HttpRequest } from "../axios";
3
+ import {
4
+ TMyoaMainDetaildbQuerys,
5
+ IMyoaMainSelectdbQuerys,
6
+ IMyoaMainInsertdb2Querys,
7
+ IMyoaMainUpdated4Querys,
8
+ TMyoaMainMrokdbQuerys,
9
+ IMyoaMainDetail2dbQuerys,
10
+ IMyoaMainSet4pathQuerys,
11
+ IMyoaMainUsesdzqzUpdatedbQuerys,
12
+ IMyoaFinishedQuerys,
13
+ IMyoaMainScheduleQuerys
14
+ } from "./type";
15
+ import { IEmptyQuerys, IParams } from "../type";
16
+
17
+ class ParaRequest {
18
+ private httpRequest: HttpRequest;
19
+ constructor(httpRequest: HttpRequest) {
20
+ this.httpRequest = httpRequest;
21
+ }
22
+
23
+ /**
24
+ * 获取盖章申请
25
+ */
26
+ selectdb(querys: IMyoaMainSelectdbQuerys, params: object) {
27
+ return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/selectdb", querys, params);
28
+ }
29
+
30
+ /**
31
+ * 新增盖章申请
32
+ */
33
+ insertdb(params: object) {
34
+ return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/insertdb", undefined, params);
35
+ }
36
+ /**
37
+ * 修改盖章申请
38
+ */
39
+ updatedb(params: object) {
40
+ return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/updatedb", undefined, params);
41
+ }
42
+
43
+ /**
44
+ * 删除盖章申请, 删除公物仓入仓/领用关联资产卡片
45
+ */
46
+ deletedb(params: object) {
47
+ return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/deletedb", undefined, params);
48
+ }
49
+
50
+ /**
51
+ * 获取盖章申请详情
52
+ */
53
+ detaildb(querys: TMyoaMainDetaildbQuerys, params: object) {
54
+ return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/detaildb", querys, params);
55
+ }
56
+
57
+ //公物仓
58
+ /**
59
+ * 新增公物仓入仓/领用
60
+ */
61
+ insertd2(querys: IMyoaMainInsertdb2Querys, params: IParams<TMyoa.IMyoaMainResponse>) {
62
+ return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/insertd2", querys, params);
63
+ }
64
+
65
+ /**
66
+ * 修改公物仓入仓/领用
67
+ */
68
+ updated4(querys: IMyoaMainUpdated4Querys, params: IParams<TMyoa.IMyoaMainResponse>) {
69
+ return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/updated4", querys, params);
70
+ }
71
+
72
+ /**
73
+ * 获取公物仓入仓/领用详情
74
+ */
75
+ detaild2(querys: IMyoaMainDetail2dbQuerys) {
76
+ return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/detaild2", querys, undefined);
77
+ }
78
+
79
+ /**
80
+ * 公物仓入仓撤销终审
81
+ */
82
+ canceled(querys: IEmptyQuerys, params: IParams<TMyoa.IMyoaMainResponse[]>) {
83
+ return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/canceled", querys, params);
84
+ }
85
+
86
+ /**
87
+ * 公物仓入仓终审
88
+ */
89
+ executed(querys: IEmptyQuerys, params: IParams<TMyoa.IMyoaMainResponse[]>) {
90
+ return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/executed", querys, params);
91
+ }
92
+
93
+ /**
94
+ * 公物仓入仓/领用终审判断
95
+ */
96
+ chkexist(querys: IEmptyQuerys, params: IParams<TMyoa.IMyoaMainResponse[]>) {
97
+ return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/chkexist", querys, params);
98
+ }
99
+
100
+ /**
101
+ * 获取公物仓入仓/领用详情
102
+ */
103
+ mrokdb(querys: TMyoaMainMrokdbQuerys, params: IParams<TMyoa.IMyoaMainResponse[]>) {
104
+ return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/mrokdb", querys, params);
105
+ }
106
+
107
+ /**
108
+ * 反折旧反结账后判断卡片是否有变动
109
+ * 获取公物仓入仓/领用详情
110
+ */
111
+ chkinsert(querys: IEmptyQuerys, params: IParams<TMyoa.IMyoaMainResponse[]>) {
112
+ return this.httpRequest.post<TCore.ICoreValidResponse[]>("/gapi/myoa/tmain/chkinsert", querys, params);
113
+ }
114
+
115
+ /**
116
+ * 根据myoamain进行其附件的替换
117
+ */
118
+ set4path(querys: IMyoaMainSet4pathQuerys, params: object) {
119
+ return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/set4path", querys, params);
120
+ }
121
+
122
+ /**
123
+ * 根据myoamain修改其是否签章的标记
124
+ */
125
+ usesdzqzUpdatedb(querys: IMyoaMainUsesdzqzUpdatedbQuerys, params: object) {
126
+ return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/usesdzqz/updatedb", querys, params);
127
+ }
128
+ /**
129
+ * 获取登记已办业务
130
+ */
131
+ finished(querys: IMyoaFinishedQuerys) {
132
+ return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/finished", querys, undefined);
133
+ }
134
+ /**
135
+ * 获取用车列表/会议室列表
136
+ */
137
+ schedule(querys: IMyoaMainScheduleQuerys, params: object) {
138
+ return this.httpRequest.post<TCard.ICardMainResponse[]>("/gapi/myoa/tmain/schedule", querys, params);
139
+ }
140
+ }
141
+
142
+ export default ParaRequest;
@@ -1,45 +1,45 @@
1
- import { TMyoa } from "@ningboyz/types";
2
- import type { HttpRequest } from "../axios";
3
- import { IMyoaRoomSelectdbQuerys, IMyoaRoomGet5lastQuerys } from "./type";
4
-
5
- class ParaRequest {
6
- private httpRequest: HttpRequest;
7
- constructor(httpRequest: HttpRequest) {
8
- this.httpRequest = httpRequest;
9
- }
10
-
11
- /**
12
- * 获取会议室
13
- */
14
- selectdb(querys: IMyoaRoomSelectdbQuerys) {
15
- return this.httpRequest.post<TMyoa.IMyoaRoomResponse[]>("/gapi/myoa/troom/selectdb", querys, undefined);
16
- }
17
- /**
18
- * 新增会议室
19
- */
20
- insertdb(params: object) {
21
- return this.httpRequest.post<TMyoa.IMyoaRoomResponse[]>("/gapi/myoa/troom/insertdb", undefined, params);
22
- }
23
- /**
24
- * 修改会议室
25
- */
26
- updatedb(params: object) {
27
- return this.httpRequest.post<TMyoa.IMyoaRoomResponse[]>("/gapi/myoa/troom/updatedb", undefined, params);
28
- }
29
- /**
30
- * 删除会议室
31
- */
32
- deletedb(params: object) {
33
- return this.httpRequest.post<TMyoa.IMyoaRoomResponse[]>("/gapi/myoa/troom/deletedb", undefined, params);
34
- }
35
- /**
36
- *
37
- * @param querys 获取最近单据
38
- * @returns
39
- */
40
- get5last(querys: IMyoaRoomGet5lastQuerys) {
41
- return this.httpRequest.post<TMyoa.IMyoaRoomResponse[]>("/gapi/myoa/tmain/get5last", querys, undefined);
42
- }
43
- }
44
-
45
- export default ParaRequest;
1
+ import { TMyoa } from "@ningboyz/types";
2
+ import type { HttpRequest } from "../axios";
3
+ import { IMyoaRoomSelectdbQuerys, IMyoaRoomGet5lastQuerys } from "./type";
4
+
5
+ class ParaRequest {
6
+ private httpRequest: HttpRequest;
7
+ constructor(httpRequest: HttpRequest) {
8
+ this.httpRequest = httpRequest;
9
+ }
10
+
11
+ /**
12
+ * 获取会议室
13
+ */
14
+ selectdb(querys: IMyoaRoomSelectdbQuerys) {
15
+ return this.httpRequest.post<TMyoa.IMyoaRoomResponse[]>("/gapi/myoa/troom/selectdb", querys, undefined);
16
+ }
17
+ /**
18
+ * 新增会议室
19
+ */
20
+ insertdb(params: object) {
21
+ return this.httpRequest.post<TMyoa.IMyoaRoomResponse[]>("/gapi/myoa/troom/insertdb", undefined, params);
22
+ }
23
+ /**
24
+ * 修改会议室
25
+ */
26
+ updatedb(params: object) {
27
+ return this.httpRequest.post<TMyoa.IMyoaRoomResponse[]>("/gapi/myoa/troom/updatedb", undefined, params);
28
+ }
29
+ /**
30
+ * 删除会议室
31
+ */
32
+ deletedb(params: object) {
33
+ return this.httpRequest.post<TMyoa.IMyoaRoomResponse[]>("/gapi/myoa/troom/deletedb", undefined, params);
34
+ }
35
+ /**
36
+ *
37
+ * @param querys 获取最近单据
38
+ * @returns
39
+ */
40
+ get5last(querys: IMyoaRoomGet5lastQuerys) {
41
+ return this.httpRequest.post<TMyoa.IMyoaRoomResponse[]>("/gapi/myoa/tmain/get5last", querys, undefined);
42
+ }
43
+ }
44
+
45
+ export default ParaRequest;