feat: добавить новый backend и cabinet
- добавлен новый Nest backend для auth, projects и project access tokens - добавлена control-plane схема БД и миграция Drizzle - перенесён старый backend в old-backend - добавлен React/Vite cabinet с auth-only входом и Mantine layout - обновлены workspace scripts и lockfile
This commit is contained in:
20
apps/backend/src/auth/dto/login.dto.ts
Normal file
20
apps/backend/src/auth/dto/login.dto.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import { ApiProperty } from "@nestjs/swagger"
|
||||
|
||||
export class LoginRequestDto {
|
||||
@ApiProperty({ description: "Логин администратора.", example: "admin" })
|
||||
username!: string
|
||||
|
||||
@ApiProperty({ description: "Пароль администратора.", example: "admin" })
|
||||
password!: string
|
||||
}
|
||||
|
||||
export class LoginResponseDto {
|
||||
@ApiProperty({ description: "Bearer token сессии администратора.", example: "admin.eyJ1c2VybmFtZSI6ImFkbWluIn0.signature" })
|
||||
accessToken!: string
|
||||
|
||||
@ApiProperty({ description: "Тип токена для HTTP Authorization header.", example: "Bearer" })
|
||||
tokenType!: "Bearer"
|
||||
|
||||
@ApiProperty({ description: "ISO-дата истечения сессии.", example: "2026-05-13T10:00:00.000Z" })
|
||||
expiresAt!: string
|
||||
}
|
||||
Reference in New Issue
Block a user