website refactor
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { Result } from '@/lib/contracts/Result';
|
||||
import type { Service } from '@/lib/contracts/services/Service';
|
||||
import type { DomainError, Service } from '@/lib/contracts/services/Service';
|
||||
import type { GetLiveriesOutputDTO } from '@/lib/types/tbd/GetLiveriesOutputDTO';
|
||||
|
||||
/**
|
||||
@@ -8,7 +8,7 @@ import type { GetLiveriesOutputDTO } from '@/lib/types/tbd/GetLiveriesOutputDTO'
|
||||
* Provides livery management functionality.
|
||||
*/
|
||||
export class LiveryService implements Service {
|
||||
async getLiveries(driverId: string): Promise<Result<GetLiveriesOutputDTO, string>> {
|
||||
async getLiveries(_: string): Promise<Result<GetLiveriesOutputDTO, DomainError>> {
|
||||
// Mock data for now
|
||||
const mockLiveries: GetLiveriesOutputDTO = {
|
||||
liveries: [
|
||||
@@ -31,7 +31,7 @@ export class LiveryService implements Service {
|
||||
return Result.ok(mockLiveries);
|
||||
}
|
||||
|
||||
async uploadLivery(driverId: string, file: File): Promise<Result<{ liveryId: string }, string>> {
|
||||
async uploadLivery(__: string, ___: File): Promise<Result<{ liveryId: string }, DomainError>> {
|
||||
// Mock implementation
|
||||
return Result.ok({ liveryId: 'new-livery-id' });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user