@ningboyz/apis 1.0.82 → 1.0.83
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 +19 -3
- package/packages/core/user.ts +30 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/apis",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.83",
|
|
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.83",
|
|
21
21
|
"axios": "1.8.4"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {}
|
package/packages/core/types.ts
CHANGED
|
@@ -340,11 +340,27 @@ export class TCoreUserGet4WlzfQuerys implements ICoreUserGet4WlzfQuerys {
|
|
|
340
340
|
sourcedw: string = "";
|
|
341
341
|
}
|
|
342
342
|
export interface ICoreSet4userQuerys {
|
|
343
|
-
unitmain: number;
|
|
344
343
|
}
|
|
345
344
|
|
|
346
|
-
export class
|
|
347
|
-
|
|
345
|
+
export class TCoreSet4userQuerys implements ICoreSet4userQuerys {
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
export interface ICoreSet4laidQuerys {
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
export class TCoreSet4laidQuerys implements ICoreSet4laidQuerys {
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
export interface ICoreDel4laidQuerys {
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
export class TCoreDel4laidQuerys implements ICoreDel4laidQuerys {
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
export interface ICoreDel4deptQuerys {
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
export class TCoreDel4deptQuerys implements ICoreDel4deptQuerys {
|
|
348
364
|
}
|
|
349
365
|
|
|
350
366
|
export interface ICoreDel4userQuerys {
|
package/packages/core/user.ts
CHANGED
|
@@ -2,7 +2,9 @@ import { TCore, TWlzf, TWtui } from "@ningboyz/types";
|
|
|
2
2
|
import type { HttpRequest } from "../axios";
|
|
3
3
|
import _ from "lodash";
|
|
4
4
|
import {
|
|
5
|
+
ICoreDel4laidQuerys,
|
|
5
6
|
ICoreDel4userQuerys,
|
|
7
|
+
ICoreSet4laidQuerys,
|
|
6
8
|
ICoreSet4userQuerys,
|
|
7
9
|
ICoreUserCaptcha1Querys,
|
|
8
10
|
ICoreUserCaptcha2Querys,
|
|
@@ -21,6 +23,7 @@ import {
|
|
|
21
23
|
ICoreUserSourcendSet4kjndQuerys,
|
|
22
24
|
ICoreUserUpdatemmQuerys,
|
|
23
25
|
ICoreUserVerifydbDingdingQuerys,
|
|
26
|
+
TCoreDel4deptQuerys,
|
|
24
27
|
TCoreDel4userQuerys,
|
|
25
28
|
TParams
|
|
26
29
|
} from "./types";
|
|
@@ -125,6 +128,24 @@ class UserRequest {
|
|
|
125
128
|
return this.httpRequest.post<TCore.IPartResponse[]>("/core/tuser/usrpartc/del4user", querys, params);
|
|
126
129
|
}
|
|
127
130
|
|
|
131
|
+
/**
|
|
132
|
+
* 添加地点权限
|
|
133
|
+
* @param querys
|
|
134
|
+
* @param params
|
|
135
|
+
*/
|
|
136
|
+
usrpartcSet4laid(querys: ICoreSet4laidQuerys, params: object) {
|
|
137
|
+
return this.httpRequest.post<TCore.IPartResponse[]>("/core/tuser/usrpartc/set4laid", querys, params);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* 删除地点权限
|
|
142
|
+
* @param querys
|
|
143
|
+
* @param params
|
|
144
|
+
*/
|
|
145
|
+
usrpartcDel4laid(querys: ICoreDel4laidQuerys, params: object) {
|
|
146
|
+
return this.httpRequest.post<TCore.IPartResponse[]>("/core/tuser/usrpartc/del4laid", querys, params);
|
|
147
|
+
}
|
|
148
|
+
|
|
128
149
|
/**
|
|
129
150
|
* 添加部门权限
|
|
130
151
|
* @param params
|
|
@@ -133,6 +154,15 @@ class UserRequest {
|
|
|
133
154
|
return this.httpRequest.post<TCore.IPartResponse[]>("/core/tuser/usrpartc/set4dept", undefined, params);
|
|
134
155
|
}
|
|
135
156
|
|
|
157
|
+
/**
|
|
158
|
+
* 删除部门权限
|
|
159
|
+
* @param querys
|
|
160
|
+
* @param params
|
|
161
|
+
*/
|
|
162
|
+
usrpartcDel4dept(querys: TCoreDel4deptQuerys, params: object) {
|
|
163
|
+
return this.httpRequest.post<TCore.IPartResponse[]>("/core/tuser/usrpartc/del4dept", querys, params);
|
|
164
|
+
}
|
|
165
|
+
|
|
136
166
|
/**
|
|
137
167
|
* 支付环境
|
|
138
168
|
* @param querys
|