Add api to create tags and change file tags
Signed-off-by: trivernis <trivernis@protonmail.com>pull/4/head
parent
209bc8a9d0
commit
df2cbe94e0
@ -1,8 +1,16 @@
|
||||
use serde::{Serialize, Deserialize};
|
||||
use crate::types::identifier::FileIdentifier;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct TagResponse {
|
||||
pub id: i64,
|
||||
pub namespace: Option<String>,
|
||||
pub name: String,
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct ChangeFileTagsRequest {
|
||||
pub file_id: FileIdentifier,
|
||||
pub removed_tags: Vec<i64>,
|
||||
pub added_tags: Vec<i64>,
|
||||
}
|
||||
|
Loading…
Reference in New Issue