@ningboyz/apis 1.0.75 → 1.0.77
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 +13 -0
- package/packages/core/user.ts +28 -4
- 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.77",
|
|
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.77",
|
|
21
21
|
"axios": "1.8.4"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {}
|
package/packages/core/types.ts
CHANGED
|
@@ -339,6 +339,19 @@ export class TCoreUserGet4WlzfQuerys implements ICoreUserGet4WlzfQuerys {
|
|
|
339
339
|
unitmain: number = -1;
|
|
340
340
|
sourcedw: string = "";
|
|
341
341
|
}
|
|
342
|
+
export interface ICoreSet4userQuerys {
|
|
343
|
+
unitmain: number;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
export class ICoreSet4userQuerys implements ICoreSet4userQuerys {
|
|
347
|
+
usermain: number = -1;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
export interface ICoreDel4userQuerys {
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
export class TCoreDel4userQuerys implements ICoreDel4userQuerys {
|
|
354
|
+
}
|
|
342
355
|
|
|
343
356
|
export interface ICoreUserGet4DeptQuerys {
|
|
344
357
|
unitmain: number;
|
package/packages/core/user.ts
CHANGED
|
@@ -2,6 +2,8 @@ import { TCore, TWlzf, TWtui } from "@ningboyz/types";
|
|
|
2
2
|
import type { HttpRequest } from "../axios";
|
|
3
3
|
import _ from "lodash";
|
|
4
4
|
import {
|
|
5
|
+
ICoreDel4userQuerys,
|
|
6
|
+
ICoreSet4userQuerys,
|
|
5
7
|
ICoreUserCaptcha1Querys,
|
|
6
8
|
ICoreUserCaptcha2Querys,
|
|
7
9
|
ICoreUserCheckCodeServletQuerys,
|
|
@@ -18,8 +20,11 @@ import {
|
|
|
18
20
|
ICoreUserSendMessageQuerys,
|
|
19
21
|
ICoreUserSourcendSet4kjndQuerys,
|
|
20
22
|
ICoreUserUpdatemmQuerys,
|
|
21
|
-
ICoreUserVerifydbDingdingQuerys
|
|
23
|
+
ICoreUserVerifydbDingdingQuerys,
|
|
24
|
+
TCoreDel4userQuerys,
|
|
25
|
+
TParams
|
|
22
26
|
} from "./types";
|
|
27
|
+
import {IUserResponse} from "../../../types/src/core";
|
|
23
28
|
|
|
24
29
|
class UserRequest {
|
|
25
30
|
private httpRequest: HttpRequest;
|
|
@@ -71,12 +76,13 @@ class UserRequest {
|
|
|
71
76
|
/**
|
|
72
77
|
* 根据用户id查用户角色
|
|
73
78
|
* @param querys
|
|
79
|
+
* @param params
|
|
74
80
|
* @returns
|
|
75
81
|
*/
|
|
76
|
-
detaildbCamelcase(querys: ICoreUserDetaildbCamelcaseQuerys) {
|
|
77
|
-
return this.httpRequest.post<TCore.IUserResponse[]>("core/tmast/detaildb/camelcase", querys,
|
|
82
|
+
detaildbCamelcase(querys: ICoreUserDetaildbCamelcaseQuerys, params: TParams<IUserResponse> | undefined) {
|
|
83
|
+
return this.httpRequest.post<TCore.IUserResponse[]>("/core/tmast/detaildb/camelcase", querys, params);
|
|
78
84
|
}
|
|
79
|
-
|
|
85
|
+
|
|
80
86
|
/**
|
|
81
87
|
* 获取用户角色
|
|
82
88
|
* @param querys
|
|
@@ -101,6 +107,24 @@ class UserRequest {
|
|
|
101
107
|
return this.httpRequest.post<TCore.IPartResponse[]>("/core/tuser/usrpartc/del4unit", undefined, params);
|
|
102
108
|
}
|
|
103
109
|
|
|
110
|
+
/**
|
|
111
|
+
* 添加人员权限
|
|
112
|
+
* @param querys
|
|
113
|
+
* @param params
|
|
114
|
+
*/
|
|
115
|
+
usrpartcSet4user(querys: ICoreSet4userQuerys, params: object) {
|
|
116
|
+
return this.httpRequest.post<TCore.IPartResponse[]>("/core/tuser/usrpartc/set4user", querys, params);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* 删除人员权限
|
|
121
|
+
* @param querys
|
|
122
|
+
* @param params
|
|
123
|
+
*/
|
|
124
|
+
usrpartcDel4user(querys: TCoreDel4userQuerys, params: object) {
|
|
125
|
+
return this.httpRequest.post<TCore.IPartResponse[]>("/core/tuser/usrpartc/del4user", querys, params);
|
|
126
|
+
}
|
|
127
|
+
|
|
104
128
|
/**
|
|
105
129
|
* 添加部门权限
|
|
106
130
|
* @param params
|
package/packages/myoa/index.ts
CHANGED
package/packages/yzcg/index.ts
CHANGED