@ningboyz/apis 1.4.92 → 1.4.93
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 +6 -0
- package/packages/core/user.ts +7 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/apis",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.93",
|
|
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.4.
|
|
20
|
+
"@ningboyz/types": "1.4.93",
|
|
21
21
|
"axios": "1.8.4",
|
|
22
22
|
"lodash": "^4.17.21"
|
|
23
23
|
},
|
package/packages/core/types.ts
CHANGED
|
@@ -679,6 +679,12 @@ export class TCoreUserSelectdbWithflow implements ICoreUserSelectdbWithflow {
|
|
|
679
679
|
deptmain: number = -1;
|
|
680
680
|
}
|
|
681
681
|
|
|
682
|
+
|
|
683
|
+
export interface ICoreUserSelectdbWithflowParams {
|
|
684
|
+
usrPartC: string,
|
|
685
|
+
listGet4Dept: number[]
|
|
686
|
+
}
|
|
687
|
+
|
|
682
688
|
export interface ICoreUserCaptcha1Querys {
|
|
683
689
|
fp: string;
|
|
684
690
|
}
|
package/packages/core/user.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TCore, TWlzf, TWtui } from "@ningboyz/types";
|
|
2
2
|
import _ from "lodash";
|
|
3
3
|
import type { HttpRequest } from "../axios";
|
|
4
|
-
import {
|
|
4
|
+
import {IEmptyQuerys, IParams} from "../type";
|
|
5
5
|
import {
|
|
6
6
|
ICoreDel4deptQuerys,
|
|
7
7
|
ICoreDel4laidQuerys,
|
|
@@ -37,7 +37,8 @@ import {
|
|
|
37
37
|
ICoreUserliteWithunit,
|
|
38
38
|
ICoreUserUploaddbQuerys,
|
|
39
39
|
ICoreUserVerifydbAuthcodeQuerys,
|
|
40
|
-
ICoreUserVerifydbDingdingQuerys
|
|
40
|
+
ICoreUserVerifydbDingdingQuerys,
|
|
41
|
+
ICoreUserSelectdbWithflowParams
|
|
41
42
|
} from "./types";
|
|
42
43
|
|
|
43
44
|
class UserRequest {
|
|
@@ -438,11 +439,12 @@ class UserRequest {
|
|
|
438
439
|
|
|
439
440
|
/**
|
|
440
441
|
* 通过角色和权限部门获取用户
|
|
441
|
-
* @param headers
|
|
442
442
|
* @returns
|
|
443
|
+
* @param querys
|
|
444
|
+
* @param params
|
|
443
445
|
*/
|
|
444
|
-
selectdbWithflow(querys: ICoreUserSelectdbWithflow) {
|
|
445
|
-
return this.httpRequest.post<TCore.IUserResponse[]>("/core/tuser/selectdb/withflow", querys,
|
|
446
|
+
selectdbWithflow(querys: ICoreUserSelectdbWithflow, params: IParams<ICoreUserSelectdbWithflowParams>) {
|
|
447
|
+
return this.httpRequest.post<TCore.IUserResponse[]>("/core/tuser/selectdb/withflow", querys, params);
|
|
446
448
|
}
|
|
447
449
|
|
|
448
450
|
/**
|