From 0fb7413df54760ac6bd15b90b738e0706de1629e Mon Sep 17 00:00:00 2001
From: 杨锴 <841720330@qq.com>
Date: 星期二, 05 十一月 2024 19:03:09 +0800
Subject: [PATCH] fix bug

---
 XQMuse/Root/Network/Models.swift |   19 ++++++++++++-------
 1 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/XQMuse/Root/Network/Models.swift b/XQMuse/Root/Network/Models.swift
index fab92ab..84a1e50 100644
--- a/XQMuse/Root/Network/Models.swift
+++ b/XQMuse/Root/Network/Models.swift
@@ -96,11 +96,11 @@
 				var showType: DisplayType = .horizontal
 }
 
-struct MeditationModel:HandyJSON{
+class MeditationModel:HandyJSON{
 				var backgroundUrl: String = ""
 				var cateId: Int = 0
 				var chargeType:ChargeType = .free
-				var paidStatus:ConditionType = .no //是否购买
+				var isBuy:ConditionType = .no //是否购买
 				var coverDescription: String = ""
 				var coverUrl: String = ""
 				var detailDescription: String = ""
@@ -109,7 +109,7 @@
 				var iconUrl: String = ""
 				var id: Int = 0
 				var questionCount:Int = 0
-				var iosPrice: Int = 0
+    var iosPrice: Double = 0
 				var listingStatus: Int = 0
 				var meditationTitle: String = ""
 				var realLearnedNum: Int = 0
@@ -120,6 +120,9 @@
 				var favorite:ConditionType = .no // 是否收藏:1:是 2:否
     var tutor:String = ""
     var meditationMusicList = [String]()
+    var meditationSecondList = [Int]() //时长
+
+    required init(){}
 }
 
 class CommentModel:HandyJSON{
@@ -166,7 +169,7 @@
     var courseId:String?
 }
 
-struct CourseModel:HandyJSON{
+class CourseModel:HandyJSON{
 				var address:String = ""
 				var addressDetail:String = ""
 				var briefIntroduction:String = ""
@@ -182,7 +185,7 @@
 				var headers = [String]()
 				var id: Int = 0
     var businessId:Int = 0 // 课程/音频id 收藏用
-				var iosPrice: Int = 0
+    var iosPrice: Double = 0
 				var isBuy: ConditionType = .no
 				var isVip: ConditionType = .no
 				var latitude: Int = 0
@@ -196,6 +199,8 @@
 
 				var list2 = [CourseModel]()
 				var list = [CourseItemModel]()
+
+    required init(){}
 }
 
 struct CourseItemModel:HandyJSON{
@@ -336,7 +341,7 @@
 				var status: Int = 0
 				var updateBy: String = ""
 				var updateTime: String = ""
-				var worth: Int = 0
+    var worth: Double = 0
 }
 
 struct EnergyExchangeRecordModel:HandyJSON{
@@ -345,7 +350,7 @@
 				var id: Int = 0
 				var name: String = ""
 				var status:ConditionType = .no
-				var worth: Int = 0
+    var worth: Double = 0
 				var code:String = ""
 }
 

--
Gitblit v1.7.1