feat: category apis

This commit is contained in:
brian
2025-06-22 18:02:17 +08:00
parent 366862831c
commit 6834c66974
8 changed files with 241 additions and 8 deletions

View File

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

View File

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