mirror of
https://gitee.com/hhyykk/ipms-sjy-ui.git
synced 2025-07-15 11:25:07 +08:00
fix:完善秒杀活动管理①
This commit is contained in:
@ -49,6 +49,16 @@ export interface Spu {
|
||||
recommendGood?: boolean // 是否优品
|
||||
}
|
||||
|
||||
export interface SpuRespVO extends Spu {
|
||||
price: number
|
||||
salesCount: number
|
||||
marketPrice: number
|
||||
costPrice: number
|
||||
stock: number
|
||||
createTime: Date
|
||||
status: number
|
||||
}
|
||||
|
||||
// 获得 Spu 列表
|
||||
export const getSpuPage = (params: PageParam) => {
|
||||
return request.get({ url: '/product/spu/page', params })
|
||||
|
@ -1,8 +1,9 @@
|
||||
import request from '@/config/axios'
|
||||
import { Sku, SpuRespVO } from '@/api/mall/product/spu'
|
||||
|
||||
export interface SeckillActivityVO {
|
||||
id: number
|
||||
spuId: number
|
||||
spuIds: number[]
|
||||
name: string
|
||||
status: number
|
||||
remark: string
|
||||
@ -17,6 +18,22 @@ export interface SeckillActivityVO {
|
||||
singleLimitCount: number
|
||||
stock: number
|
||||
totalStock: number
|
||||
products: SeckillProductVO[]
|
||||
}
|
||||
|
||||
export interface SeckillProductVO {
|
||||
spuId: number
|
||||
skuId: number
|
||||
seckillPrice: number
|
||||
stock: number
|
||||
}
|
||||
|
||||
type SkuExtension = Sku & {
|
||||
productConfig: SeckillProductVO
|
||||
}
|
||||
|
||||
export interface SpuExtension extends SpuRespVO {
|
||||
skus: SkuExtension[] // 重写类型
|
||||
}
|
||||
|
||||
// 查询秒杀活动列表
|
||||
|
Reference in New Issue
Block a user