Contact information in offer view
This commit is contained in:
parent
63fbb7535c
commit
f7da676516
@ -1,6 +1,10 @@
|
||||
use std::sync::Arc;
|
||||
|
||||
use chrono::NaiveDateTime;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
use crate::model::db;
|
||||
use crate::model::db::ContactInfo;
|
||||
|
||||
#[derive(Debug, Default, Serialize)]
|
||||
pub enum Page {
|
||||
@ -247,3 +251,15 @@ pub struct UpdateOfferInput {
|
||||
pub price_min: i32,
|
||||
pub price_max: i32,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize)]
|
||||
pub struct Offer {
|
||||
pub id: i32,
|
||||
pub owner_id: i32,
|
||||
pub price_range: db::PriceRange,
|
||||
pub description: String,
|
||||
pub picture_url: String,
|
||||
pub state: db::OfferState,
|
||||
pub created_at: NaiveDateTime,
|
||||
pub contacts: Vec<Arc<ContactInfo>>,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user