forked from wangziqi/gongxue-base
34 lines
495 B
TypeScript
34 lines
495 B
TypeScript
import { IsInt, IsNumber, IsString, IsOptional } from 'class-validator';
|
|
|
|
export class CreateDepositDto {
|
|
@IsInt()
|
|
studentId: number;
|
|
|
|
@IsNumber()
|
|
amount: number;
|
|
|
|
@IsString()
|
|
paidDate: string;
|
|
|
|
@IsOptional()
|
|
@IsString()
|
|
notes?: string;
|
|
}
|
|
|
|
export class RefundDepositDto {
|
|
@IsString()
|
|
refundDate: string;
|
|
|
|
@IsOptional()
|
|
@IsNumber()
|
|
deductionAmount?: number;
|
|
|
|
@IsOptional()
|
|
@IsString()
|
|
deductionReason?: string;
|
|
|
|
@IsOptional()
|
|
@IsString()
|
|
notes?: string;
|
|
}
|