feat: add book getter

This commit is contained in:
brian
2025-06-08 22:11:11 +08:00
parent 93b7e46655
commit c3493cbe6f
4 changed files with 149 additions and 12 deletions

View File

@@ -1,7 +1,12 @@
use serde::Serialize;
use serde::{Serialize, Deserialize};
#[derive(Serialize)]
pub struct BookItem {
pub id: i64,
pub name: String,
}
}
#[derive(Serialize,Deserialize)]
pub struct BookInfo {
pub name: String,
}

View File

@@ -0,0 +1,7 @@
use serde::{Serialize,Deserialize};
#[derive(Serialize)]
pub struct SimpleResponse {
pub code: i64,
pub message: String,
}

View File

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