Files
nademitex_user/src/services/suggestionsApi.ts
T

21 lines
454 B
TypeScript
Raw Normal View History

2026-09-19 16:59:15 +03:30
import { apiRequest } from './http'
export type ProductSuggestionDto = {
id: string
productId: string
productName: string
productCode: string
catalogName?: string
catalogCode?: string
color?: string
subtitle?: string
imageUrl?: string
isNew?: boolean
note?: string
createdAt: string
}
export async function fetchMySuggestions(): Promise<ProductSuggestionDto[]> {
return apiRequest<ProductSuggestionDto[]>('/suggestions/me')
}