feat:添加秒杀活动管理

(cherry picked from commit 3d47d6744e)
This commit is contained in:
puhui999
2023-06-22 17:31:36 +08:00
committed by shizhong
parent e66f43c2b0
commit 7da1b04ae2
9 changed files with 848 additions and 9 deletions

View File

@ -19,6 +19,11 @@ export const getSeckillConfig = async (id: number) => {
return await request.get({ url: '/promotion/seckill-config/get?id=' + id })
}
// 获得所有开启状态的秒杀时段精简列表
export const getListAllSimple = async () => {
return await request.get({ url: '/promotion/seckill-config/list-all-simple' })
}
// 新增秒杀时段配置
export const createSeckillConfig = async (data: SeckillConfigVO) => {
return await request.post({ url: '/promotion/seckill-config/create', data })