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:
richarjiang
2026-04-02 12:12:18 +08:00
parent e653580155
commit a1a91f96d8
23 changed files with 1284 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
import { IsString, IsNotEmpty } from 'class-validator'
export class BindPhoneDto {
@IsString()
@IsNotEmpty()
encryptedData!: string
@IsString()
@IsNotEmpty()
iv!: string
}