AutoCat/AutoCatCore/Services/StorageService/StorageServiceProtocol.swift

19 lines
558 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
}