@ningboyz/apis 1.0.75 → 1.0.76

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.75",
3
+ "version": "1.0.76",
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.0.75",
20
+ "@ningboyz/types": "1.0.76",
21
21
  "axios": "1.8.4"
22
22
  },
23
23
  "devDependencies": {}
@@ -18,8 +18,9 @@ import {
18
18
  ICoreUserSendMessageQuerys,
19
19
  ICoreUserSourcendSet4kjndQuerys,
20
20
  ICoreUserUpdatemmQuerys,
21
- ICoreUserVerifydbDingdingQuerys
21
+ ICoreUserVerifydbDingdingQuerys, TParams
22
22
  } from "./types";
23
+ import {IUserResponse} from "../../../types/src/core";
23
24
 
24
25
  class UserRequest {
25
26
  private httpRequest: HttpRequest;
@@ -71,12 +72,13 @@ class UserRequest {
71
72
  /**
72
73
  * 根据用户id查用户角色
73
74
  * @param querys
75
+ * @param params
74
76
  * @returns
75
77
  */
76
- detaildbCamelcase(querys: ICoreUserDetaildbCamelcaseQuerys) {
77
- return this.httpRequest.post<TCore.IUserResponse[]>("core/tmast/detaildb/camelcase", querys, undefined);
78
+ detaildbCamelcase(querys: ICoreUserDetaildbCamelcaseQuerys, params: TParams<IUserResponse> | undefined) {
79
+ return this.httpRequest.post<TCore.IUserResponse[]>("/core/tmast/detaildb/camelcase", querys, params);
78
80
  }
79
-
81
+
80
82
  /**
81
83
  * 获取用户角色
82
84
  * @param querys
@@ -101,6 +103,22 @@ class UserRequest {
101
103
  return this.httpRequest.post<TCore.IPartResponse[]>("/core/tuser/usrpartc/del4unit", undefined, params);
102
104
  }
103
105
 
106
+ /**
107
+ * 添加人员权限
108
+ * @param params
109
+ */
110
+ usrpartcSet4user(params: object) {
111
+ return this.httpRequest.post<TCore.IPartResponse[]>("/core/tuser/usrpartc/set4user", undefined, params);
112
+ }
113
+
114
+ /**
115
+ * 删除人员权限
116
+ * @param params
117
+ */
118
+ usrpartcDel4user(params: object) {
119
+ return this.httpRequest.post<TCore.IPartResponse[]>("/core/tuser/usrpartc/del4user", undefined, params);
120
+ }
121
+
104
122
  /**
105
123
  * 添加部门权限
106
124
  * @param params
@@ -11,3 +11,4 @@ class MyoaRequest {
11
11
  }
12
12
 
13
13
  export default MyoaRequest;
14
+ export * from "./type"
@@ -11,3 +11,4 @@ class YzcgRequest {
11
11
  }
12
12
 
13
13
  export default YzcgRequest;
14
+ export * from "./type"