feat:增加用户信息编辑功能
This commit is contained in:
@@ -126,7 +126,6 @@ class Recipe {
|
||||
bool isShare;
|
||||
int userId;
|
||||
String username;
|
||||
String avatar;
|
||||
List<RecipeMaterial> materialList;
|
||||
List<RecipeStep> stepList;
|
||||
List<FoodRecord> recordList;
|
||||
@@ -143,7 +142,6 @@ class Recipe {
|
||||
required this.isShare,
|
||||
required this.userId,
|
||||
required this.username,
|
||||
required this.avatar,
|
||||
required this.materialList,
|
||||
required this.stepList,
|
||||
required this.recordList,
|
||||
@@ -166,7 +164,6 @@ class Recipe {
|
||||
isShare: true,
|
||||
userId: 0,
|
||||
username: '',
|
||||
avatar: '',
|
||||
materialList: [],
|
||||
stepList: [],
|
||||
recordList: [],
|
||||
|
||||
@@ -89,7 +89,6 @@ Recipe _$RecipeFromJson(Map<String, dynamic> json) => Recipe(
|
||||
isShare: json['isShare'] as bool,
|
||||
userId: (json['userId'] as num).toInt(),
|
||||
username: json['username'] as String,
|
||||
avatar: json['avatar'] as String,
|
||||
materialList:
|
||||
(json['materialList'] as List<dynamic>)
|
||||
.map((e) => RecipeMaterial.fromJson(e as Map<String, dynamic>))
|
||||
@@ -125,7 +124,6 @@ Map<String, dynamic> _$RecipeToJson(Recipe instance) => <String, dynamic>{
|
||||
'isShare': instance.isShare,
|
||||
'userId': instance.userId,
|
||||
'username': instance.username,
|
||||
'avatar': instance.avatar,
|
||||
'materialList': instance.materialList,
|
||||
'stepList': instance.stepList,
|
||||
'recordList': instance.recordList,
|
||||
|
||||
Reference in New Issue
Block a user