@ningboyz/apis 1.8.92 → 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/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/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 {}
|