feat(server): add auth, user, and studio modules
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
This commit is contained in:
7
packages/server/src/auth/dto/login.dto.ts
Normal file
7
packages/server/src/auth/dto/login.dto.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { IsString, IsNotEmpty } from 'class-validator'
|
||||
|
||||
export class LoginDto {
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
code!: string
|
||||
}
|
||||
Reference in New Issue
Block a user