删除账号

This commit is contained in:
zhutao
2025-08-29 14:22:44 +08:00
parent 00dd33830c
commit 8d7038b713
6 changed files with 210 additions and 103 deletions

View File

@@ -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"],
);
}
}