点赞收藏功能细化,问题修复
This commit is contained in:
@@ -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}`)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user