22 lines
324 B
TypeScript
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;
|
|
}
|