21 lines
454 B
TypeScript
21 lines
454 B
TypeScript
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')
|
||
|
|
}
|