 
 
 // MARK: - Indicator View
+
 extension RGNetwork {
     /// 在 Status Bar 上显示 Activity Indicator
     ///

import AlamofireNetworkActivityIndicator
import MBProgressHUD

typealias ResponseJSON = [String: Any]
typealias ResponseString = String
typealias ResponseData = Data
typealias HttpStatusCode = Int

enum DataResponsePackage {
    case json(DataResponse<Any, AFError>)
    case string(DataResponse<String, AFError>)
    case data(DataResponse<Data, AFError>)
}

typealias SuccessTask = (ResponseJSON?, ResponseString?, ResponseData?, HttpStatusCode?, DataRequest, DataResponsePackage) -> Void
typealias FailureTask = (Error?, HttpStatusCode?, DataRequest, DataResponsePackage) -> Void

enum ResponseType {
    case json, string, data
}


struct RGNetwork {

    //  MARK: Public Methods
    /// 通用请求方法
    ///
    /// - Parameters:
    ///   - urlString: 请求地址
    ///   - method: 请求方法

        }
    }

}


//  MARK: - Private Methods

extension RGNetwork {

    private static func responseJSON(
        with request: DataRequest,
        success: @escaping SuccessTask,
