Initial commit: Telegram Management System
Some checks failed
Deploy / deploy (push) Has been cancelled
Some checks failed
Deploy / deploy (push) Has been cancelled
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>
This commit is contained in:
15
backend-nestjs/src/modules/auth/dto/login.dto.ts
Normal file
15
backend-nestjs/src/modules/auth/dto/login.dto.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user