feat:添加秒杀活动管理

This commit is contained in:
puhui999
2023-06-22 17:31:36 +08:00
parent f3622d423a
commit 3d47d6744e
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 })