Initial commit: NestJS backend for Child Gold Land
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import { IsString } from 'class-validator'
|
||||
|
||||
export class LoginDto {
|
||||
@IsString()
|
||||
username!: string
|
||||
|
||||
@IsString()
|
||||
password!: string
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
import { IsOptional, IsString } from 'class-validator'
|
||||
|
||||
export class RegisterDto {
|
||||
@IsString()
|
||||
username!: string
|
||||
|
||||
@IsString()
|
||||
password!: string
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
name?: string
|
||||
}
|
||||
Reference in New Issue
Block a user