app,server: Display rating in recipe
This commit is contained in:
parent
1ea5c8aafa
commit
5ef000dec0
3 changed files with 28 additions and 8 deletions
|
|
@ -99,12 +99,13 @@ pub struct CreateRecipeResponse {
|
|||
|
||||
#[derive(Serialize, Deserialize, Clone, Debug)]
|
||||
pub struct ListRecipesResponse {
|
||||
pub recipes: Vec<(i64, String)>,
|
||||
pub recipes: Vec<(i64, String, u8)>,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Clone, Debug)]
|
||||
pub struct RecipeInfo {
|
||||
pub name: String,
|
||||
pub rating: u8,
|
||||
pub steps: String,
|
||||
pub ingredients: Vec<(i64, IngredientInfo, f64)>,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue