我是新的服務器端swift。我使用蒸氣服務器端快速。在steam請求中,我需要獲取JSON作爲[String:Any]來檢查像String,Int或Float這樣的值的數據類型。但在請求中,我無法找到值的確切數據類型。 drop.post("post") { (request) -> ResponseRepresentable in
guard let name = request.da
我對Vapor 2.0服務器端Swift框架非常熟悉,並且讓我困惑的是大量使用字符串文字。例如,實施Model協議,你必須分析和序列這樣的行(從自動生成的示例項目採取): // Initializes the Post from the database row
init(row: Row) throws {
content = try row.get("content")
}