import service from '../service' // 盲盒api export class BlindBoxActivityApi { updateInfo = (params) => { return service.post('/awl-promotion-service/npPromotionDetail/updateByPrimaryKeySelective', params) } addInfo = (params) => { return service.post('/awl-promotion-service/npPromotionDetail/insertSelective', params) } deleteItem = (params) => { return service.post('/awl-promotion-service/npPromotionDetail/deleteByPrimaryKey', params) } detailsItem = (params, showLoading = true) => { return service.get(`/awl-promotion-service/npPromotionDetail/getNpPromotionDetailByPromotionId?promotionId=${params.promotionId}`, { showLoading }) } /** * 查询抽奖记录 * @param {*} params * @param {*} showLoading * @returns */ getWinRecord= (params, showLoading = true) => { return service.get('/awl-promotion-service/npPromotionDetail/getWinRecord', { params, showLoading }) } } export default new BlindBoxActivityApi()