feat: add book getter
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
7
src/model/http_body/common.rs
Normal file
7
src/model/http_body/common.rs
Normal file
@@ -0,0 +1,7 @@
|
||||
use serde::{Serialize,Deserialize};
|
||||
|
||||
#[derive(Serialize)]
|
||||
pub struct SimpleResponse {
|
||||
pub code: i64,
|
||||
pub message: String,
|
||||
}
|
||||
@@ -1 +1,2 @@
|
||||
pub mod book;
|
||||
pub mod book;
|
||||
pub mod common;
|
||||
Reference in New Issue
Block a user