AF.request(url,
method:.post,
parameters:dicts,
encoder:JSONParameterEncoder.default,
headers: ["Accept":"application/json"])
AF.request(url,
method: .put,
parameters: dicts,
encoding:JSONEncoding.default,
headers: ["Accept":"application/json","Authorization":"xxx"])
encoder 代表parameters 参数需要传入[String:Any] 或者继承Encodable 的struct
用于系统的json协议
encoding表示parameters 转为json字符串