20 lines
622 B
Swift
20 lines
622 B
Swift
//
|
|
// StorageServiceProtocol.swift
|
|
// AutoCatCore
|
|
//
|
|
// Created by Selim Mustafaev on 13.07.2024.
|
|
// Copyright © 2024 Selim Mustafaev. All rights reserved.
|
|
//
|
|
|
|
import Mockable
|
|
|
|
@Mockable
|
|
public protocol StorageServiceProtocol: Sendable {
|
|
|
|
func addNote(text: String, to number: String) async throws -> VehicleDto
|
|
func deleteNote(id: String, for number: String) async throws -> VehicleDto
|
|
func editNote(id: String, text: String, for number: String) async throws -> VehicleDto
|
|
func updateVehicleIfExists(dto: VehicleDto) async throws
|
|
func loadVehicle(number: String) async throws -> VehicleDto
|
|
}
|