This commit is contained in:
van
2026-11-14 16:21:32 +08:00
parent f3dae81257
commit 7d4f06f3c1
2 changed files with 161 additions and 2 deletions
+18
View File
@@ -118,6 +118,24 @@ export function getTbProductTypeMap() {
})
}
// 保存型号与商品ID映射
export function saveProductTypeMap(data) {
return request({
url: '/jarvis/comment/redis/map',
method: 'put',
data: data
})
}
// 删除型号与商品ID映射
export function delProductTypeMap(source, key) {
return request({
url: '/jarvis/comment/redis/map',
method: 'delete',
params: { source, key }
})
}
// 获取评论(由后端转发到外部服务,避免前端跨域)
export function fetchComments(productId) {
return request({