@ningboyz/apis 1.8.91 → 1.8.93
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/index.ts +3 -1
- package/package.json +2 -2
- package/packages/core/index.ts +3 -0
- package/packages/core/sysstatus.ts +21 -0
- package/packages/core/types.ts +10 -0
- package/packages/index.ts +1 -1
- package/packages/sysenvr/index.ts +14 -0
- package/packages/sysenvr/inventory.ts +45 -0
- package/packages/sysenvr/types.ts +12 -0
package/index.ts
CHANGED
|
@@ -41,6 +41,7 @@ import YzpzRequest from "./packages/yzpz";
|
|
|
41
41
|
import ZbhdRequest from "./packages/zbhd";
|
|
42
42
|
import ZbzdRequest from "./packages/zbzd";
|
|
43
43
|
import NoteRequest from "./packages/note";
|
|
44
|
+
import SysenvrRequest from "./packages/sysenvr";
|
|
44
45
|
|
|
45
46
|
class JavaRequest {
|
|
46
47
|
public static ssb: SsbRequest;
|
|
@@ -93,6 +94,7 @@ class Request {
|
|
|
93
94
|
public static ding: DingRequest;
|
|
94
95
|
public static yzcq: YzcqRequest;
|
|
95
96
|
public static note: NoteRequest;
|
|
97
|
+
public static sysenvr: SysenvrRequest;
|
|
96
98
|
|
|
97
99
|
public static createRequest(config: IAxiosConfig) {
|
|
98
100
|
this.core = new CoreRequest(config);
|
|
@@ -135,10 +137,10 @@ class Request {
|
|
|
135
137
|
this.ding = new DingRequest(config);
|
|
136
138
|
this.yzcq = new YzcqRequest(config);
|
|
137
139
|
this.note = new NoteRequest(config);
|
|
140
|
+
this.sysenvr = new SysenvrRequest(config);
|
|
138
141
|
}
|
|
139
142
|
}
|
|
140
143
|
|
|
141
144
|
export default Request;
|
|
142
145
|
export * from "./packages";
|
|
143
146
|
export { JavaRequest };
|
|
144
|
-
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/apis",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.93",
|
|
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.93",
|
|
21
21
|
"axios": "1.8.4",
|
|
22
22
|
"lodash": "^4.17.21"
|
|
23
23
|
},
|
package/packages/core/index.ts
CHANGED
|
@@ -18,6 +18,7 @@ import SysTravelRequest from "./systravel";
|
|
|
18
18
|
import TypeRequest from "./type";
|
|
19
19
|
import UnitRequest from "./unit";
|
|
20
20
|
import UserRequest from "./user";
|
|
21
|
+
import SysStatusRequest from "./sysstatus";
|
|
21
22
|
|
|
22
23
|
class CoreRequest {
|
|
23
24
|
public type: TypeRequest;
|
|
@@ -39,6 +40,7 @@ class CoreRequest {
|
|
|
39
40
|
public mast: MastRequest;
|
|
40
41
|
public dddw: DddwRequest;
|
|
41
42
|
public skdw: SkdwRequest;
|
|
43
|
+
public sysstatus: SysStatusRequest;
|
|
42
44
|
|
|
43
45
|
constructor(config: IAxiosConfig) {
|
|
44
46
|
const request = createRequest(config);
|
|
@@ -61,6 +63,7 @@ class CoreRequest {
|
|
|
61
63
|
this.mast = new MastRequest(request);
|
|
62
64
|
this.dddw = new DddwRequest(request);
|
|
63
65
|
this.skdw = new SkdwRequest(request);
|
|
66
|
+
this.sysstatus = new SysStatusRequest(request);
|
|
64
67
|
}
|
|
65
68
|
}
|
|
66
69
|
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { TCore } from "@ningboyz/types";
|
|
2
|
+
import type { HttpRequest } from "../axios";
|
|
3
|
+
import { ICoreSysstatusSelectdbQuerys } from "./types";
|
|
4
|
+
|
|
5
|
+
class SysStatusRequest {
|
|
6
|
+
private httpRequest: HttpRequest;
|
|
7
|
+
constructor(httpRequest: HttpRequest) {
|
|
8
|
+
this.httpRequest = httpRequest;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* 获取错误日志
|
|
13
|
+
* @param querys
|
|
14
|
+
* @returns
|
|
15
|
+
*/
|
|
16
|
+
selectdb(querys: ICoreSysstatusSelectdbQuerys, params: object) {
|
|
17
|
+
return this.httpRequest.post<TCore.ISysStatusResponse[]>("/gapi/core/tsysstatus/selectdb", querys, params);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export default SysStatusRequest;
|
package/packages/core/types.ts
CHANGED
|
@@ -1693,3 +1693,13 @@ export class TCoreUserUnbindCaQuerys implements ICoreUserUnbindCaQuerys {
|
|
|
1693
1693
|
usermain: number = -1;
|
|
1694
1694
|
verifyid: string = "";
|
|
1695
1695
|
}
|
|
1696
|
+
|
|
1697
|
+
export interface ICoreSysstatusSelectdbQuerys {
|
|
1698
|
+
tablfrom: "WEB" | "MOBILE" | "DINGDING" | "ZWDD" | "WEIXIN";
|
|
1699
|
+
queuesby: string;
|
|
1700
|
+
}
|
|
1701
|
+
|
|
1702
|
+
export class TCoreSysstatusSelectdbQuerys implements ICoreSysstatusSelectdbQuerys {
|
|
1703
|
+
tablfrom: "WEB" | "MOBILE" | "DINGDING" | "ZWDD" | "WEIXIN" = "WEB";
|
|
1704
|
+
queuesby: string = "";
|
|
1705
|
+
}
|
package/packages/index.ts
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { createRequest, IAxiosConfig } from "../axios";
|
|
2
|
+
import InventoryRequest from "./inventory";
|
|
3
|
+
|
|
4
|
+
class SysenvrRequest {
|
|
5
|
+
public inventory: InventoryRequest;
|
|
6
|
+
|
|
7
|
+
constructor(config: IAxiosConfig) {
|
|
8
|
+
const request = createRequest(config);
|
|
9
|
+
this.inventory = new InventoryRequest(request);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export default SysenvrRequest;
|
|
14
|
+
export * from "./types";
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { TSsb } from "@ningboyz/types";
|
|
2
|
+
import { HttpRequest } from "../axios";
|
|
3
|
+
import { ISysenvrInventoryUploaddbQuerys, ISysenvrInventoryEncryptQuerys, ISysenvrInventoryDecryptQuerys } from "./types";
|
|
4
|
+
|
|
5
|
+
class InventoryRequest {
|
|
6
|
+
private httpRequest: HttpRequest;
|
|
7
|
+
constructor(httpRequest: HttpRequest) {
|
|
8
|
+
this.httpRequest = httpRequest;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* 存量哈希
|
|
13
|
+
*
|
|
14
|
+
* @param querys
|
|
15
|
+
* @param params
|
|
16
|
+
* @returns
|
|
17
|
+
*/
|
|
18
|
+
selectdb(querys: ISysenvrInventoryUploaddbQuerys, params: object) {
|
|
19
|
+
return this.httpRequest.post<TSsb.ISocialInsuranceResponse[]>("/gapi/tsysenvr/hmactext/uploaddb", querys, params);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* 存量加密
|
|
24
|
+
*
|
|
25
|
+
* @param querys
|
|
26
|
+
* @param params
|
|
27
|
+
* @returns
|
|
28
|
+
*/
|
|
29
|
+
detaildb(querys: ISysenvrInventoryEncryptQuerys, params: object) {
|
|
30
|
+
return this.httpRequest.post<TSsb.ISocialInsuranceResponse[]>("/gapi/tsysenvr/encrypt", querys, params);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* 存量解密
|
|
35
|
+
*
|
|
36
|
+
* @param querys
|
|
37
|
+
* @param params
|
|
38
|
+
* @returns
|
|
39
|
+
*/
|
|
40
|
+
syncdb(querys: ISysenvrInventoryDecryptQuerys, params: object) {
|
|
41
|
+
return this.httpRequest.post<TSsb.ISocialInsuranceResponse[]>("/gapi/tsysenvr/decrypt", querys, params);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export default InventoryRequest;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** ========== Inventory ==========*/
|
|
2
|
+
export interface ISysenvrInventoryUploaddbQuerys {}
|
|
3
|
+
|
|
4
|
+
export class TSysenvrInventoryUploaddbQuerys implements ISysenvrInventoryUploaddbQuerys {}
|
|
5
|
+
|
|
6
|
+
export interface ISysenvrInventoryEncryptQuerys {}
|
|
7
|
+
|
|
8
|
+
export class TSysenvrInventoryEncryptQuerys implements ISysenvrInventoryEncryptQuerys {}
|
|
9
|
+
|
|
10
|
+
export interface ISysenvrInventoryDecryptQuerys {}
|
|
11
|
+
|
|
12
|
+
export class TSysenvrInventoryDecryptQuerys implements ISysenvrInventoryDecryptQuerys {}
|