// // StuCountDataModel.swift // JiaPeiManage // // Created by Ning.ge on 2023/6/26. // import ObjectMapper struct StuCountInfoModel : ImmutableMappable{ var dateTime : String! var stuCount : Int! init(map: Map) throws { dateTime = try map.value("dateTime") ?? "" stuCount = try map.value("stuCount") ?? 0 } } struct StuCountTotalModel : ImmutableMappable{ var total : Int! init(map: Map) throws { total = try map.value("total") ?? 0 } } struct StuCountDataModel : ImmutableMappable{ var code : Int! var data : StuCountTotalModel! var msg : String! var rows : [StuCountInfoModel]! var total : Int! init(map: Map) throws { code = try map.value("code") data = try map.value("data") msg = try map.value("msg") ?? "" rows = try map.value("rows") total = try map.value("total") ?? 0 } } struct StuTotalCountDataModel : ImmutableMappable{ var day : Int! var lastMonth : Int! var lastYear : Int! var month : Int! var yday : Int! var year : Int! var yesterday : Int! init(map: Map) throws { day = try map.value("day") ?? 0 lastMonth = try map.value("lastMonth") ?? 0 lastYear = try map.value("lastYear") ?? 0 month = try map.value("month") ?? 0 yday = try map.value("yday") ?? 0 year = try map.value("year") ?? 0 yesterday = try map.value("yesterday") ?? 0 } }