using Oms.Domain.CustomersAggregate.Enums; using Oms.Domain.RechargeAggregate.Enums; using Oms.Domain.Shared.Enums; namespace Oms.Domain.Shared; /// /// 字节枚举展示名(与 t_dict 中文名称对齐,供 API 出参等使用)。 /// public static class EnumDisplayNames { public static string Of(EsSnapshotStatus status) => status switch { EsSnapshotStatus.Active => "生效", EsSnapshotStatus.Inactive => "失效", _ => string.Empty }; public static string Of(EnableStatus status) => status switch { EnableStatus.Disabled => "禁用", EnableStatus.Enabled => "启用", _ => string.Empty }; public static string Of(CustomerStatus status) => status switch { CustomerStatus.Disabled => "禁用", CustomerStatus.Normal => "正常", CustomerStatus.Frozen => "冻结", _ => string.Empty }; public static string Of(CustomerGroup? group) => group switch { CustomerGroup.Normal => "普通客户", CustomerGroup.Vip1 => "VIP1", CustomerGroup.Vip2 => "VIP2", CustomerGroup.Vip3 => "VIP3", CustomerGroup.Vip4 => "VIP4", CustomerGroup.Vip5 => "VIP5", _ => string.Empty }; public static string Of(RechargeStatus status) => status switch { RechargeStatus.Pending => "待审核", RechargeStatus.Approved => "审核通过", RechargeStatus.Rejected => "审核驳回", _ => string.Empty }; public static string Of(PayType payType) => payType switch { PayType.Wechat => "微信", PayType.Alipay => "支付宝", _ => string.Empty }; }