Add a way to delete recipe
This commit is contained in:
parent
5ce3391466
commit
31bc31035a
10 changed files with 247 additions and 175 deletions
|
|
@ -15,6 +15,12 @@ pub struct SetRecipeDescription {
|
|||
pub description: String,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Clone)]
|
||||
pub struct SetRecipeServings {
|
||||
pub recipe_id: i64,
|
||||
pub servings: Option<u32>,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Clone)]
|
||||
pub struct SetRecipeEstimatedTime {
|
||||
pub recipe_id: i64,
|
||||
|
|
@ -65,6 +71,11 @@ pub struct SetIsPublished {
|
|||
pub is_published: bool,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Clone)]
|
||||
pub struct Remove {
|
||||
pub recipe_id: i64,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Clone)]
|
||||
pub struct AddRecipeGroup {
|
||||
pub recipe_id: i64,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue