@ningboyz/apis 1.5.172 → 1.5.174
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/apis",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.174",
|
|
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.5.
|
|
20
|
+
"@ningboyz/types": "1.5.174",
|
|
21
21
|
"axios": "1.8.4",
|
|
22
22
|
"lodash": "^4.17.21"
|
|
23
23
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TCore } from "@ningboyz/types";
|
|
2
2
|
import type { HttpRequest } from "../axios";
|
|
3
|
-
import { ICoreSystravelSelectdb2Querys, ICoreSystravelSelectdbQuerys } from "./types";
|
|
3
|
+
import { ICoreSystravelBillstatUpdatedbQuerys, ICoreSystravelSelectdb2Querys, ICoreSystravelSelectdbQuerys } from "./types";
|
|
4
4
|
|
|
5
5
|
class SysTravelRequest {
|
|
6
6
|
private httpRequest: HttpRequest;
|
|
@@ -43,6 +43,11 @@ class SysTravelRequest {
|
|
|
43
43
|
uploaddb(params: object) {
|
|
44
44
|
return this.httpRequest.post<TCore.ISysTravelResponse[]>("/core/tsystravel/uploaddb", undefined, params);
|
|
45
45
|
}
|
|
46
|
+
|
|
47
|
+
// 更新日志状态
|
|
48
|
+
billstatupdatedb(querys: ICoreSystravelBillstatUpdatedbQuerys, params: object) {
|
|
49
|
+
return this.httpRequest.post<TCore.ISysTravelResponse[]>("/core/tsystravel/billstat/updatedb", querys, params);
|
|
50
|
+
}
|
|
46
51
|
}
|
|
47
52
|
|
|
48
53
|
export default SysTravelRequest;
|
package/packages/core/types.ts
CHANGED
|
@@ -1008,7 +1008,6 @@ export class TCoreUserUpdatedbStatQuerys implements ICoreUserUpdatedbStatQuerys
|
|
|
1008
1008
|
userstat: number = -1;
|
|
1009
1009
|
}
|
|
1010
1010
|
|
|
1011
|
-
|
|
1012
1011
|
export interface ICoreUserUpdateonQuerys {
|
|
1013
1012
|
usermain: number;
|
|
1014
1013
|
updateon: number;
|
|
@@ -1017,3 +1016,18 @@ export class TCoreUserUpdateonQuerys implements ICoreUserUpdateonQuerys {
|
|
|
1017
1016
|
usermain: number = -1;
|
|
1018
1017
|
updateon: number = -1;
|
|
1019
1018
|
}
|
|
1019
|
+
|
|
1020
|
+
export interface ICoreSystravelBillstatUpdatedbQuerys {
|
|
1021
|
+
billmain: number;
|
|
1022
|
+
billstat: number;
|
|
1023
|
+
}
|
|
1024
|
+
export class TCoreSystravelBillstatUpdatedbQuerys implements ICoreSystravelBillstatUpdatedbQuerys {
|
|
1025
|
+
billmain: number = -1;
|
|
1026
|
+
billstat: number = -1;
|
|
1027
|
+
}
|
|
1028
|
+
export interface ICoreUserGet4UnitQuerys {
|
|
1029
|
+
usrpartc: number;
|
|
1030
|
+
}
|
|
1031
|
+
export class TCoreUserGet4UnitQuerys implements ICoreUserGet4UnitQuerys {
|
|
1032
|
+
usrpartc: number = -1;
|
|
1033
|
+
}
|
package/packages/core/user.ts
CHANGED
|
@@ -44,7 +44,8 @@ import {
|
|
|
44
44
|
ICoreUserSelectd2Querys,
|
|
45
45
|
ICoreUserDetaild2Querys,
|
|
46
46
|
ICoreUserUpdatedbStatQuerys,
|
|
47
|
-
ICoreUserUpdateonQuerys
|
|
47
|
+
ICoreUserUpdateonQuerys,
|
|
48
|
+
ICoreUserGet4UnitQuerys
|
|
48
49
|
} from "./types";
|
|
49
50
|
|
|
50
51
|
class UserRequest {
|
|
@@ -259,10 +260,11 @@ class UserRequest {
|
|
|
259
260
|
|
|
260
261
|
/**
|
|
261
262
|
* 获取用户权限范围内的单位
|
|
263
|
+
* usrpartc:根据角色二次筛选
|
|
262
264
|
* @returns
|
|
263
265
|
*/
|
|
264
|
-
get4unit() {
|
|
265
|
-
return this.httpRequest.post<TCore.IUnitResponse[]>("/core/tuser/get4unit");
|
|
266
|
+
get4unit(querys: ICoreUserGet4UnitQuerys) {
|
|
267
|
+
return this.httpRequest.post<TCore.IUnitResponse[]>("/core/tuser/get4unit", querys, undefined);
|
|
266
268
|
}
|
|
267
269
|
|
|
268
270
|
/**
|