想要用Alamofire创建全局http请求功能/扩展
function Request(requestPath:String, requestParams:Any, onComplate:Void) {
// stuff here, when async request complate i want to call onComplate function
// like C# method.Invoke() or func.Invoke()
}
Run Code Online (Sandbox Code Playgroud)