Skip to content

swift 基于Restful接口规范,对网络层Alamofire、图片上传到AliyunOSSiOS的二次封装

License

Notifications You must be signed in to change notification settings

coderEmir/SERequestManager

Repository files navigation

SERequestManager

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

NetworkManager.host("http://www.test.com/")

NetworkManager.startRequest { manager -> NetworkManager in
    manager.requestType(.post)
        .origialData(origialData: { (jsonString, reponseData) in
            print("origial data",jsonString as Any, reponseData)
        })
        .url("example")
        .params(["userId": 1])
        .success { data in
            
            // analyze example
            let credential: CredentialModel? = SECodable.decoder(data: data)
            print(credential as Any)
        }
}

Requirements

swift_version = '5.0'

Installation

SERequestManager is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'SERequestManager'

License

SERequestManager is available under the MIT license. See the LICENSE file for more info.

About

swift 基于Restful接口规范,对网络层Alamofire、图片上传到AliyunOSSiOS的二次封装

Resources

License

Stars

Watchers

Forks

Packages

No packages published