feat: book id use optional i64

This commit is contained in:
brian
2025-06-08 23:50:30 +08:00
parent 8273e610cb
commit 366862831c
2 changed files with 5 additions and 3 deletions

View File

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