package constants

// 套餐最终到期推算状态常量。
const (
	PackageExpiryEstimateStatusExact             = "exact"              // 可精确推算
	PackageExpiryEstimateStatusWaitingActivation = "waiting_activation" // 待激活后起算
	PackageExpiryEstimateStatusNone              = "none"               // 无参与套餐
	PackageExpiryEstimateStatusInvalidData       = "invalid_data"       // 数据异常
)

// GetPackageExpiryEstimateStatusName 返回套餐最终到期推算状态的中文名称。
func GetPackageExpiryEstimateStatusName(status string) string {
	switch status {
	case PackageExpiryEstimateStatusExact:
		return "可精确推算"
	case PackageExpiryEstimateStatusWaitingActivation:
		return "待激活后起算"
	case PackageExpiryEstimateStatusNone:
		return "无套餐"
	case PackageExpiryEstimateStatusInvalidData:
		return "数据异常"
	default:
		return "未知"
	}
}
