点赞收藏功能细化,问题修复

This commit is contained in:
xiaowang
2026-03-05 15:15:59 +08:00
parent bea4b63e3e
commit 560921c0e9
13 changed files with 560 additions and 131 deletions
+8
View File
@@ -71,5 +71,13 @@ export const productApi = {
getProductsByTag: (tag: string) => {
return api.get<ProductVO[]>(`/product/list/tag/${tag}`)
},
likeProduct: (productId: number) => {
return api.post<boolean>(`/product/like/${productId}`)
},
unlikeProduct: (productId: number) => {
return api.post<boolean>(`/product/unlike/${productId}`)
}
}