feat: tag api
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
pub mod book;
|
||||
pub mod common;
|
||||
pub mod category;
|
||||
pub mod category;
|
||||
pub mod tag;
|
||||
14
src/model/http_body/tag.rs
Normal file
14
src/model/http_body/tag.rs
Normal 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,
|
||||
}
|
||||
Reference in New Issue
Block a user