xinguang / alamofireswiftyjson Goto Github PK
View Code? Open in Web Editor NEWAlamofire(4) extension for serialize Data to SwiftyJSON(4)
Home Page: https://xinguang.github.io/AlamofireSwiftyJSON/
License: MIT License
Alamofire(4) extension for serialize Data to SwiftyJSON(4)
Home Page: https://xinguang.github.io/AlamofireSwiftyJSON/
License: MIT License
接口想要返回的业务数据外总是“包裹”了一层状态数据来标记这一次业务返回的成功、失败以及失败的原因。
{
"resultCode":200,
"resultMsg":"查询成功!",
"data":{
"city":"北京",
"temperature":"8℃~20℃",
"weather":"晴转霾"
}
}
或者
{
"resultCode":200,
"resultMsg":"查询成功!",
"data":[
{
"city":"北京",
"temperature":"8℃20℃",21℃",
"weather":"晴转霾"
},
{
"city":"南京",
"temperature":"12℃
"weather":"晴"
}
]
}
该如何封装呢
This becomes uninstallable as a pod when run in conjunction with Alamofire4 on the swift3 train.
I've manually integrated the file and tuned it a bit, but might be worth an update for other peeps like me.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.