Newer
Older
LaserMethane / LaserMethane / Model / ActionResultModel.swift
Pengxh on 28 Jul 2021 506 bytes first commit
//
//  LoginOutModel.swift
//  birmm_inspect_ios_app
//
//  Created by 203 on 2021/7/14.
//

import Foundation
import SwiftyJSON

/**
 * 请求成功统一实体类
 */
struct ActionResultModel {
    var code: Int
    var data: String
    var message: String
    var isSuccess: Bool

    init(respJson: JSON) {
        code = respJson["code"].intValue
        data = respJson["data"].stringValue
        message = respJson["message"].stringValue
        isSuccess = respJson["isSuccess"].boolValue
    }
}