feat:更新图片url路径
This commit is contained in:
@@ -235,6 +235,26 @@ class RecipeDetail {
|
||||
_$RecipeDetailFromJson(json);
|
||||
|
||||
Map<String, dynamic> toJson() => _$RecipeDetailToJson(this);
|
||||
|
||||
static RecipeDetail getEmpty() {
|
||||
return RecipeDetail(
|
||||
id: 0,
|
||||
name: '',
|
||||
category: '',
|
||||
recommendRate: 0,
|
||||
remark: '',
|
||||
isShare: false,
|
||||
userId: 0,
|
||||
username: '',
|
||||
avatar: '',
|
||||
materialList: [],
|
||||
stepList: [],
|
||||
recordList: [],
|
||||
likeList: [],
|
||||
favouriteList: [],
|
||||
commentList: [],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
enum ViewType { recipe, calendar, timeline }
|
||||
|
||||
Reference in New Issue
Block a user