 import AlamofireNetworkActivityIndicator
 import MBProgressHUD
 
+
+enum ResponseType {
+    case json, string, data
+}
+
+enum DataResponsePackage {
+    case json(DataResponse<Any, AFError>)
+    case string(DataResponse<String, AFError>)
+    case data(DataResponse<Data, AFError>)
+}
+
+
 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
+
+struct RGNetwork { }
+
+
+//  MARK: - Public Methods
+
+extension RGNetwork {
+
     /// 通用请求方法
-    ///
     /// - Parameters:
     ///   - urlString: 请求地址
     ///   - method: 请求方法

        }
    }


    //  MARK: - Private Methods
    private static func responseJSON(
        with request: DataRequest,
        success: @escaping SuccessTask,



// MARK: - Indicator View

extension RGNetwork {
    /// 在 Status Bar 上显示 Activity Indicator
    ///
