ec-nest/src/auth/dto.ts
2026-10-10 21:13:35 +08:00

22 lines
324 B
TypeScript

import { IsNotEmpty, IsString } from 'class-validator';
export class LoginDto {
@IsString()
@IsNotEmpty()
tenantCode!: string;
@IsString()
@IsNotEmpty()
username!: string;
@IsString()
@IsNotEmpty()
password!: string;
}
export class RefreshDto {
@IsString()
@IsNotEmpty()
refreshToken!: string;
}