feat(categories): tree browser, CRUD dialog, pending approval queue with merge

This commit is contained in:
2026-07-07 22:19:07 +08:00
parent eb617ce436
commit 21ef5c1c37
5 changed files with 635 additions and 9 deletions

View File

@ -72,29 +72,35 @@ export interface MeResponse extends ApiResponse<AdminUser> {
// ---------- category ----------
export interface CategoryTranslation {
locale: string
name: string
description: string | null
}
export interface Category {
kind: 'category'
id: string
parent_id: string | null
level: number
slug: string
name: string
name: string | null
description: string | null
status: string
sort_order: number
is_leaf?: boolean
is_active: boolean
visibility?: string
approval_status?: 'pending' | 'approved' | 'rejected' | string
source?: string
created_by_uid?: string | null
approved_by_uid?: string | null
approved_at?: string | null
merged_into_category_id?: string | null
translations?: CategoryTranslation[]
children?: Category[]
created_at?: string
updated_at?: string
}
export interface CategoryTranslation {
locale: string
name: string
description: string | null
}
// ---------- studio ----------
export type ArticleStatus =