Giter Site home page Giter Site logo

Comments (2)

Jinxiansen avatar Jinxiansen commented on August 25, 2024

第一个问题,
可以搜一下 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.

mzying2013 avatar mzying2013 commented on August 25, 2024

Got it! 非常感谢

from serversideswift.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.