promotion:优化秒杀活动的界面

This commit is contained in:
YunaiV
2023-10-03 18:41:57 +08:00
parent 40f44fc78e
commit 7c491ff62a
2 changed files with 219 additions and 93 deletions

View File

@ -57,6 +57,11 @@ export const updateSeckillActivity = async (data: SeckillActivityVO) => {
return await request.put({ url: '/promotion/seckill-activity/update', data })
}
// 关闭秒杀活动
export const closeSeckillActivity = async (id: number) => {
return await request.put({ url: '/promotion/seckill-activity/close?id=' + id })
}
// 删除秒杀活动
export const deleteSeckillActivity = async (id: number) => {
return await request.delete({ url: '/promotion/seckill-activity/delete?id=' + id })