fix
杨锴
2024-09-09 677497cbfbf159417f2b1bb64aee0196c9fa6382
XQMuse/Root/Network/Models.swift
@@ -8,6 +8,14 @@
import HandyJSON
import UserDefaultsStore
struct UserDefaultSettingModel:HandyJSON,Identifiable,Codable {
            static let idKey = \UserDefaultSettingModel.id
            var id = 0
            var volume:Double = 0.5
            var bgm:BGMModel?
}
struct LoginUserInfoModel:HandyJSON,Identifiable,Codable{
            
            static let idKey = \LoginUserInfoModel.userid
@@ -37,3 +45,69 @@
            var secret:String = ""
            var successFlag:Bool = false
}
struct BGMModel:HandyJSON,Identifiable,Codable{
            static let idKey = \BGMModel.id
            var audioFile: String = ""
            var audioFileName: String = ""
            var id: Int = 0
            var imageUrl: String = ""
}
struct ItemTypeModel:HandyJSON{
            var categoryName = ""
            var description = ""
            var id = 0
            var firstIconUrl = "" //icon图片 用于顶部四个分类展示
            var secondIconUrl = "" //icon图片 用于下面的三个分类展示
            var showType = 0 //展示方式 1=横版 2=竖版
}
struct ToDayMeditationModel:HandyJSON{
            var clientMeditationVO: MeditationModel?
            var endPlayTime: String = ""
            var id: Int = 0
            var imageUrl: String = ""
            var meditationId: Int = 0
            var startPlayTime: String = ""
}
struct MeditationListModel:HandyJSON{
            var clientMeditationCategoryVO:MeditationTitleModel?
            var clientMeditationVOList = [MeditationModel]()
}
struct MeditationTitleModel:HandyJSON{
            var categoryName: String = ""
            var description: String = ""
            var firstIconUrl: String = ""
            var id: Int = 0
            var secondIconUrl: String = ""
            var showType: DisplayType = .horizontal
}
struct MeditationModel:HandyJSON{
            var backgroundUrl: String = ""
            var cateId: Int = 0
            var chargeType:ChargeType = .free
            var coverDescription: String = ""
            var coverUrl: String = ""
            var detailDescription: String = ""
            var favoriteCount: Int = 0
            var generalPrice: Int = 0
            var iconUrl: String = ""
            var id: Int = 0
            var iosPrice: Int = 0
            var listingStatus: Int = 0
            var meditationTitle: String = ""
            var realLearnedNum: Int = 0
            var sanskrit: Int = 0
            var sortNum: Int = 0
            var tutorAudioUrl: String = ""
            var virtualLearnedNum: Int = 0
            var favorite:Int = 0 // 是否收藏:1:是 2:否
}