@ningboyz/apis 1.6.144 → 1.6.145

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.6.144",
3
+ "version": "1.6.145",
4
4
  "private": false,
5
5
  "description": "宁波甬政请求库",
6
6
  "author": "nbyt-syq",
@@ -17,7 +17,7 @@
17
17
  "registry": "https://registry.npmjs.org/"
18
18
  },
19
19
  "dependencies": {
20
- "@ningboyz/types": "1.6.144",
20
+ "@ningboyz/types": "1.6.145",
21
21
  "axios": "1.8.4",
22
22
  "lodash": "^4.17.21"
23
23
  },
@@ -1,6 +1,6 @@
1
1
  import { TCore } from "@ningboyz/types";
2
2
  import type { HttpRequest } from "../axios";
3
- import { ICorePartDetaildbQuerys, ICorePartSelectdbQuerys } from "./types";
3
+ import { ICorePartClearviewQuerys, ICorePartDetaildbQuerys, ICorePartSelectdbQuerys, ICorePartSetviewQuerys } from "./types";
4
4
 
5
5
  class PartRequest {
6
6
  private httpRequest: HttpRequest;
@@ -60,6 +60,22 @@ class PartRequest {
60
60
  selectdb1() {
61
61
  return this.httpRequest.post<TCore.IPartResponse[]>("/core/tpart/selectdb", undefined, undefined);
62
62
  }
63
+
64
+ /**
65
+ * 设置角色权限
66
+ * @returns
67
+ */
68
+ set4view(querys: ICorePartSetviewQuerys, params: object) {
69
+ return this.httpRequest.post<TCore.IPartResponse[]>("/core/tpart/set4view", querys, params);
70
+ }
71
+
72
+ /**
73
+ * 清空角色权限
74
+ * @returns
75
+ */
76
+ clarview(querys: ICorePartClearviewQuerys, params: object) {
77
+ return this.httpRequest.post<TCore.IPartResponse[]>("/core/tpart/clarview", querys, params);
78
+ }
63
79
  }
64
80
 
65
81
  export default PartRequest;
@@ -233,6 +233,14 @@ export class TCorePartDetaildbQuerys implements ICorePartDetaildbQuerys {
233
233
  usrpartc: number = -1;
234
234
  }
235
235
 
236
+ export interface ICorePartSetviewQuerys {}
237
+
238
+ export class TCorePartSetviewQuerys implements ICorePartSetviewQuerys {}
239
+
240
+ export interface ICorePartClearviewQuerys {}
241
+
242
+ export class TCorePartClearviewQuerys implements ICorePartClearviewQuerys {}
243
+
236
244
  /** ========== path ========== */
237
245
  export interface ICorePathDownloadGtbase64Querys {
238
246
  syspathc: number;