younger_times
2023-07-24 858bd6df13a6a6415d12d8e60141575574646f58
WanPai/Config/Enums.swift
@@ -49,15 +49,18 @@
enum AgreentType:Int {
    case user = 1
    case safe = 3
    case privacy = 2
    case other = 4
    var titleStr:String{
        switch self{
            case .privacy:return "隐私协议"
            case .safe:return "运动安全告知书"
            case .user:return "用户协议"
            case .other:return ""
        }
    }
}
@@ -241,3 +244,25 @@
        }
    }
}
enum CouponConditionType:Int,HandyJSONEnum{
    case nationwide = 1 //全国
    case city = 2 //城市
    case store = 3 // 门店
    var titleRaw:String{
        switch self {
            case .nationwide:return "全国通用"
            case .city:return "指定城市可用"
            case .store:return "指定门店可用"
        }
    }
}
enum CouponUseType:Int,HandyJSONEnum{
    case unused = 1
    case used = 2
    case overdue = 3
}