@ningboyz/apis 1.4.2 → 1.4.4
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/systravel.ts +10 -1
- package/packages/core/types.ts +12 -0
- package/packages/japz/k0km.ts +5 -1
- package/packages/japz/k7km.ts +5 -1
- package/packages/japz/k9km.ts +5 -1
- package/packages/japz/types.ts +30 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/apis",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.4",
|
|
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.4",
|
|
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 { ICoreSystravelSelectdbQuerys } from "./types";
|
|
3
|
+
import { ICoreSystravelSelectdb2Querys, ICoreSystravelSelectdbQuerys } from "./types";
|
|
4
4
|
|
|
5
5
|
class SysTravelRequest {
|
|
6
6
|
private httpRequest: HttpRequest;
|
|
@@ -17,6 +17,15 @@ class SysTravelRequest {
|
|
|
17
17
|
return this.httpRequest.post<TCore.ISysTravelResponse[]>("/core/tsystravel/selectdb", querys, undefined);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
/**
|
|
21
|
+
* 获取审计日志
|
|
22
|
+
* @param querys
|
|
23
|
+
* @returns
|
|
24
|
+
*/
|
|
25
|
+
selectdb2(querys: ICoreSystravelSelectdb2Querys) {
|
|
26
|
+
return this.httpRequest.post<TCore.ISysTravelResponse[]>("/core/tsystravel/selectdb", querys, undefined);
|
|
27
|
+
}
|
|
28
|
+
|
|
20
29
|
/**
|
|
21
30
|
* 新增审计日志
|
|
22
31
|
* @param params
|
package/packages/core/types.ts
CHANGED
|
@@ -337,6 +337,18 @@ export class TCoreSystravelSelectdbQuerys implements ICoreSystravelSelectdbQuery
|
|
|
337
337
|
tablfrom: "WEB" | "MOBILE" | "DINGDING" | "ZWDD" | "WEIXIN" = "WEB";
|
|
338
338
|
}
|
|
339
339
|
|
|
340
|
+
export interface ICoreSystravelSelectdb2Querys {
|
|
341
|
+
useronly: number;
|
|
342
|
+
tablfrom: "WEB" | "MOBILE" | "DINGDING" | "ZWDD" | "WEIXIN";
|
|
343
|
+
queuesby: string;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
export class TCoreSystravelSelectdb2Querys implements ICoreSystravelSelectdb2Querys {
|
|
347
|
+
useronly: number = -1;
|
|
348
|
+
tablfrom: "WEB" | "MOBILE" | "DINGDING" | "ZWDD" | "WEIXIN" = "WEB";
|
|
349
|
+
queuesby: string = "";
|
|
350
|
+
}
|
|
351
|
+
|
|
340
352
|
/** ========== type ========== */
|
|
341
353
|
export interface ICoreTypeSelectdbQuerys {
|
|
342
354
|
typemain: number;
|
package/packages/japz/k0km.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpRequest } from "../axios";
|
|
2
|
-
import { IJapzK0kmDeletedbQuerys, IJapzK0kmDetailQuerys, IJapzK0kmInsertdbQuerys, IJapzK0kmSelectdbQuerys, IJapzK0kmUpdatedbQuerys } from "./types";
|
|
2
|
+
import { IJapzK0kmDeletedbQuerys, IJapzK0kmDetailQuerys, IJapzK0kmInsertdbQuerys, IJapzK0kmSelectdbQuerys, IJapzK0kmUpdatedbQuerys, IJapzK0kmUploaddbQuerys } from "./types";
|
|
3
3
|
import { TJapz } from "@ningboyz/types";
|
|
4
4
|
|
|
5
5
|
class K0kmRequest {
|
|
@@ -27,6 +27,10 @@ class K0kmRequest {
|
|
|
27
27
|
deletedb(querys: IJapzK0kmDeletedbQuerys, params: object) {
|
|
28
28
|
return this.httpRequest.post<TJapz.IJapzK0kmResponse[]>("/gapi/japz/tk0km/deletedb", querys, params);
|
|
29
29
|
}
|
|
30
|
+
|
|
31
|
+
uploaddb(querys: IJapzK0kmUploaddbQuerys, params: object) {
|
|
32
|
+
return this.httpRequest.post<TJapz.IJapzK0kmResponse[]>("/gapi/japz/tk0km/uploaddb", querys, params);
|
|
33
|
+
}
|
|
30
34
|
}
|
|
31
35
|
|
|
32
36
|
export default K0kmRequest;
|
package/packages/japz/k7km.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpRequest } from "../axios";
|
|
2
|
-
import { IJapzK7kmDeletedbQuerys, IJapzK7kmDetailQuerys, IJapzK7kmInsertdbQuerys, IJapzK7kmSelectdbQuerys, IJapzK7kmUpdatedbQuerys } from "./types";
|
|
2
|
+
import { IJapzK7kmDeletedbQuerys, IJapzK7kmDetailQuerys, IJapzK7kmInsertdbQuerys, IJapzK7kmSelectdbQuerys, IJapzK7kmUpdatedbQuerys, IJapzK7kmUploaddbQuerys } from "./types";
|
|
3
3
|
import { TJapz } from "@ningboyz/types";
|
|
4
4
|
|
|
5
5
|
class K7kmRequest {
|
|
@@ -27,6 +27,10 @@ class K7kmRequest {
|
|
|
27
27
|
deletedb(querys: IJapzK7kmDeletedbQuerys, params: object) {
|
|
28
28
|
return this.httpRequest.post<TJapz.IJapzK7kmResponse[]>("/gapi/japz/tk7km/deletedb", querys, params);
|
|
29
29
|
}
|
|
30
|
+
|
|
31
|
+
uploaddb(querys: IJapzK7kmUploaddbQuerys, params: object) {
|
|
32
|
+
return this.httpRequest.post<TJapz.IJapzK7kmResponse[]>("/gapi/japz/tk7km/uploaddb", querys, params);
|
|
33
|
+
}
|
|
30
34
|
}
|
|
31
35
|
|
|
32
36
|
export default K7kmRequest;
|
package/packages/japz/k9km.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpRequest } from "../axios";
|
|
2
|
-
import { IJapzK9kmDeletedbQuerys, IJapzK9kmDetailQuerys, IJapzK9kmInsertdbQuerys, IJapzK9kmSelectdbQuerys, IJapzK9kmUpdatedbQuerys, IJapzK9kmUploaddbQuerys } from "./types";
|
|
2
|
+
import { IJapzK9kmDeletedbQuerys, IJapzK9kmDetailQuerys, IJapzK9kmInsertdbQuerys, IJapzK9kmSelectdbQuerys, IJapzK9kmUpdatedbQuerys, IJapzK9kmUploadd2Querys, IJapzK9kmUploaddbQuerys } from "./types";
|
|
3
3
|
import { TJapz } from "@ningboyz/types";
|
|
4
4
|
|
|
5
5
|
class K9kmRequest {
|
|
@@ -31,6 +31,10 @@ class K9kmRequest {
|
|
|
31
31
|
uploaddb(querys: IJapzK9kmUploaddbQuerys, params: object) {
|
|
32
32
|
return this.httpRequest.post<TJapz.IJapzK9kmResponse[]>("/gapi/japz/tk9km/isactive/uploaddb", querys, params);
|
|
33
33
|
}
|
|
34
|
+
|
|
35
|
+
uploadd2(querys: IJapzK9kmUploadd2Querys, params: object) {
|
|
36
|
+
return this.httpRequest.post<TJapz.IJapzK9kmResponse[]>("/gapi/japz/tk9km/uploaddb", querys, params);
|
|
37
|
+
}
|
|
34
38
|
}
|
|
35
39
|
|
|
36
40
|
export default K9kmRequest;
|
package/packages/japz/types.ts
CHANGED
|
@@ -195,6 +195,16 @@ export class TJapzK0kmDeletedbQuerys implements IJapzK0kmDeletedbQuerys {
|
|
|
195
195
|
sourceid: number = -1;
|
|
196
196
|
}
|
|
197
197
|
|
|
198
|
+
export interface IJapzK0kmUploaddbQuerys {
|
|
199
|
+
sourcend: number;
|
|
200
|
+
sourceid: number;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export class TJapzK0kmUploaddbQuerys implements IJapzK0kmUploaddbQuerys {
|
|
204
|
+
sourcend: number = -1;
|
|
205
|
+
sourceid: number = -1;
|
|
206
|
+
}
|
|
207
|
+
|
|
198
208
|
//#K7km
|
|
199
209
|
export interface IJapzK7kmSelectdbQuerys {
|
|
200
210
|
sourcend: number;
|
|
@@ -238,6 +248,16 @@ export class TJapzK7kmUpdatedbQuerys implements IJapzK7kmUpdatedbQuerys {
|
|
|
238
248
|
sourceid: number = -1;
|
|
239
249
|
}
|
|
240
250
|
|
|
251
|
+
export interface IJapzK7kmUploaddbQuerys {
|
|
252
|
+
sourcend: number;
|
|
253
|
+
sourceid: number;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
export class TJapzK7kmUploaddbQuerys implements IJapzK7kmUploaddbQuerys {
|
|
257
|
+
sourcend: number = -1;
|
|
258
|
+
sourceid: number = -1;
|
|
259
|
+
}
|
|
260
|
+
|
|
241
261
|
export interface IJapzK7kmDeletedbQuerys {
|
|
242
262
|
sourcend: number;
|
|
243
263
|
sourceid: number;
|
|
@@ -371,3 +391,13 @@ export class TJapzK9kmUploaddbQuerys implements IJapzK9kmUploaddbQuerys {
|
|
|
371
391
|
sourceid: number = -1;
|
|
372
392
|
isactive: number = -1;
|
|
373
393
|
}
|
|
394
|
+
|
|
395
|
+
export interface IJapzK9kmUploadd2Querys {
|
|
396
|
+
sourcend: number;
|
|
397
|
+
sourceid: number;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
export class TJapzK9kmUploadd2Querys implements IJapzK9kmUploadd2Querys {
|
|
401
|
+
sourcend: number = -1;
|
|
402
|
+
sourceid: number = -1;
|
|
403
|
+
}
|