This commit is contained in:
2021-06-19 17:55:58 +08:00
commit 651d24ad3b
24 changed files with 719 additions and 0 deletions

19
dto/admin.ts Normal file
View 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
}