@ningboyz/types 1.0.80 → 1.0.82
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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IDeptResponse, IDictResponse,
|
|
1
|
+
import { IDeptResponse, IDictResponse, IUnitResponse, IUserResponse } from "../core";
|
|
2
2
|
import { IUserPartResponse } from "../core/IUserPartResponse";
|
|
3
3
|
import { IGblbResponse } from "./IGblbResponse";
|
|
4
4
|
import { IZclbResponse } from "./IZclbResponse";
|
|
@@ -29,7 +29,7 @@ export interface ICardMainFindResponse {
|
|
|
29
29
|
cardZjly: IDictResponse[];
|
|
30
30
|
cardRzrqRange: IRangeVal;
|
|
31
31
|
cardGrrqRange: IRangeVal;
|
|
32
|
-
cardLaid:
|
|
32
|
+
cardLaid: IUserPartResponse[];
|
|
33
33
|
cardDept: IDeptResponse[];
|
|
34
34
|
cardUser: IUserPartResponse[];
|
|
35
35
|
cardKeep: IUserResponse[];
|
|
@@ -68,7 +68,7 @@ export class TCardMainFindResponse implements ICardMainFindResponse {
|
|
|
68
68
|
cardZjly: IDictResponse[] = [];
|
|
69
69
|
cardRzrqRange: IRangeVal = new TRangeVal();
|
|
70
70
|
cardGrrqRange: IRangeVal = new TRangeVal();
|
|
71
|
-
cardLaid:
|
|
71
|
+
cardLaid: IUserPartResponse[] = [];
|
|
72
72
|
cardDept: IDeptResponse[] = [];
|
|
73
73
|
cardUser: IUserPartResponse[] = [];
|
|
74
74
|
cardKeep: IUserResponse[] = [];
|
|
@@ -1,159 +1,165 @@
|
|
|
1
1
|
import { type IBaseResponse, TBaseResponse } from "../base/IBaseResponse";
|
|
2
2
|
import _ from "lodash";
|
|
3
|
+
import { construct } from "@aximario/json-tree";
|
|
3
4
|
|
|
4
5
|
export interface IUserPartResponse extends IBaseResponse<IUserPartResponse[]> {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
6
|
+
whoBuild: number; // #PK
|
|
7
|
+
userIndx: number; // #PK
|
|
8
|
+
userExid: number; // #PK
|
|
9
|
+
createAt: number;
|
|
10
|
+
createBy: string;
|
|
11
|
+
mastName: string;
|
|
12
|
+
mastGUID: string;
|
|
13
|
+
updateBy: string;
|
|
14
|
+
updateAt: number;
|
|
15
|
+
dataDate: number;
|
|
16
|
+
dataFrom: number;
|
|
17
|
+
dataHide: number;
|
|
18
|
+
dataOrdr: number;
|
|
19
|
+
parentID: number;
|
|
20
|
+
dataStat: number;
|
|
21
|
+
dataTime: number;
|
|
22
|
+
deleteAt: number;
|
|
23
|
+
deleteBy: string;
|
|
24
|
+
deviceID: string;
|
|
25
|
+
deviceOn: number;
|
|
26
|
+
enrollBy: number;
|
|
27
|
+
enrollID: string;
|
|
28
|
+
userPswd: string;
|
|
29
|
+
entityID: string;
|
|
30
|
+
hashCode: number;
|
|
31
|
+
inGender: number;
|
|
32
|
+
isLocked: number;
|
|
33
|
+
queuesBy: number;
|
|
34
|
+
uniqueID: number;
|
|
35
|
+
vitualID: number;
|
|
36
|
+
takeType: number;
|
|
37
|
+
fromWhoBuild: number;
|
|
38
|
+
fromUserIndx: number;
|
|
39
|
+
fromUsrPartC: number;
|
|
40
|
+
fromUserUUID: string;
|
|
41
|
+
fromUsesBBHZ: number;
|
|
42
|
+
fromUsesSXHX: number;
|
|
43
|
+
FromUsesZBHD: number;
|
|
44
|
+
FromUsesFlow: number;
|
|
45
|
+
FromUsrPartN: string;
|
|
44
46
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
fromUnitIndx: number;
|
|
48
|
+
fromUnitCode: string;
|
|
49
|
+
fromUnitNamf: string;
|
|
50
|
+
fromDataType: number;
|
|
49
51
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
52
|
+
fromDeptIndx: number;
|
|
53
|
+
fromDeptCode: string;
|
|
54
|
+
fromDeptName: string;
|
|
53
55
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
56
|
+
fromLaidIndx: number;
|
|
57
|
+
fromLaidCode: string;
|
|
58
|
+
fromLaidName: string;
|
|
57
59
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
60
|
+
fromDictIndx: number;
|
|
61
|
+
fromDictCode: string;
|
|
62
|
+
fromDictName: string;
|
|
61
63
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
fromSourceND: number;
|
|
65
|
+
fromSourceID: number;
|
|
66
|
+
fromCnfgCode: string;
|
|
67
|
+
fromCnfgName: string;
|
|
66
68
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
69
|
+
fromGzjgIndx: number;
|
|
70
|
+
fromGzjgName: string;
|
|
71
|
+
fromGzjgMemo: string;
|
|
70
72
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
+
fromUserMain: number;
|
|
74
|
+
fromUserName: string;
|
|
73
75
|
}
|
|
74
76
|
|
|
75
77
|
export class TUserPartResponse extends TBaseResponse<IUserPartResponse[]> implements IUserPartResponse {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
78
|
+
whoBuild: number = 0; // #PK
|
|
79
|
+
userIndx: number = 0; // #PK
|
|
80
|
+
coverURL: string = "";
|
|
81
|
+
createAt: number = 0;
|
|
82
|
+
createBy: string = "";
|
|
83
|
+
dContact: string = "";
|
|
84
|
+
dataDate: number = 0;
|
|
85
|
+
dataFrom: number = 0;
|
|
86
|
+
dataGUID: string = "";
|
|
87
|
+
dataHide: number = 0;
|
|
88
|
+
dataLevl: number = 0;
|
|
89
|
+
dataOrdr: number = 0;
|
|
90
|
+
dataStat: number = 0;
|
|
91
|
+
dataTime: number = 0;
|
|
92
|
+
deleteAt: number = 0;
|
|
93
|
+
deleteBy: string = "";
|
|
94
|
+
deptMain: number = 0;
|
|
95
|
+
deptName: string = "";
|
|
96
|
+
entityID: string = "";
|
|
95
97
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
98
|
+
hashCode: number = 0;
|
|
99
|
+
kjndKJQJ: number = 0;
|
|
100
|
+
mastGUID: string = "";
|
|
101
|
+
mastName: string = "";
|
|
102
|
+
parentID: number = 0;
|
|
103
|
+
sourceDW: string = "";
|
|
102
104
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
105
|
+
touchURL: string = "";
|
|
106
|
+
unitMain: number = 0;
|
|
107
|
+
unitNamf: string = "";
|
|
108
|
+
updateAt: number = 0;
|
|
109
|
+
updateBy: string = "";
|
|
110
|
+
userName: string = "";
|
|
111
|
+
fromSourceND: number = 0;
|
|
112
|
+
fromUserIndx: number = 0;
|
|
113
|
+
fromWhoBuild: number = 0;
|
|
114
|
+
queuesBy: number = 0;
|
|
115
|
+
deviceID: string = "";
|
|
116
|
+
deviceOn: number = 0;
|
|
117
|
+
enrollBy: number = 0;
|
|
118
|
+
enrollID: string = "";
|
|
119
|
+
inGender: number = 0;
|
|
120
|
+
isLocked: number = 0;
|
|
121
|
+
userExid: number = 0;
|
|
122
|
+
userPswd: string = "";
|
|
123
|
+
FromUsesFlow: number = 0;
|
|
124
|
+
FromUsesZBHD: number = 0;
|
|
125
|
+
FromUsrPartN: string = "";
|
|
126
|
+
fromCnfgCode: string = "";
|
|
127
|
+
fromCnfgName: string = "";
|
|
128
|
+
fromDataType: number = 0;
|
|
129
|
+
fromDeptCode: string = "";
|
|
130
|
+
fromDeptIndx: number = 0;
|
|
131
|
+
fromDeptName: string = "";
|
|
132
|
+
fromDictCode: string = "";
|
|
133
|
+
fromDictIndx: number = 0;
|
|
134
|
+
fromDictName: string = "";
|
|
135
|
+
fromGzjgIndx: number = 0;
|
|
136
|
+
fromGzjgMemo: string = "";
|
|
137
|
+
fromGzjgName: string = "";
|
|
138
|
+
fromLaidCode: string = "";
|
|
139
|
+
fromLaidIndx: number = 0;
|
|
140
|
+
fromLaidName: string = "";
|
|
141
|
+
fromSourceID: number = 0;
|
|
142
|
+
fromUnitCode: string = "";
|
|
143
|
+
fromUnitIndx: number = 0;
|
|
144
|
+
fromUnitNamf: string = "";
|
|
145
|
+
fromUserMain: number = 0;
|
|
146
|
+
fromUserName: string = "";
|
|
147
|
+
fromUserUUID: string = "";
|
|
148
|
+
fromUsesBBHZ: number = 0;
|
|
149
|
+
fromUsesSXHX: number = 0;
|
|
150
|
+
fromUsrPartC: number = 0;
|
|
151
|
+
takeType: number = 0;
|
|
152
|
+
uniqueID: number = 0;
|
|
153
|
+
vitualID: number = 0;
|
|
152
154
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
155
|
+
public static toTree(listUser: IUserPartResponse[]) {
|
|
156
|
+
return construct(listUser, { id: "fromLaidIndx", pid: "parentID", children: "children" }) as IUserPartResponse[];
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
constructor(response?: any) {
|
|
160
|
+
super();
|
|
161
|
+
if (response) {
|
|
162
|
+
_.merge(this, _.pick(response, Object.keys(this)));
|
|
158
163
|
}
|
|
164
|
+
}
|
|
159
165
|
}
|