# Conflicts: # EmployeeDirectory/Protocols/EmployeeServiceProtocol.swift # EmployeeDirectory/ViewControllers/EmployeesViewController.swift # EmployeeDirectory/ViewModels/EmployeesViewModel.swift Signed-off-by: Matt Bruce <mbrucedogs@gmail.com>
15 lines
469 B
Swift
15 lines
469 B
Swift
//
|
|
// EmployeeServiceable.swift
|
|
// EmployeeDirectory
|
|
//
|
|
// Created by Matt Bruce on 1/20/25.
|
|
//
|
|
|
|
/// This will be the interface for the API for Employees
|
|
public protocol EmployeeServiceProtocol {
|
|
/// This will get a list of all employees
|
|
/// - Returns: An Employees struct
|
|
func getEmployees() async throws -> Employees
|
|
func getEmployees(page: Int, perPage: Int, sortField: EmployeeSortField, sortOrder: EmployeeSortOrder) async throws -> Employees
|
|
}
|