@ningboyz/apis 1.8.23 → 1.8.24
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 +8 -0
- package/packages/core/user.ts +7 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/apis",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.24",
|
|
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.8.
|
|
20
|
+
"@ningboyz/types": "1.8.24",
|
|
21
21
|
"axios": "1.8.4",
|
|
22
22
|
"lodash": "^4.17.21"
|
|
23
23
|
},
|
package/packages/core/types.ts
CHANGED
|
@@ -1612,3 +1612,11 @@ export class TCoreUnitLoadSelectdbQuerys implements ICoreUnitLoadSelectdbQuerys
|
|
|
1612
1612
|
export interface ICoreUserSet4pzptQuerys {}
|
|
1613
1613
|
|
|
1614
1614
|
export class TCoreUserSet4pzptQuerys implements ICoreUserSet4pzptQuerys {}
|
|
1615
|
+
|
|
1616
|
+
export interface ICoreUserWithflowTouchurlQuerys {
|
|
1617
|
+
useruuid: string;
|
|
1618
|
+
}
|
|
1619
|
+
|
|
1620
|
+
export class TCoreUserWithflowTouchurlQuerys implements ICoreUserWithflowTouchurlQuerys {
|
|
1621
|
+
useruuid: string = "";
|
|
1622
|
+
}
|
package/packages/core/user.ts
CHANGED
|
@@ -92,6 +92,7 @@ import {
|
|
|
92
92
|
ICoreUserUsrpartcSet4unitQuerys,
|
|
93
93
|
ICoreUserVerifydbAuthcodeQuerys,
|
|
94
94
|
ICoreUserVerifydbDingdingQuerys,
|
|
95
|
+
ICoreUserWithflowTouchurlQuerys,
|
|
95
96
|
ICoreUserWithPageSelectdbQuerys,
|
|
96
97
|
ICoreUserWorkStatUpdatedbQuerys
|
|
97
98
|
} from "./types";
|
|
@@ -623,7 +624,7 @@ class UserRequest {
|
|
|
623
624
|
* @returns
|
|
624
625
|
*/
|
|
625
626
|
async getServerTime() {
|
|
626
|
-
const result = await this.httpRequest.post<{ DATADATE: number; DATATIME: number
|
|
627
|
+
const result = await this.httpRequest.post<{ DATADATE: number; DATATIME: number }>("/core/ping", undefined, undefined);
|
|
627
628
|
if (!_.isNil(result) && result.ONSTATUS) {
|
|
628
629
|
return { DATADATE: result.DATADATE, DATATIME: result.DATATIME };
|
|
629
630
|
}
|
|
@@ -982,6 +983,11 @@ class UserRequest {
|
|
|
982
983
|
set4pzpt(querys: ICoreUserSet4pzptQuerys, params: object) {
|
|
983
984
|
return this.httpRequest.post<TCore.IUserResponse[]>("/gapi/core/tuser/usrpartc/set4pzpt", querys, params);
|
|
984
985
|
}
|
|
986
|
+
|
|
987
|
+
// 根据用户签名设置审核历史
|
|
988
|
+
withflowTouchurl(querys: ICoreUserWithflowTouchurlQuerys, params: object) {
|
|
989
|
+
return this.httpRequest.post<TCore.IUserResponse[]>("/gapi/core/tuser/withflow/touchurl", querys, params);
|
|
990
|
+
}
|
|
985
991
|
}
|
|
986
992
|
|
|
987
993
|
export default UserRequest;
|