feat: tag api

This commit is contained in:
brian
2025-06-22 18:27:54 +08:00
parent 6834c66974
commit cade85d576
5 changed files with 189 additions and 2 deletions

View File

@@ -1,3 +1,4 @@
pub mod book;
pub mod common;
pub mod category;
pub mod category;
pub mod tag;

View File

@@ -0,0 +1,14 @@
use serde::{Serialize, Deserialize};
use super::common::{number_stringify, OptionalI64};
#[derive(Serialize)]
pub struct TagItem {
#[serde(with="number_stringify")]
pub id: OptionalI64,
pub name: String,
}
#[derive(Serialize,Deserialize)]
pub struct TagInfo {
pub name: String,
}