商品收藏功能

This commit is contained in:
xiaowang
2026-03-05 16:02:34 +08:00
parent 560921c0e9
commit 0cae87e957
4 changed files with 78 additions and 3 deletions
+8
View File
@@ -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
}
})
}
}