推荐商品
This commit is contained in:
@@ -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 },
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user