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>
15 lines
566 B
TypeScript
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;
|
|
} |