推荐商品

This commit is contained in:
liu
2026-08-31 22:21:59 +08:00
parent 6c809d893b
commit 9c59f3bc99
191 changed files with 2095 additions and 1 deletions
+19
View File
@@ -0,0 +1,19 @@
import createAxios from '@/utils/request';
/** 批量添加特价推荐商品(已在推荐中的自动跳过,返回 added/skipped 计数) */
export async function batchAddSpecials(product_ids: number[]) {
return createAxios<{ added: number; skipped: number }>({
url: '/client/special/batch',
method: 'post',
data: { product_ids },
});
}
/** 批量删除特价推荐 */
export async function batchDeleteSpecials(ids: number[]) {
return createAxios({
url: '/client/special/batch',
method: 'delete',
data: { ids },
});
}