From 5a590aaf3fd9ed5f9cfd2d54e72c904ce4918e7f Mon Sep 17 00:00:00 2001
From: younger_times <841720330@qq.com>
Date: 星期三, 12 七月 2023 18:56:43 +0800
Subject: [PATCH] 完善“课程详情”

---
 WanPai/Model/CommonModels.swift |   23 ++++++++++++++++++-----
 1 files changed, 18 insertions(+), 5 deletions(-)

diff --git a/WanPai/Model/CommonModels.swift b/WanPai/Model/CommonModels.swift
index 30a0542..ed9b71c 100644
--- a/WanPai/Model/CommonModels.swift
+++ b/WanPai/Model/CommonModels.swift
@@ -43,15 +43,28 @@
 struct CourseDetailListModel:HandyJSON {
     var classHours: Int = 0
     var id: Int = 0
-    var originalPrice: Double = 0
-    var paymentPrice: Double = 0
-    var payType: Int = 0
-    var playPaiCoin: Int = 0
-    var vipPrice: Double = 0
+    var originalPrice:Double?
+    var paymentPrice:Double = 0
+    var payType: PaymentType = .cash
+    var playPaiCoin:Int?
+    var vipPrice:Double?
 }
 
 struct CourseDetailStudentModel:HandyJSON {
     var age: Int = 0
     var id: Int = 0
+    var name = ""
     var phone: String = ""
 }
+
+struct CouponInfoModel:HandyJSON{
+    ///有效时间
+    var effectiveTime: String = ""
+        /// 优惠内容
+    var favorable: String = ""
+    var id: Int = 0
+    var name: String = ""
+    var type:CouponType = .none
+        /// 使用条件
+    var useCondition: String = ""
+}

--
Gitblit v1.7.1