删除账号
This commit is contained in:
@@ -9,6 +9,7 @@ class UserProfileDto {
|
||||
List<String> medicalInformationList;
|
||||
List<String> currentMedicationsList;
|
||||
String activityLevel;
|
||||
int? qStatus;
|
||||
|
||||
UserProfileDto({
|
||||
this.id = 0,
|
||||
@@ -20,6 +21,7 @@ class UserProfileDto {
|
||||
List<String>? dietaryPreferencesList,
|
||||
List<String>? medicalInformationList,
|
||||
List<String>? currentMedicationsList,
|
||||
this.qStatus,
|
||||
this.activityLevel = "",
|
||||
}) : foodAllergiesList = foodAllergiesList ?? [],
|
||||
dietaryPreferencesList = dietaryPreferencesList ?? [],
|
||||
@@ -38,6 +40,7 @@ class UserProfileDto {
|
||||
"medical_information": medicalInformationList,
|
||||
"current_medications": currentMedicationsList,
|
||||
"activity_level": activityLevel,
|
||||
"q_status": qStatus,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -53,6 +56,7 @@ class UserProfileDto {
|
||||
medicalInformationList: (json["medical_information"] as List?)?.cast<String>() ?? [],
|
||||
currentMedicationsList: (json["current_medications"] as List?)?.cast<String>() ?? [],
|
||||
activityLevel: json["activity_level"] ?? "",
|
||||
qStatus: json["q_status"],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,3 +47,8 @@ Future<LoginDto> thirdLoginApi(String token, OtherLoginType type) async {
|
||||
});
|
||||
return LoginDto.fromJson(res);
|
||||
}
|
||||
|
||||
///删除账号
|
||||
Future<void> deleteAccountApi() async {
|
||||
return Request().get("/delete_account");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user