@ningboyz/apis 1.0.73 → 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 +2 -2
- package/packages/core/types.ts +4 -4
- package/packages/core/user.ts +25 -7
- package/packages/myoa/index.ts +1 -0
- package/packages/yzcg/index.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/apis",
|
|
3
|
-
"version": "1.0.
|
|
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.
|
|
20
|
+
"@ningboyz/types": "1.0.76",
|
|
21
21
|
"axios": "1.8.4"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {}
|
package/packages/core/types.ts
CHANGED
|
@@ -398,16 +398,16 @@ export class TCoreUserUpdatemmQuerys implements ICoreUserUpdatemmQuerys {
|
|
|
398
398
|
pswd4old: string = "";
|
|
399
399
|
}
|
|
400
400
|
|
|
401
|
-
export interface
|
|
401
|
+
export interface ICoreUserInitpswdQuerys {
|
|
402
402
|
whobuild: number;
|
|
403
403
|
userindx: number;
|
|
404
|
-
initpswd:
|
|
404
|
+
initpswd: string;
|
|
405
405
|
}
|
|
406
406
|
|
|
407
|
-
export class
|
|
407
|
+
export class TCoreUserInitpswdQuerys implements ICoreUserInitpswdQuerys {
|
|
408
408
|
whobuild: number = -1;
|
|
409
409
|
userindx: number = -1;
|
|
410
|
-
initpswd:
|
|
410
|
+
initpswd: string = "";
|
|
411
411
|
}
|
|
412
412
|
|
|
413
413
|
export interface ICoreUserMobileidUpdatedbQuerys {
|
package/packages/core/user.ts
CHANGED
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
ICoreUserGet4LaidQuerys,
|
|
11
11
|
ICoreUserGet4PartQuerys,
|
|
12
12
|
ICoreUserGet4WlzfQuerys,
|
|
13
|
+
ICoreUserInitpswdQuerys,
|
|
13
14
|
ICoreUserMobileidUpdatedbQuerys,
|
|
14
15
|
ICoreUserScanloginQuerys,
|
|
15
16
|
ICoreUserSelectdbCamelcaseQuerys,
|
|
@@ -17,9 +18,9 @@ import {
|
|
|
17
18
|
ICoreUserSendMessageQuerys,
|
|
18
19
|
ICoreUserSourcendSet4kjndQuerys,
|
|
19
20
|
ICoreUserUpdatemmQuerys,
|
|
20
|
-
ICoreUserVerifydbDingdingQuerys,
|
|
21
|
-
TCoreUserClearpwdQuerys
|
|
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,
|
|
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
|
|
@@ -196,8 +214,8 @@ class UserRequest {
|
|
|
196
214
|
* @param querys
|
|
197
215
|
* @param params
|
|
198
216
|
*/
|
|
199
|
-
|
|
200
|
-
return this.httpRequest.post<string>("/core/tuser/
|
|
217
|
+
initpswd(querys: ICoreUserInitpswdQuerys, params: object) {
|
|
218
|
+
return this.httpRequest.post<string>("/core/tuser/initpswd", querys, params);
|
|
201
219
|
}
|
|
202
220
|
|
|
203
221
|
/**
|
package/packages/myoa/index.ts
CHANGED
package/packages/yzcg/index.ts
CHANGED