t添加标签功能

This commit is contained in:
truewhile
2026-09-16 12:30:34 +08:00
parent 57ee482146
commit cbfae0252e
19 changed files with 1696 additions and 29 deletions
+4
View File
@@ -1,3 +1,5 @@
import type { LibraryTagSet } from './library'
export interface User {
id: string
username: string
@@ -16,6 +18,8 @@ export interface User {
is_active: boolean
allowed_library_ids?: string[]
pinned_library_ids?: string[]
/** 当前用户维护的媒体库标签分组。 */
library_tags?: LibraryTagSet[]
is_default_admin?: boolean
is_protected?: boolean
realtime_online?: boolean
+9
View File
@@ -28,6 +28,15 @@ export interface Library {
total?: number
}
/**
* 用户自定义的媒体库标签分组。标签属于当前用户本人,用于在媒体库页把
* 同一标签下的媒体库聚合到一起。一个媒体库同时只属于一个标签。
*/
export interface LibraryTagSet {
name: string
library_ids: string[]
}
export interface ScanResult {
library_id: string
visited: number