init
This commit is contained in:
19
dto/admin.ts
Normal file
19
dto/admin.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
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
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user