2 次程式碼提交

作者 SHA1 備註 提交日期
  Mike Carman a2515ae396 V2.1 2 週之前
  Mike Carman 1ac2e40102 V2.1 Controller 2 週之前
共有 3 個文件被更改,包括 9 次插入 和 21 次删除
統一視圖
  1. 二進制
      .swiftpm/xcode/package.xcworkspace/xcuserdata/mcarman.xcuserdatad/UserInterfaceState.xcuserstate
  2. +6
    -20
      .swiftpm/xcode/xcuserdata/mcarman.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
  3. +3
    -1
      Sources/App/Controllers/V2.1/FuelEntryControllerV2_1.swift

二進制
.swiftpm/xcode/package.xcworkspace/xcuserdata/mcarman.xcuserdatad/UserInterfaceState.xcuserstate 查看文件


+ 6
- 20
.swiftpm/xcode/xcuserdata/mcarman.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist 查看文件

@@ -296,14 +296,14 @@
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint"> BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent <BreakpointContent
uuid = "4BA9FF0F-7885-427C-BFB1-D1967AA88E83" uuid = "4BA9FF0F-7885-427C-BFB1-D1967AA88E83"
shouldBeEnabled = "Yes"
shouldBeEnabled = "No"
ignoreCount = "0" ignoreCount = "0"
continueAfterRunningActions = "No" continueAfterRunningActions = "No"
filePath = "Sources/App/Controllers/V2.1/FuelEntryControllerV2_1.swift" filePath = "Sources/App/Controllers/V2.1/FuelEntryControllerV2_1.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "671"
endingLineNumber = "671"
startingLineNumber = "673"
endingLineNumber = "673"
landmarkName = "create(req:)" landmarkName = "create(req:)"
landmarkType = "7"> landmarkType = "7">
</BreakpointContent> </BreakpointContent>
@@ -312,7 +312,7 @@
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint"> BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent <BreakpointContent
uuid = "96C20337-81C9-49B5-9456-AE00B5B367EA" uuid = "96C20337-81C9-49B5-9456-AE00B5B367EA"
shouldBeEnabled = "Yes"
shouldBeEnabled = "No"
ignoreCount = "0" ignoreCount = "0"
continueAfterRunningActions = "No" continueAfterRunningActions = "No"
filePath = "Sources/App/Controllers/V2.1/FuelEntryControllerV2_1.swift" filePath = "Sources/App/Controllers/V2.1/FuelEntryControllerV2_1.swift"
@@ -352,25 +352,11 @@
endingLineNumber = "670"> endingLineNumber = "670">
</Location> </Location>
<Location <Location
uuid = "96C20337-81C9-49B5-9456-AE00B5B367EA - 273c71d5945c5dd6"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "(6) await resume partial function for App.FuelEntryV2ControllerV2_1.create(req: Vapor.Request) async throws -&gt; Vapor.Response"
moduleName = "App"
usesParentBreakpointCondition = "Yes"
urlString = "file:///Users/mcarman/Projects/Vapor/fueling_v1/Sources/App/Controllers/V2.1/FuelEntryControllerV2_1.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "670"
endingLineNumber = "670">
</Location>
<Location
uuid = "96C20337-81C9-49B5-9456-AE00B5B367EA - e15abd85ddbd5cbe"
uuid = "96C20337-81C9-49B5-9456-AE00B5B367EA - 59be19ac25be1c89"
shouldBeEnabled = "Yes" shouldBeEnabled = "Yes"
ignoreCount = "0" ignoreCount = "0"
continueAfterRunningActions = "No" continueAfterRunningActions = "No"
symbolName = "(10) suspend resume partial function for App.FuelEntryV2ControllerV2_1.create(req: Vapor.Request) async throws -&gt; Vapor.Response"
symbolName = "closure #1 (App.FuelEntry) throws -&gt; App.FuelEntry.V2_1_Output in App.FuelEntryV2ControllerV2_1.create(req: Vapor.Request) async throws -&gt; Vapor.Response"
moduleName = "App" moduleName = "App"
usesParentBreakpointCondition = "Yes" usesParentBreakpointCondition = "Yes"
urlString = "file:///Users/mcarman/Projects/Vapor/fueling_v1/Sources/App/Controllers/V2.1/FuelEntryControllerV2_1.swift" urlString = "file:///Users/mcarman/Projects/Vapor/fueling_v1/Sources/App/Controllers/V2.1/FuelEntryControllerV2_1.swift"


+ 3
- 1
Sources/App/Controllers/V2.1/FuelEntryControllerV2_1.swift 查看文件

@@ -667,7 +667,9 @@ struct FuelEntryV2ControllerV2_1: RouteCollection {
} }
// try await fuelEntry.create(on: req.db) // try await fuelEntry.create(on: req.db)
let response = try await results.encodeResponse(for: req)
let response = try await results.map{
try FuelEntry.V2_1_Output.init(from: $0)
}.encodeResponse(for: req)
return response return response
} }


Loading…
取消
儲存