Comments (2)
第一个问题,
可以搜一下 AccessToken 与 RefreshToken 的区别,网上有很多讲的更详细的。
https://my.oschina.net/zhongzhong5/blog/1607040
第二个问题,
Struct 的属性作为客户端请求时指定需要传的参数 key 及类型,
举个例子:
struct PageContainer: Content {
var page: Int
var county: String?
}
作为客户端需要传的参数:page
和 county
, 后者加 ?
时,作为可选参数存在,具体用法,可写个 API 测试一下。
第三个问题,
你点开 .make 方法,里边有这么一句话:
Subsequent calls to `make(_:)` for the same type will yield a cached result.
目前来说,学习 Vapor 是比较枯燥的过程,对于很多问题及用法我也是一知半解,因为相关资料太少,而且 Vapor 2 -> Vapor 3 的变动也很大,能坚持下来实属不易,但这并不能阻挡我的热情。
希望你也能从中找到乐趣,祝你好运!
from serversideswift.
Got it! 非常感谢
from serversideswift.
Related Issues (13)
- 執行vapor run時有錯誤 HOT 2
- swift 5.0.1 错误。可以添加一个docker 文件吗? HOT 1
- 期待更新... HOT 1
- 无法顺利build HOT 1
- 能添加一个手机验证码的例子吗 HOT 1
- vapor 发布4.0有段时间了,求更新 HOT 1
- some file missing HOT 3
- validation account and password is error HOT 2
- static css file fail HOT 2
- 你的这个例子里终端里的注册请求失败 HOT 5
- 你的歇后语什么的数据那里来的?用的别人的接口、还是自己抓的? HOT 1
- 部署到阿里云的话端口怎么配置? HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serversideswift.