🔧 refactor(api): исправляет интерфейсы и убирает ненужные приведения типов в API запросах

This commit is contained in:
Oscar
2026-06-08 18:00:44 +03:00
parent 031781a47e
commit ffde85242a
14 changed files with 58 additions and 123 deletions

View File

@@ -1,3 +1,4 @@
import type { CityResponseDto, DistrictResponseDto, GreetingDto, TagResponseDto } from '@/api/api'
import { reactive, ref } from 'vue'
export type ToastType = 'success' | 'error' | 'info' | 'warning'
@@ -9,26 +10,10 @@ export interface Toast {
duration?: number
}
export interface Tag {
id: string
value: string
}
export interface City {
id: string
name: string
}
export interface District {
id: string
name: string
cityId: string
}
export interface Greeting {
id: string
text: string
}
export type Tag = TagResponseDto
export type City = CityResponseDto
export type District = DistrictResponseDto
export type Greeting = GreetingDto
const toasts = ref<Toast[]>([])
const sidebarExpanded = ref(false)