2026-02-25 15:43:47 +08:00
|
|
|
namespace PetWashControl.Models;
|
|
|
|
|
|
|
|
|
|
public class Package
|
|
|
|
|
{
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
public string Name { get; set; } = string.Empty;
|
|
|
|
|
public decimal Price { get; set; }
|
|
|
|
|
public int DurationMinutes { get; set; }
|
|
|
|
|
public string Description { get; set; } = string.Empty;
|
2026-03-18 13:53:44 +08:00
|
|
|
public int FirstSprayWaterTime { get; set; }
|
|
|
|
|
public int AfterShampoo1SprayTime { get; set; }
|
|
|
|
|
public int AfterShampoo2SprayTime { get; set; }
|
|
|
|
|
public int AfterShampoo3SprayTime { get; set; }
|
|
|
|
|
public int SprayShampoo1Time { get; set; }
|
|
|
|
|
public int SprayShampoo2Time { get; set; }
|
|
|
|
|
public int SprayShampoo3Time { get; set; }
|
|
|
|
|
public int HotAirTime { get; set; }
|
|
|
|
|
public int ColdAirTime { get; set; }
|
|
|
|
|
public int UvSterilizationTime { get; set; }
|
|
|
|
|
|
|
|
|
|
public string DisplayPrice => Price.ToString("F2");
|
|
|
|
|
public string DisplayDuration => $"{DurationMinutes} 分钟";
|
|
|
|
|
public string DisplaySummary => $"{Description} | 总时长 {DurationMinutes} 分钟";
|
|
|
|
|
public string DisplayTag => Id switch
|
|
|
|
|
{
|
|
|
|
|
1 => "小型犬",
|
|
|
|
|
2 => "中型犬",
|
|
|
|
|
3 => "大型犬",
|
|
|
|
|
_ => "宠物套餐"
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
public string CardBackground => Id switch
|
|
|
|
|
{
|
|
|
|
|
1 => "#2E7D32",
|
|
|
|
|
2 => "#1565C0",
|
|
|
|
|
3 => "#6A1B9A",
|
|
|
|
|
_ => "#D84315"
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
public string CardDetailBackground => Id switch
|
|
|
|
|
{
|
|
|
|
|
1 => "#1B5E20",
|
|
|
|
|
2 => "#0D47A1",
|
|
|
|
|
3 => "#4A148C",
|
|
|
|
|
_ => "#BF360C"
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
public string CardPriceBackground => Id switch
|
|
|
|
|
{
|
|
|
|
|
1 => "#43A047",
|
|
|
|
|
2 => "#1E88E5",
|
|
|
|
|
3 => "#8E24AA",
|
|
|
|
|
_ => "#FF6F00"
|
|
|
|
|
};
|
2026-02-25 15:43:47 +08:00
|
|
|
}
|