14 lines
203 B
TypeScript
14 lines
203 B
TypeScript
|
import { IsNotEmpty, IsEmail } from 'class-validator'
|
||
|
|
||
|
export class ChangeEmailDto {
|
||
|
@IsNotEmpty()
|
||
|
@IsEmail()
|
||
|
email: string
|
||
|
|
||
|
@IsNotEmpty()
|
||
|
verifyCode: string
|
||
|
|
||
|
@IsNotEmpty()
|
||
|
token: string
|
||
|
}
|