.
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
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')
|
||||
}
|
||||
Reference in New Issue
Block a user