修改枚举问题
This commit is contained in:
@@ -81,39 +81,21 @@ class OrderListDataModel: Decodable {
|
||||
var isSupplierSettle : SupplierSettleModel?
|
||||
var supplierSettleRatio : SupplierSettleRatioModel?
|
||||
class SupplierSettleModel : Decodable {
|
||||
var code : IsSupplierSettleEnum
|
||||
var code : Int
|
||||
var label : String
|
||||
}
|
||||
class SupplierSettleRatioModel : Decodable {
|
||||
var code : SupplierSettleRatioEnum
|
||||
var code : Int
|
||||
var label : String
|
||||
}
|
||||
class PositionEnvironmentModel : Decodable {
|
||||
var code : positionEnvironment
|
||||
var code : Int
|
||||
var label : String
|
||||
}
|
||||
enum IsSupplierSettleEnum : Int,Decodable {
|
||||
case NO = 0
|
||||
case YES = 1
|
||||
}
|
||||
enum SupplierSettleRatioEnum : Int, Decodable {
|
||||
case NO_SETTLE = 0
|
||||
case ALL_SETTLE = 1
|
||||
case DROP_SETTLE = 2
|
||||
case SERVICE_FAIL_SETTLE = 3
|
||||
case TRAIL_CAR_SETTLE = 4
|
||||
}
|
||||
enum positionEnvironment : Int,Decodable {
|
||||
case ground = 1
|
||||
case elevated_road = 2
|
||||
case expressway = 3
|
||||
case tunnel = 4
|
||||
case bridge = 5
|
||||
case underground = 6
|
||||
case high_rise_car_park = 7
|
||||
case crane_rescue = 8
|
||||
case wading = 9
|
||||
}
|
||||
}
|
||||
|
||||
enum VehicleStatusCodeEnum : Int, Decodable {
|
||||
@@ -126,12 +108,12 @@ enum VehicleStatusCodeEnum : Int, Decodable {
|
||||
}
|
||||
|
||||
class VehicleStatusModel : Decodable {
|
||||
var code : VehicleStatusCodeEnum
|
||||
var code : Int
|
||||
var label : String
|
||||
}
|
||||
|
||||
class OnlineStatusModel : Decodable {
|
||||
var code : OnlineStatusCodeEnum
|
||||
var code : Int
|
||||
var label : String
|
||||
enum OnlineStatusCodeEnum : Int, Decodable {
|
||||
case offLine = 1
|
||||
@@ -188,7 +170,7 @@ public class VehicleMonitorListDataModel : Decodable {
|
||||
var driverName : String?
|
||||
var driverPhone : String
|
||||
var vehicleType : String?
|
||||
var terminalType : TerminalTypeEnum?
|
||||
var terminalType : String?
|
||||
var vehicleStatus : VehicleStatusModel?
|
||||
var onlineStatus : OnlineStatusModel?
|
||||
var alarmType : AlarmType?
|
||||
@@ -217,15 +199,9 @@ public class VehicleMonitorListDataModel : Decodable {
|
||||
}
|
||||
|
||||
public class AlarmType : Decodable {
|
||||
var code : AlarmTypeEnum
|
||||
var code : Int
|
||||
var label : String
|
||||
}
|
||||
public enum AlarmTypeEnum : Int,Decodable {
|
||||
case dropped = 1
|
||||
case busy = 2
|
||||
case empty_shift = 3
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class TaskModel : Decodable {
|
||||
@@ -295,20 +271,13 @@ public class VersionCheckDataModel : Decodable {
|
||||
var label : String
|
||||
}
|
||||
class TypeModel : Decodable {
|
||||
var code : AppTypeEnum
|
||||
var code : Int
|
||||
var label : String
|
||||
}
|
||||
enum UpdateEnum : Int,Decodable {
|
||||
case NO = 0
|
||||
case YES = 1
|
||||
}
|
||||
enum AppTypeEnum : Int,Decodable {
|
||||
case app_type_1 = 1
|
||||
case app_type_2 = 2
|
||||
case app_type_3 = 3
|
||||
case app_type_4 = 4
|
||||
case app_type_5 = 5
|
||||
}
|
||||
var updateTime : String?
|
||||
var createTime : String?
|
||||
var description : String?
|
||||
@@ -318,15 +287,11 @@ public class MessageReminderListDataModel : Decodable {
|
||||
var id : Int
|
||||
var msgType : MsgType
|
||||
class MsgType : Decodable {
|
||||
var code : MsgTypeEnum
|
||||
var code : Int
|
||||
var label : String
|
||||
}
|
||||
enum MsgTypeEnum : Int,Decodable {
|
||||
case DEPARTURE_REMINDER = 1
|
||||
case CUSTOMER_REMINDER = 2
|
||||
}
|
||||
var title : String
|
||||
var titleContent : String
|
||||
var titleContent : String?
|
||||
var titleColor : String
|
||||
var content : String?
|
||||
var imgPath : String?
|
||||
|
||||
Reference in New Issue
Block a user