feat: 支持稍后再看的扫描与下载 (#131)

* 暂存

* 写点

* feat: 支持稍后再看

* chore: 干掉 print
This commit is contained in:
ᴀᴍᴛᴏᴀᴇʀ
2024-07-11 13:46:01 +08:00
committed by GitHub
parent 4c5d1b6ea1
commit c27d1a2381
14 changed files with 472 additions and 4 deletions

View File

@@ -6,3 +6,4 @@ pub mod collection;
pub mod favorite;
pub mod page;
pub mod video;
pub mod watch_later;

View File

@@ -9,6 +9,7 @@ pub struct Model {
pub id: i32,
pub collection_id: Option<i32>,
pub favorite_id: Option<i32>,
pub watch_later_id: Option<i32>,
pub upper_id: i64,
pub upper_name: String,
pub upper_face: String,

View File

@@ -0,0 +1,17 @@
//! `SeaORM` Entity. Generated by sea-orm-codegen 0.12.15
use sea_orm::entity::prelude::*;
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)]
#[sea_orm(table_name = "watch_later")]
pub struct Model {
#[sea_orm(primary_key)]
pub id: i32,
pub path: String,
pub created_at: String,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}
impl ActiveModelBehavior for ActiveModel {}