block-employee-directory/EmployeeDirectory/Protocols/EmployeeServiceProtocol.swift
Matt Bruce 67b2163134 Merge branch 'develop' into requestBuilder
# Conflicts:
#	EmployeeDirectory/Protocols/EmployeeServiceProtocol.swift
#	EmployeeDirectory/ViewControllers/EmployeesViewController.swift
#	EmployeeDirectory/ViewModels/EmployeesViewModel.swift

Signed-off-by: Matt Bruce <mbrucedogs@gmail.com>
2025-01-21 14:30:22 -06:00

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
}