express-template/dto/admin.ts

20 lines
324 B
TypeScript
Raw Permalink Normal View History

2021-06-19 09:55:58 +00:00
import { Expose } from 'class-transformer'
import { IsNotEmpty } from 'class-validator'
export class PostAdminMemberDto {
@Expose()
@IsNotEmpty({message:'登录用户名不能为空'})
readonly username!:string
@Expose()
@IsNotEmpty({message:'登录密码不能为空'})
readonly password!:string
}