@ningboyz/apis 1.4.181 → 1.4.183
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/take/main.ts +19 -1
- package/packages/take/types.ts +33 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/apis",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.183",
|
|
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.183",
|
|
21
21
|
"axios": "1.8.4",
|
|
22
22
|
"lodash": "^4.17.21"
|
|
23
23
|
},
|
package/packages/take/main.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { HttpRequest } from "../axios";
|
|
2
2
|
import type { TTake } from "@ningboyz/types";
|
|
3
|
-
import { ITakeMainDeletedsQuerys, ITakeMainDetaildbQuerys, ITakeMainInsertdsQuerys, ITakeMainSelectdbQuerys, ITakeMainUpdatedsQuerys } from "./types";
|
|
3
|
+
import { ITakeMainDeletedbQuerys, ITakeMainDeletedsQuerys, ITakeMainDetaildbQuerys, ITakeMainInsertdbQuerys, ITakeMainInsertdsQuerys, ITakeMainSelectdbQuerys, ITakeMainUpdatedbQuerys, ITakeMainUpdatedsQuerys } from "./types";
|
|
4
4
|
|
|
5
5
|
class MainRequest {
|
|
6
6
|
private httpRequest: HttpRequest;
|
|
@@ -32,6 +32,24 @@ class MainRequest {
|
|
|
32
32
|
detaildb(querys: ITakeMainDetaildbQuerys, params: object) {
|
|
33
33
|
return this.httpRequest.post<TTake.ITakeMainResponse>("/gapi/take/tmain/detaildb", querys, params);
|
|
34
34
|
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
insertdb(querys: ITakeMainInsertdbQuerys, params: object) {
|
|
38
|
+
return this.httpRequest.post<TTake.ITakeMainResponse>("/gapi/take/tmain/insertdb", querys, params);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
updatedb(querys: ITakeMainUpdatedbQuerys, params: object) {
|
|
42
|
+
return this.httpRequest.post<TTake.ITakeMainResponse>("/gapi/take/tmain/updatedb", querys, params);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
deletedb(querys: ITakeMainDeletedbQuerys, params: object) {
|
|
46
|
+
return this.httpRequest.post<TTake.ITakeMainResponse>("/gapi/take/tmain/deletedb", querys, params);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
35
53
|
}
|
|
36
54
|
|
|
37
55
|
export default MainRequest;
|
package/packages/take/types.ts
CHANGED
|
@@ -81,3 +81,36 @@ export class TTakeMainDetaildbQuerys implements ITakeMainDetaildbQuerys {
|
|
|
81
81
|
unitmain: number = -1;
|
|
82
82
|
tackCode: number = -1;
|
|
83
83
|
}
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
export interface ITakeMainInsertdbQuerys {
|
|
87
|
+
sourcend: number;
|
|
88
|
+
unitmain: number;
|
|
89
|
+
useflow: number;
|
|
90
|
+
moneypoint: number;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export class TTakeMainInsertdbQuerys implements ITakeMainInsertdbQuerys {
|
|
94
|
+
sourcend: number = -1;
|
|
95
|
+
unitmain: number = -1;
|
|
96
|
+
useflow: number = -1;
|
|
97
|
+
moneypoint: number = -1;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export interface ITakeMainUpdatedbQuerys {
|
|
101
|
+
unitmain: number;
|
|
102
|
+
useflow: number;
|
|
103
|
+
moneypoint: number;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export class TTakeMainUpdatedbQuerys implements ITakeMainUpdatedbQuerys {
|
|
107
|
+
unitmain: number = -1;
|
|
108
|
+
useflow: number = -1;
|
|
109
|
+
moneypoint: number = -1;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export interface ITakeMainDeletedbQuerys {
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export class TTakeMainDeletedbQuerys implements ITakeMainDeletedbQuerys {
|
|
116
|
+
}
|