15 lines
291 B
TypeScript
15 lines
291 B
TypeScript
|
import { BaseRequest } from './base';
|
||
|
import { IsEmail, IsNotEmpty } from 'class-validator';
|
||
|
|
||
|
export class AuthSignUpRequest extends BaseRequest {
|
||
|
@IsEmail()
|
||
|
username: string;
|
||
|
|
||
|
@IsNotEmpty()
|
||
|
password: string;
|
||
|
}
|
||
|
|
||
|
export class AuthLoginRequest extends AuthSignUpRequest {
|
||
|
otp?: string;
|
||
|
}
|