Generate Vapor project

This commit is contained in:
wt committed 2025-11-09 02:24:21 +07:00
commit 600dbf172d
17 files changed
+469

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
import Fluent
import Vapor
struct TodoDTO: Content {
var id: UUID?
var title: String?
func toModel() -> Todo {
let model = Todo()
model.id = self.id
if let title = self.title {
model.title = title
}
return model
}
}