chore: 大幅缩减构建结果的二进制文件体积 (#356)

This commit is contained in:
ᴀᴍᴛᴏᴀᴇʀ
2025-06-06 23:34:46 +08:00
committed by GitHub
parent 65a047b0fa
commit 586d5ec4ee
11 changed files with 175 additions and 74 deletions

View File

@@ -40,7 +40,7 @@ pub struct ResetAllVideosResponse {
}
#[derive(Serialize, ToSchema)]
pub struct ResetVideoStatusResponse {
pub struct UpdateVideoStatusResponse {
pub success: bool,
pub video: VideoInfo,
pub pages: Vec<PageInfo>,
@@ -58,6 +58,7 @@ pub struct VideoInfo {
pub id: i32,
pub name: String,
pub upper_name: String,
#[schema(value_type = [u32; 5])]
#[serde(serialize_with = "serde_video_download_status")]
pub download_status: u32,
}
@@ -69,6 +70,7 @@ pub struct PageInfo {
pub video_id: i32,
pub pid: i32,
pub name: String,
#[schema(value_type = [u32; 5])]
#[serde(serialize_with = "serde_page_download_status")]
pub download_status: u32,
}