30 lines
993 B
Swift
30 lines
993 B
Swift
//
|
|
// ApiServiceProtocol.swift
|
|
// AutoCatCore
|
|
//
|
|
// Created by Selim Mustafaev on 13.07.2024.
|
|
// Copyright © 2024 Selim Mustafaev. All rights reserved.
|
|
//
|
|
|
|
import Mockable
|
|
|
|
@Mockable
|
|
public protocol ApiServiceProtocol: Sendable {
|
|
|
|
func add(notes: [VehicleNoteDto], to number: String) async throws -> VehicleDto
|
|
func edit(note: VehicleNoteDto) async throws -> VehicleDto
|
|
func remove(note id: String) async throws -> VehicleDto
|
|
|
|
func add(event: VehicleEventDto, to number: String) async throws -> VehicleDto
|
|
func remove(event id: String) async throws -> VehicleDto
|
|
func edit(event: VehicleEventDto) async throws -> VehicleDto
|
|
|
|
func getBrands() async throws -> [String]
|
|
func getModels(of brand: String) async throws -> [String]
|
|
func getColors() async throws -> [String]
|
|
func getRegions() async throws -> [VehicleRegion]
|
|
func getYears() async throws -> [Int]
|
|
|
|
func checkVehicleGb(by number: String) async throws -> VehicleDto
|
|
}
|