You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
1.5 KiB

6 months ago
import { PageQuery } from '~/types/global'
import { SeckillListQuery } from '~/types/activity'
/**
*
*
*/
export const couponCollectionApi = (params: PageQuery) => {
return $request.get({ url: `front/coupon/voucher/collection/center`, params })
}
/**
*
*
*/
export const systemCouponListApi = (params: PageQuery) => {
return $request.get({ url: `front/product/system/coupon/pro/list`, params })
}
/**
*
*
*/
export const proCouponListApi = (params: PageQuery) => {
return $request.get({ url: `front/product/coupon/pro/list`, params })
}
/**
*
*
*/
export const articleCategoryApi = () => {
return $request.get({ url: `front/article/category/list` })
}
/**
*
*
*/
export const articleListApi = (cid: number, params: PageQuery) => {
return $request.get({ url: `front/article/list/${cid}`, params })
}
/**
*
*
*/
export const articleHotListApi = () => {
return $request.get({ url: `front/article/hot/list` })
}
/**
*
*
*/
export const articleInfoApi = (id: number) => {
return $request.get({ url: `front/article/info/${id}` })
}
/**
*
*
*/
export const seckillListApi = (params: SeckillListQuery) => {
return $request.get({ url: `front/Seckill/product/list`, params })
}
/**
*
*
*/
export const seckillTimeApi = () => {
return $request.get({ url: `front/Seckill/activity/time/info`})
}