Auth: WeChat login, JWT, roles guard (24 tests passing) User: profile CRUD, training stats with month/total calculations Studio: config management with auto-default creation
8 lines
128 B
TypeScript
8 lines
128 B
TypeScript
import { IsString, IsNotEmpty } from 'class-validator'
|
|
|
|
export class LoginDto {
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
code!: string
|
|
}
|