export class Test { depositAmt: string; //存款金额 yearRate: string; putDate: string; getDate: string; saveType: string | undefined; timeType: string | undefined; time: string | undefined; constructor( options: { depositAmt?: string; yearRate?: string; putDate?: string; getDate?: string; saveType?: string | undefined; timeType?: string | undefined; time?: string | undefined; } = {} ) { this.depositAmt = options.depositAmt || ""; this.yearRate = options.yearRate || ""; this.putDate = options.putDate || ""; this.getDate = options.getDate || ""; this.saveType = options.saveType; this.timeType = options.timeType; this.time = options.time; } }