Files
gongxue-base/apps/server/src/deposits/dto/deposit.dto.ts

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;
}