fix: change price and sold price to f32s
This commit is contained in:
parent
5dbbe23103
commit
7c7bda5f94
2 changed files with 6 additions and 6 deletions
|
|
@ -49,7 +49,7 @@ pub struct BookInstanceCreateParams {
|
|||
book_id: u32,
|
||||
owner_id: u32,
|
||||
bal_id: u32,
|
||||
price: i32,
|
||||
price: f32,
|
||||
}
|
||||
|
||||
#[axum::debug_handler]
|
||||
|
|
@ -99,7 +99,7 @@ pub async fn create_book_instance(
|
|||
pub struct BookInstanceUpdateParams {
|
||||
status: Option<book_instance::BookStatus>,
|
||||
owner_id: Option<u32>,
|
||||
price: Option<i32>,
|
||||
price: Option<f32>,
|
||||
}
|
||||
|
||||
#[axum::debug_handler]
|
||||
|
|
@ -160,7 +160,7 @@ pub async fn update_book_instance(
|
|||
|
||||
#[derive(Deserialize, Serialize, utoipa::ToSchema)]
|
||||
pub struct BookInstanceSaleParams {
|
||||
price: i32,
|
||||
price: f32,
|
||||
}
|
||||
|
||||
#[axum::debug_handler]
|
||||
|
|
|
|||
Reference in a new issue