🔧 refactor(api): исправляет интерфейсы и убирает ненужные приведения типов в API запросах
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user