feat:更新编辑菜谱功能
This commit is contained in:
@@ -131,11 +131,8 @@ class Recipe {
|
||||
List<RecipeStep> stepList;
|
||||
List<FoodRecord> recordList;
|
||||
List<int> likeList;
|
||||
int likeCount;
|
||||
List<int> favouriteList;
|
||||
int favouriteCount;
|
||||
List<RecipeComment> commentList;
|
||||
int commentCount;
|
||||
|
||||
Recipe({
|
||||
required this.id,
|
||||
@@ -151,11 +148,8 @@ class Recipe {
|
||||
required this.stepList,
|
||||
required this.recordList,
|
||||
required this.likeList,
|
||||
required this.likeCount,
|
||||
required this.favouriteList,
|
||||
required this.favouriteCount,
|
||||
required this.commentList,
|
||||
required this.commentCount,
|
||||
});
|
||||
|
||||
factory Recipe.fromJson(Map<String, dynamic> json) => _$RecipeFromJson(json);
|
||||
@@ -177,11 +171,8 @@ class Recipe {
|
||||
stepList: [],
|
||||
recordList: [],
|
||||
likeList: [],
|
||||
likeCount: 0,
|
||||
favouriteList: [],
|
||||
favouriteCount: 0,
|
||||
commentList: [],
|
||||
commentCount: 0,
|
||||
commentList: []
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user