Files
telegram-management-system/backend-nestjs/src/modules/auth/dto/login.dto.ts
你的用户名 237c7802e5
Some checks failed
Deploy / deploy (push) Has been cancelled
Initial commit: Telegram Management System
Full-stack web application for Telegram management
- Frontend: Vue 3 + Vben Admin
- Backend: NestJS
- Features: User management, group broadcast, statistics

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-04 15:37:50 +08:00

15 lines
566 B
TypeScript

import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty, IsString, MinLength } from 'class-validator';
export class LoginDto {
@ApiProperty({ description: '账号', example: 'admin' })
@IsNotEmpty({ message: '账号不能为空' })
@IsString({ message: '账号必须是字符串' })
account: string;
@ApiProperty({ description: '密码', example: '111111' })
@IsNotEmpty({ message: '密码不能为空' })
@IsString({ message: '密码必须是字符串' })
@MinLength(6, { message: '密码长度不能少于6位' })
password: string;
}