feat: 添加视频源管理页,支持修改路径与启用状态 (#369)

This commit is contained in:
ᴀᴍᴛᴏᴀᴇʀ
2025-06-17 18:55:45 +08:00
committed by GitHub
parent f47ce92a51
commit 28971c3ff3
21 changed files with 769 additions and 16 deletions

View File

@@ -48,8 +48,8 @@ pub struct UpdateVideoStatusResponse {
#[derive(FromQueryResult, Serialize, ToSchema)]
pub struct VideoSource {
id: i32,
name: String,
pub id: i32,
pub name: String,
}
#[derive(Serialize, ToSchema, DerivePartialModel, FromQueryResult)]
@@ -135,3 +135,19 @@ pub struct UppersResponse {
pub uppers: Vec<UpperWithSubscriptionStatus>,
pub total: i64,
}
#[derive(Serialize, ToSchema)]
pub struct VideoSourcesDetailsResponse {
pub collections: Vec<VideoSourceDetail>,
pub favorites: Vec<VideoSourceDetail>,
pub submissions: Vec<VideoSourceDetail>,
pub watch_later: Vec<VideoSourceDetail>,
}
#[derive(Serialize, ToSchema, FromQueryResult)]
pub struct VideoSourceDetail {
pub id: i32,
pub name: String,
pub path: String,
pub enabled: bool,
}