Files
backend-service/src/core/dto/create-user.request.ts
T
2024-11-18 19:19:58 +08:00

10 lines
224 B
TypeScript

import { IsNotEmpty } from 'class-validator';
export class CreateUserRequest {
@IsNotEmpty({ message: '用户名不能为空' })
username: string;
@IsNotEmpty({ message: '密码不能为空' })
password: string;
}