This commit is contained in:
fuenmao
2026-09-22 15:01:29 +08:00
parent a063be61cd
commit c1c86b56b6
5 changed files with 797 additions and 45 deletions
@@ -94,4 +94,66 @@ public sealed class HealthDashboardOutput
public SaveHealthProfileInput? Profile { get; set; }
public List<string> SelectedModules { get; set; } = [];
public HealthPlanOutput? CurrentPlan { get; set; }
public bool HasCompletedAssessment { get; set; }
public decimal? Bmi { get; set; }
public string BmiStatus { get; set; } = string.Empty;
public PersonalizedSceneConfig? SceneConfig { get; set; }
}
public sealed class PersonalizedSceneConfig
{
public int TargetHumidity { get; set; } = 55;
public string DehumidifierMode { get; set; } = "睡眠";
public string FanLevel { get; set; } = "1档";
public bool EnableUv { get; set; } = false;
public int LightBrightnessPercent { get; set; } = 20;
public int LightColorTemperatureKelvin { get; set; } = 2700;
public decimal MattressTargetTemp { get; set; } = 36m;
public int MattressLeftFirmness { get; set; } = 5;
public int MattressRightFirmness { get; set; } = 6;
public int MattressHeatingLevel { get; set; } = 1;
public string MattressMode { get; set; } = "智能适配";
public bool EnableFragrance { get; set; } = true;
public int FragranceLevel { get; set; } = 1;
public bool EnableSpeakerSleepMode { get; set; } = true;
public string SpeakerAudioMode { get; set; } = "助眠白噪音";
public int SpeakerVolumePercent { get; set; } = 15;
}
public sealed class HealthAssessmentAnswers
{
public string SleepDuration { get; set; } = string.Empty;
public string FallingAsleepSpeed { get; set; } = string.Empty;
public string TemperaturePreference { get; set; } = string.Empty;
public string NightAwakening { get; set; } = string.Empty;
public string MattressPreference { get; set; } = string.Empty;
public string ExerciseFrequency { get; set; } = string.Empty;
public string MuscleFatigueArea { get; set; } = string.Empty;
public string ActiveTimeOfDay { get; set; } = string.Empty;
public string MealRegularity { get; set; } = string.Empty;
public string FlavorPreference { get; set; } = string.Empty;
public string LateNightEating { get; set; } = string.Empty;
public string DailyWaterIntake { get; set; } = string.Empty;
}
public sealed class SaveHealthAssessmentInput
{
public SaveHealthProfileInput BasicInfo { get; set; } = new();
public HealthAssessmentAnswers Answers { get; set; } = new();
}
public sealed class HealthAssessmentOutput
{
public bool HasCompletedAssessment { get; set; }
public SaveHealthProfileInput BasicInfo { get; set; } = new();
public HealthAssessmentAnswers Answers { get; set; } = new();
public PersonalizedSceneConfig SceneConfig { get; set; } = new();
public decimal? Bmi { get; set; }
public string BmiStatus { get; set; } = "正常";
}