商品收藏功能
This commit is contained in:
@@ -79,5 +79,13 @@ export const productApi = {
|
||||
|
||||
unlikeProduct: (productId: number) => {
|
||||
return api.post<boolean>(`/product/unlike/${productId}`)
|
||||
},
|
||||
|
||||
searchProducts: (keyword: string) => {
|
||||
return api.get<ProductVO[]>('/product/list/search', {
|
||||
params: {
|
||||
keyword: keyword
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user