@ningboyz/types 1.4.4 → 1.4.5
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
|
@@ -70,4 +70,10 @@ export class TJapzCnfgResponse implements IJapzCnfgResponse {
|
|
|
70
70
|
unitText: string = "";
|
|
71
71
|
|
|
72
72
|
listUnit: IUnitResponse[] = [];
|
|
73
|
+
|
|
74
|
+
constructor(data: Partial<IJapzCnfgResponse> = {}) {
|
|
75
|
+
if (data) {
|
|
76
|
+
_.merge(this, _.pick(data, Object.keys(this)));
|
|
77
|
+
}
|
|
78
|
+
}
|
|
73
79
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IJapzK9kmResponse } from "./IJapzK9kmResponse";
|
|
2
|
+
import _ from "lodash";
|
|
2
3
|
|
|
3
4
|
export interface IJapzItemResponse {
|
|
4
5
|
whoBuild: number;
|
|
@@ -124,4 +125,10 @@ export class TJapzItemResponse implements IJapzItemResponse {
|
|
|
124
125
|
|
|
125
126
|
listK9km: IJapzK9kmResponse[] = [];
|
|
126
127
|
listK9rg: IJapzK9kmResponse[] = [];
|
|
128
|
+
|
|
129
|
+
constructor(data: Partial<IJapzItemResponse> = {}) {
|
|
130
|
+
if (data) {
|
|
131
|
+
_.merge(this, _.pick(data, Object.keys(this)));
|
|
132
|
+
}
|
|
133
|
+
}
|
|
127
134
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import _ from "lodash";
|
|
2
|
+
|
|
1
3
|
export interface IJapzK0kmResponse {
|
|
2
4
|
whoBuild: number;
|
|
3
5
|
userIndx: number;
|
|
@@ -61,4 +63,10 @@ export class TJapzK0kmResponse implements IJapzK0kmResponse {
|
|
|
61
63
|
entityID: string = "";
|
|
62
64
|
k0kmKmbm: string = "";
|
|
63
65
|
k0kmKmmc: string = "";
|
|
66
|
+
|
|
67
|
+
constructor(data: Partial<IJapzK0kmResponse> = {}) {
|
|
68
|
+
if (data) {
|
|
69
|
+
_.merge(this, _.pick(data, Object.keys(this)));
|
|
70
|
+
}
|
|
71
|
+
}
|
|
64
72
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IJapzItemResponse } from "./IJapzItemResponse";
|
|
2
|
+
import _ from "lodash";
|
|
2
3
|
|
|
3
4
|
export interface IJapzK7kmResponse {
|
|
4
5
|
whoBuild: number;
|
|
@@ -69,4 +70,10 @@ export class TJapzK7kmResponse implements IJapzK7kmResponse {
|
|
|
69
70
|
|
|
70
71
|
/**检测项目 */
|
|
71
72
|
listItem: IJapzItemResponse[] = [];
|
|
73
|
+
|
|
74
|
+
constructor(data: Partial<IJapzK7kmResponse> = {}) {
|
|
75
|
+
if (data) {
|
|
76
|
+
_.merge(this, _.pick(data, Object.keys(this)));
|
|
77
|
+
}
|
|
78
|
+
}
|
|
72
79
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IJapzItemResponse } from "./IJapzItemResponse";
|
|
2
|
+
import _ from "lodash";
|
|
2
3
|
|
|
3
4
|
export interface IJapzK8kmResponse {
|
|
4
5
|
whoBuild: number;
|
|
@@ -76,4 +77,10 @@ export class TJapzK8kmResponse implements IJapzK8kmResponse {
|
|
|
76
77
|
|
|
77
78
|
/**检测项目 */
|
|
78
79
|
listItem: IJapzItemResponse[] = [];
|
|
80
|
+
|
|
81
|
+
constructor(data: Partial<IJapzK8kmResponse> = {}) {
|
|
82
|
+
if (data) {
|
|
83
|
+
_.merge(this, _.pick(data, Object.keys(this)));
|
|
84
|
+
}
|
|
85
|
+
}
|
|
79
86
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { TCore } from "..";
|
|
2
|
+
import _ from "lodash";
|
|
2
3
|
|
|
3
4
|
export interface IJapzK9kmResponse {
|
|
4
5
|
whoBuild: number;
|
|
@@ -70,4 +71,10 @@ export class TJapzK9kmResponse implements IJapzK9kmResponse {
|
|
|
70
71
|
isActive: number = 0;
|
|
71
72
|
|
|
72
73
|
listPath: TCore.IPathResponse[] = [];
|
|
74
|
+
|
|
75
|
+
constructor(data: Partial<IJapzK9kmResponse> = {}) {
|
|
76
|
+
if (data) {
|
|
77
|
+
_.merge(this, _.pick(data, Object.keys(this)));
|
|
78
|
+
}
|
|
79
|
+
}
|
|
73
80
|
}
|