| 
              //
//  StatusModel.swift
//  PaiAi
//
//  Created by FFIB on 2017/10/10.
//  Copyright © 2017年 yb. All rights reserved.
//
import Foundation
import ObjectMapper
struct StatusModel {
    
    var status = 0
    var message = ""
    var description = ""
    
}
extension StatusModel: Mappable {
    
    init(map: Map) {
        status      <- map["status"]
        message     <- map["message"]
        description <- map["description"]
    }
}
extension StatusModel: SingleParsable {
    
    static func parse(data: [String : AnyObject]) -> StatusModel {
        return StatusModel(map: Map(mappingType: .fromJSON, JSON: data))
    }
}
struct StatusNetworkRequest: NetworkRequest {
    
    typealias NetworkResponse = StatusModel
    
    var path: Interfaces
    var parameter: [String : AnyObject]?
    
    init(param: [String: AnyObject]?, path: Interfaces) {
        self.parameter = param
        self.path = path
    }
}
 
  |