@ningboyz/types 1.6.180 → 1.6.182
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
CHANGED
|
@@ -3,6 +3,7 @@ import type { IGzjgGzlmResponseGzlmPara } from "./IGzjgGzlmResponseGzlmPara";
|
|
|
3
3
|
import { TGzjgGzlmResponseGzlmPara } from "./IGzjgGzlmResponseGzlmPara";
|
|
4
4
|
import { IElemElemResponse } from "../elem/IElemElemResponse";
|
|
5
5
|
import { construct, destruct } from "@aximario/json-tree";
|
|
6
|
+
import {TGzlmLiteResponse} from "./IGzlmLiteResponse.ts";
|
|
6
7
|
|
|
7
8
|
// #工资栏目
|
|
8
9
|
export interface IGzjgGzlmResponse {
|
|
@@ -190,4 +191,28 @@ export class TGzjgGzlmResponse implements IGzjgGzlmResponse {
|
|
|
190
191
|
public static toList(listGzlm: IGzjgGzlmResponse[]) {
|
|
191
192
|
return destruct(_.cloneDeep(listGzlm), { id: "gzlmFlid", pid: "parentID", children: "children" }) as IGzjgGzlmResponse[];
|
|
192
193
|
}
|
|
194
|
+
|
|
195
|
+
static toGzlmLite(listPara: IGzjgGzlmResponse[]) {
|
|
196
|
+
var result = [];
|
|
197
|
+
|
|
198
|
+
for (let index = 0; index < listPara.length; index++) {
|
|
199
|
+
const element = listPara[index];
|
|
200
|
+
|
|
201
|
+
var gzlmLite = new TGzlmLiteResponse();
|
|
202
|
+
gzlmLite.whoBuild = element.whoBuild;
|
|
203
|
+
gzlmLite.userIndx = element.userIndx;
|
|
204
|
+
gzlmLite.gzjgIndx = element.gzjgIndx;
|
|
205
|
+
gzlmLite.gzlmFlid = element.gzlmFlid;
|
|
206
|
+
|
|
207
|
+
gzlmLite.gzlmFlbh = element.gzlmFlbh;
|
|
208
|
+
gzlmLite.gzlmFljs = element.gzlmFljs;
|
|
209
|
+
gzlmLite.gzlmFllx = element.gzlmFllx;
|
|
210
|
+
gzlmLite.gzlmFlws = element.gzlmFlws;
|
|
211
|
+
gzlmLite.typTotal = element.typTotal;
|
|
212
|
+
|
|
213
|
+
result.push(gzlmLite);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
return result;
|
|
217
|
+
}
|
|
193
218
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface IGzlmLiteResponse {
|
|
2
|
+
whoBuild: number;
|
|
3
|
+
userIndx: number;
|
|
4
|
+
gzjgIndx: number;
|
|
5
|
+
gzlmFlid: number;
|
|
6
|
+
gzlmFlbh: number;
|
|
7
|
+
gzlmFllx: number;
|
|
8
|
+
gzlmFlws: number;
|
|
9
|
+
gzlmFljs: number;
|
|
10
|
+
typTotal: number;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export class TGzlmLiteResponse implements IGzlmLiteResponse {
|
|
14
|
+
whoBuild: number = 0;
|
|
15
|
+
userIndx: number = 0;
|
|
16
|
+
gzjgIndx: number = 0;
|
|
17
|
+
gzlmFlid: number = 0;
|
|
18
|
+
gzlmFlbh: number = 0;
|
|
19
|
+
gzlmFllx: number = 0;
|
|
20
|
+
gzlmFlws: number = 0;
|
|
21
|
+
gzlmFljs: number = 0;
|
|
22
|
+
typTotal: number = 0;
|
|
23
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import _ from "lodash";
|
|
2
|
+
|
|
3
|
+
export interface ILihaResponse {
|
|
4
|
+
whoBuild: number;
|
|
5
|
+
userIndx: number;
|
|
6
|
+
lihaIndx: number;
|
|
7
|
+
parentID: number;
|
|
8
|
+
hashCode: number;
|
|
9
|
+
dataLevl: number;
|
|
10
|
+
dataStat: number;
|
|
11
|
+
dataOrdr: number;
|
|
12
|
+
dataDate: number;
|
|
13
|
+
dataTime: number;
|
|
14
|
+
dataHide: number;
|
|
15
|
+
dataFrom: number;
|
|
16
|
+
kjndKJQJ: number;
|
|
17
|
+
dataGUID: string;
|
|
18
|
+
mastName: string;
|
|
19
|
+
mastGUID: string;
|
|
20
|
+
createBy: string;
|
|
21
|
+
createAt: number;
|
|
22
|
+
updateBy: string;
|
|
23
|
+
updateAt: number;
|
|
24
|
+
deleteBy: string;
|
|
25
|
+
deleteAt: number;
|
|
26
|
+
queuesBy: number;
|
|
27
|
+
entityID: string;
|
|
28
|
+
lihaCode: string;
|
|
29
|
+
bankCall: string;
|
|
30
|
+
bankAddr: string;
|
|
31
|
+
bankName: string;
|
|
32
|
+
asNormal: number;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
export class TLihaResponse implements ILihaResponse {
|
|
37
|
+
whoBuild: number = 0;
|
|
38
|
+
userIndx: number = 0;
|
|
39
|
+
lihaIndx: number = 0;
|
|
40
|
+
parentID: number = 0;
|
|
41
|
+
hashCode: number = 0;
|
|
42
|
+
dataLevl: number = 0;
|
|
43
|
+
dataStat: number = 0;
|
|
44
|
+
dataOrdr: number = 0;
|
|
45
|
+
dataDate: number = 0;
|
|
46
|
+
dataTime: number = 0;
|
|
47
|
+
dataHide: number = 0;
|
|
48
|
+
dataFrom: number = 0;
|
|
49
|
+
kjndKJQJ: number = 0;
|
|
50
|
+
dataGUID: string = "";
|
|
51
|
+
mastName: string = "";
|
|
52
|
+
mastGUID: string = "";
|
|
53
|
+
createBy: string = "";
|
|
54
|
+
createAt: number = 0;
|
|
55
|
+
updateBy: string = "";
|
|
56
|
+
updateAt: number = 0;
|
|
57
|
+
deleteBy: string = "";
|
|
58
|
+
deleteAt: number = 0;
|
|
59
|
+
queuesBy: number = 0;
|
|
60
|
+
entityID: string = "";
|
|
61
|
+
lihaCode: string = "";
|
|
62
|
+
bankCall: string = "";
|
|
63
|
+
bankAddr: string = "";
|
|
64
|
+
bankName: string = "";
|
|
65
|
+
asNormal: number = 0;
|
|
66
|
+
constructor(data: Partial<ILihaResponse> = {}) {
|
|
67
|
+
if (data) {
|
|
68
|
+
_.merge(this, _.pick(data, Object.keys(this)));
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
package/src/wlzf/index.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { IWlzfEnvrResponse, TWlzfEnvrResponse } from "./IWlzfEnvrResponse";
|
|
2
|
+
import { ILihaResponse, TLihaResponse } from "./ILihaResponse";
|
|
2
3
|
|
|
3
|
-
export { type IWlzfEnvrResponse, TWlzfEnvrResponse };
|
|
4
|
+
export { type IWlzfEnvrResponse, TWlzfEnvrResponse, type ILihaResponse, TLihaResponse };
|