@ningboyz/types 1.8.159 → 1.8.160
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,3 +1,5 @@
|
|
|
1
|
+
import _ from "lodash";
|
|
2
|
+
|
|
1
3
|
export interface IYzhtBillResponse {
|
|
2
4
|
whoBuild: number;
|
|
3
5
|
userIndx: number;
|
|
@@ -241,4 +243,10 @@ export class TYzhtBillResponse implements IYzhtBillResponse {
|
|
|
241
243
|
zjxzUUID: string = "";
|
|
242
244
|
zjxzCode: string = "";
|
|
243
245
|
zjxzName: string = "";
|
|
246
|
+
|
|
247
|
+
constructor(bill: any = {}) {
|
|
248
|
+
if (bill) {
|
|
249
|
+
_.merge(this, _.pick(bill, Object.keys(this)));
|
|
250
|
+
}
|
|
251
|
+
}
|
|
244
252
|
}
|