15 lines
259 B
TypeScript
15 lines
259 B
TypeScript
|
export class Customer {
|
||
|
id: string;
|
||
|
name: string;
|
||
|
phone: string;
|
||
|
address: string;
|
||
|
|
||
|
public constructor(init?: Partial<Customer>) {
|
||
|
this.id = '';
|
||
|
this.name = '';
|
||
|
this.phone = '';
|
||
|
this.address = '';
|
||
|
Object.assign(this, init);
|
||
|
}
|
||
|
}
|