@ningboyz/apis 1.0.42 → 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 +2 -2
- package/packages/antv/type.ts +3 -0
- package/packages/axios.ts +2 -9
- package/packages/card/type.ts +2 -0
- package/packages/core/laid.ts +14 -5
- package/packages/core/systravel.ts +1 -1
- package/packages/core/types.ts +2 -2
- package/packages/core/user.ts +3 -2
- package/packages/wtui/todo.ts +1 -1
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/antv/type.ts
CHANGED
|
@@ -28,12 +28,15 @@ export interface IAntvMainGet5DataQuerys {
|
|
|
28
28
|
antvname: string;
|
|
29
29
|
cnfgname: string;
|
|
30
30
|
unittypetext: string;
|
|
31
|
+
[key: string]: string;
|
|
31
32
|
}
|
|
32
33
|
|
|
33
34
|
export class TAntvMainGet5DataQuerys implements IAntvMainGet5DataQuerys {
|
|
34
35
|
antvname: string = "";
|
|
35
36
|
cnfgname: string = "";
|
|
36
37
|
unittypetext: string = "";
|
|
38
|
+
|
|
39
|
+
[key: string]: string;
|
|
37
40
|
}
|
|
38
41
|
|
|
39
42
|
/** para */
|
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);
|
package/packages/card/type.ts
CHANGED
|
@@ -111,11 +111,13 @@ export class TCardMainUpdatedbQuerys implements ICardMainUpdatedbQuerys {
|
|
|
111
111
|
export interface ICardMainUpdated3Querys {
|
|
112
112
|
fromcardstat: number;
|
|
113
113
|
unitmain: number;
|
|
114
|
+
datatype: number;
|
|
114
115
|
}
|
|
115
116
|
|
|
116
117
|
export class TCardMainUpdated3Querys implements ICardMainUpdated3Querys {
|
|
117
118
|
fromcardstat: number = -1;
|
|
118
119
|
unitmain: number = -1;
|
|
120
|
+
datatype: number = -1;
|
|
119
121
|
}
|
|
120
122
|
|
|
121
123
|
export interface ICardMainDetaildbQuerys {
|
package/packages/core/laid.ts
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import type { TCore } from "@ningboyz/types";
|
|
2
2
|
import type { HttpRequest } from "../axios";
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
ICoreLaidInsertdbQuerys,
|
|
5
|
+
ICoreLaidSelectdbQuerys,
|
|
6
|
+
ICoreLaidUpdatedbQuerys,
|
|
7
|
+
ICoreLaidUploadd3Querys,
|
|
8
|
+
ICoreLaidUploadd4Querys,
|
|
9
|
+
TParams
|
|
10
|
+
} from "./types";
|
|
4
11
|
|
|
5
12
|
class LaidRequest {
|
|
6
13
|
private httpRequest: HttpRequest;
|
|
@@ -29,10 +36,11 @@ class LaidRequest {
|
|
|
29
36
|
/**
|
|
30
37
|
* 编辑存放地点
|
|
31
38
|
* @param querys
|
|
39
|
+
* @param params
|
|
32
40
|
* @returns
|
|
33
41
|
*/
|
|
34
|
-
updatedb(querys: ICoreLaidUpdatedbQuerys) {
|
|
35
|
-
return this.httpRequest.post<TCore.ILaidResponse[]>("/core/tlaid/updatedb", querys,
|
|
42
|
+
updatedb(querys: ICoreLaidUpdatedbQuerys, params: object) {
|
|
43
|
+
return this.httpRequest.post<TCore.ILaidResponse[]>("/core/tlaid/updatedb", querys, params);
|
|
36
44
|
}
|
|
37
45
|
|
|
38
46
|
/**
|
|
@@ -54,10 +62,11 @@ class LaidRequest {
|
|
|
54
62
|
/**
|
|
55
63
|
* 批量新增存放地点并建立树型
|
|
56
64
|
* @param querys
|
|
65
|
+
* @param params
|
|
57
66
|
* @returns
|
|
58
67
|
*/
|
|
59
|
-
uploadd3(querys: ICoreLaidUploadd3Querys) {
|
|
60
|
-
return this.httpRequest.post<TCore.ILaidResponse[]>("/core/tlaid/uploadd3", querys,
|
|
68
|
+
uploadd3(querys: ICoreLaidUploadd3Querys, params: object) {
|
|
69
|
+
return this.httpRequest.post<TCore.ILaidResponse[]>("/core/tlaid/uploadd3", querys, params);
|
|
61
70
|
}
|
|
62
71
|
|
|
63
72
|
/**
|
|
@@ -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 {
|
package/packages/core/user.ts
CHANGED
|
@@ -275,10 +275,11 @@ class UserRequest {
|
|
|
275
275
|
* 验证码输入判断
|
|
276
276
|
* 传当前浏览器的fp(visitorId),captcha:文本框输入的数值
|
|
277
277
|
* @param querys
|
|
278
|
+
* @param params
|
|
278
279
|
* @returns
|
|
279
280
|
*/
|
|
280
|
-
captcha2(querys: ICoreUserCaptcha2Querys) {
|
|
281
|
-
return this.httpRequest.post<string>("/core/tuser/captcha2", querys,
|
|
281
|
+
captcha2(querys: ICoreUserCaptcha2Querys, params: object) {
|
|
282
|
+
return this.httpRequest.post<string>("/core/tuser/captcha2", querys, params);
|
|
282
283
|
}
|
|
283
284
|
|
|
284
285
|
/**
|
package/packages/wtui/todo.ts
CHANGED
|
@@ -26,7 +26,7 @@ class TodoRequest {
|
|
|
26
26
|
* @param params
|
|
27
27
|
*/
|
|
28
28
|
deletedb(params: object) {
|
|
29
|
-
return this.httpRequest.post<TWtui.IWtuiTodoResponse[]>("/gapi/wtui/ttodo/deletedb", params);
|
|
29
|
+
return this.httpRequest.post<TWtui.IWtuiTodoResponse[]>("/gapi/wtui/ttodo/deletedb", undefined, params);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
/**
|