Skip to content

Instantly share code, notes, and snippets.

@timbaev
Created January 26, 2019 14:07
Show Gist options
  • Save timbaev/f81f410bfb7bd03fcce366cde073a588 to your computer and use it in GitHub Desktop.
Save timbaev/f81f410bfb7bd03fcce366cde073a588 to your computer and use it in GitHub Desktop.
import Vapor
protocol TodoService {
func create(request: Request, todoDto: TodoDto) throws -> Future<TodoDto>
func fetch(request: Request) throws -> Future<[TodoDto]>
func delete(request: Request, todoID: Int) throws -> Future<TodoDto>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment