@ningboyz/apis 1.0.43 → 1.0.44
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.0.
|
|
3
|
+
"version": "1.0.44",
|
|
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.39",
|
|
21
21
|
"axios": "^1.8.4"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {}
|
package/packages/axios.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { AxiosInstance, AxiosResponse, InternalAxiosRequestConfig } from "axios";
|
|
2
2
|
import axios from "axios";
|
|
3
3
|
import _ from "lodash";
|
|
4
|
-
import { type IResponse
|
|
4
|
+
import { type IResponse } from "@ningboyz/types";
|
|
5
5
|
import { ISessionUserInfo, TSessionUserInfo } from "@ningboyz/types/src/store";
|
|
6
6
|
|
|
7
7
|
export interface IAxiosConfig {
|
|
@@ -12,13 +12,6 @@ export interface IAxiosConfig {
|
|
|
12
12
|
interceptorsResponse?: (response: AxiosResponse<any>) => AxiosResponse<any>;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
const initUserInfo = {
|
|
16
|
-
whobuild: 0,
|
|
17
|
-
userindx: 0,
|
|
18
|
-
usrtoken: "",
|
|
19
|
-
dbconfig: ""
|
|
20
|
-
};
|
|
21
|
-
|
|
22
15
|
class HttpRequest {
|
|
23
16
|
private instance: AxiosInstance;
|
|
24
17
|
private readonly METHOD_GET: string = "GET";
|
|
@@ -49,7 +42,7 @@ class HttpRequest {
|
|
|
49
42
|
return request;
|
|
50
43
|
});
|
|
51
44
|
}
|
|
52
|
-
|
|
45
|
+
|
|
53
46
|
/**用户传了响应中间件 */
|
|
54
47
|
if (!_.isNil(interceptorsResponse)) {
|
|
55
48
|
this.instance.interceptors.response.use(interceptorsResponse);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TCore } from "@ningboyz/types";
|
|
2
2
|
import type { HttpRequest } from "../axios";
|
|
3
|
-
import {ICoreSystravelSelectdbQuerys, TParams} from "./types";
|
|
3
|
+
import { ICoreSystravelSelectdbQuerys, TParams } from "./types";
|
|
4
4
|
|
|
5
5
|
class SysTravelRequest {
|
|
6
6
|
private httpRequest: HttpRequest;
|
package/packages/core/types.ts
CHANGED
|
@@ -421,10 +421,10 @@ export class TCoreUserScanloginQuerys implements ICoreUserScanloginQuerys {
|
|
|
421
421
|
}
|
|
422
422
|
|
|
423
423
|
export interface ICoreUserVerifydbDingdingQuerys {
|
|
424
|
-
thirdapp: "DD" | "SSO";
|
|
424
|
+
thirdapp: "DD" | "SSO" | "";
|
|
425
425
|
}
|
|
426
426
|
export class TCoreUserVerifydbDingdingQuerys implements ICoreUserVerifydbDingdingQuerys {
|
|
427
|
-
thirdapp: "DD" | "SSO";
|
|
427
|
+
thirdapp: "DD" | "SSO" | "" = "";
|
|
428
428
|
}
|
|
429
429
|
|
|
430
430
|
export interface ICoreUserSelectdbTokenusrHeaders {
|