Cargo clippy and cargo fmt
This commit is contained in:
parent
b0000c0117
commit
ed609cf06c
22 changed files with 286 additions and 94 deletions
|
|
@ -24,7 +24,13 @@ pub struct BookingEntity {
|
|||
pub trait BookingDao {
|
||||
async fn all(&self) -> Result<Arc<[BookingEntity]>, DaoError>;
|
||||
async fn find_by_id(&self, id: Uuid) -> Result<Option<BookingEntity>, DaoError>;
|
||||
async fn find_by_booking_data(&self, sales_person_id: Uuid, slot_id: Uuid, calendar_week: i32, year: u32) -> Result<Option<BookingEntity>, DaoError>;
|
||||
async fn find_by_booking_data(
|
||||
&self,
|
||||
sales_person_id: Uuid,
|
||||
slot_id: Uuid,
|
||||
calendar_week: i32,
|
||||
year: u32,
|
||||
) -> Result<Option<BookingEntity>, DaoError>;
|
||||
async fn create(&self, entity: &BookingEntity, process: &str) -> Result<(), DaoError>;
|
||||
async fn update(&self, entity: &BookingEntity, process: &str) -> Result<(), DaoError>;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,6 +24,11 @@ pub trait SalesPersonDao {
|
|||
async fn create(&self, entity: &SalesPersonEntity, process: &str) -> Result<(), DaoError>;
|
||||
async fn update(&self, entity: &SalesPersonEntity, process: &str) -> Result<(), DaoError>;
|
||||
async fn get_assigned_user(&self, sales_person_id: Uuid) -> Result<Option<Arc<str>>, DaoError>;
|
||||
async fn assign_to_user(&self, sales_person_id: Uuid, user_id: &str, process: &str) -> Result<(), DaoError>;
|
||||
async fn assign_to_user(
|
||||
&self,
|
||||
sales_person_id: Uuid,
|
||||
user_id: &str,
|
||||
process: &str,
|
||||
) -> Result<(), DaoError>;
|
||||
async fn discard_assigned_user(&self, sales_person_id: Uuid) -> Result<(), DaoError>;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue