@ningboyz/apis 1.0.76 → 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 +11 -5
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,7 +20,9 @@ import {
|
|
|
18
20
|
ICoreUserSendMessageQuerys,
|
|
19
21
|
ICoreUserSourcendSet4kjndQuerys,
|
|
20
22
|
ICoreUserUpdatemmQuerys,
|
|
21
|
-
ICoreUserVerifydbDingdingQuerys,
|
|
23
|
+
ICoreUserVerifydbDingdingQuerys,
|
|
24
|
+
TCoreDel4userQuerys,
|
|
25
|
+
TParams
|
|
22
26
|
} from "./types";
|
|
23
27
|
import {IUserResponse} from "../../../types/src/core";
|
|
24
28
|
|
|
@@ -105,18 +109,20 @@ class UserRequest {
|
|
|
105
109
|
|
|
106
110
|
/**
|
|
107
111
|
* 添加人员权限
|
|
112
|
+
* @param querys
|
|
108
113
|
* @param params
|
|
109
114
|
*/
|
|
110
|
-
usrpartcSet4user(params: object) {
|
|
111
|
-
return this.httpRequest.post<TCore.IPartResponse[]>("/core/tuser/usrpartc/set4user",
|
|
115
|
+
usrpartcSet4user(querys: ICoreSet4userQuerys, params: object) {
|
|
116
|
+
return this.httpRequest.post<TCore.IPartResponse[]>("/core/tuser/usrpartc/set4user", querys, params);
|
|
112
117
|
}
|
|
113
118
|
|
|
114
119
|
/**
|
|
115
120
|
* 删除人员权限
|
|
121
|
+
* @param querys
|
|
116
122
|
* @param params
|
|
117
123
|
*/
|
|
118
|
-
usrpartcDel4user(params: object) {
|
|
119
|
-
return this.httpRequest.post<TCore.IPartResponse[]>("/core/tuser/usrpartc/del4user",
|
|
124
|
+
usrpartcDel4user(querys: TCoreDel4userQuerys, params: object) {
|
|
125
|
+
return this.httpRequest.post<TCore.IPartResponse[]>("/core/tuser/usrpartc/del4user", querys, params);
|
|
120
126
|
}
|
|
121
127
|
|
|
122
128
|
/**
|