杨锴
2024-09-12 e15c976316feef72ff9bcabce38e0a078f9505db
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//
//  Enums.swift
//  XQMuse
//
//  Created by 无故事王国 on 2024/8/20.
//
 
import Foundation
import HandyJSON
 
enum PlayMode:Int,Decodable,Encodable{
                case singleLoop = 0 //单曲
                case line = 1 //顺序播放
}
 
enum GenderType:Int,HandyJSONEnum{
                case none = 0
                case  man = 1
                case  woman = 2
}
 
enum DisplayType:Int,HandyJSONEnum{
                case horizontal = 1 //横
                case vertical = 2 //竖
}
 
enum ChargeType:Int,HandyJSONEnum{
                case free = 1 //免费
                case vipFree = 2 //会员免费
                case payment = 3 // 需支付
}
 
enum DeliverStudyType:Int,HandyJSONEnum{
                case online = 1 // 线上课程
                case offline = 2 //线下课程
}
 
enum ConditionType:Int,HandyJSONEnum{
                case yes = 1
                case no = 2
 
                mutating func troggle(){
                                if self == .no{
                                                self = .yes
                                }else{
                                                self = .no
                                }
                }
}