import { post, get } from '@/utils/request'

/**
 * 获取订单列表
 */
export const getCouponList = (params) => post('/backend/couponserver/coupon/couponinfo/query', params)
/**
 * 新增卡券发送明细
 */
export const sendcouponSend = (params) => post('/backend/couponserver/sendcoupon/send', params)

/**
 * 新增优惠券
 */
export const createCouponInfo = (params) => post('/backend/couponserver/coupon/couponinfo/create', params)

/**
 * 选择产品
 */
export const queryProList = (params) => post('/backend/couponserver/coupon/productinfo/query', params)

/**
 * 审核卡券发放
 */
export const sendCouponCheck = (params) => post('/backend/couponserver/sendcoupon/check', params)

/**
 * 审核卡券上下架
 */
export const couponStatusCheck = (params) => post('/backend/couponserver/coupon/couponinfo/updateStatus', params)

/**
 * 新增卡券发送明细
 */
export const sendcoupon = (params) => post('/backend/couponserver/sendcoupon/send', params)

/**
 * 卡券发送明细分页
 */
export const sendcouponList = (params) => post('/backend/couponserver/sendcoupon/list', params)

/**
 * 驳回后修改优惠券
 */
export const editCouponInfo = (params) => post('/backend/couponserver/coupon/couponinfo/updateCoupon', params)

/**
 * 查看卡券发送用户
 */
export const queryCouponUser = (params) => get('/backend/couponserver/sendcoupon/view', params)

/**
 *  卡券使用明细
 */
export const queryUseCouponList = (params) => post('/backend/couponserver/logic/pageList', params)


export const customOrderList = (params) => get('/backend/order/customOrderList', params)

export const createAndSave = (params) => post('/backend/couponserver/coupon/couponinfo/createAndSave', params)
// 后台-删除优惠券
export const deleteCouponAndSend = (params) => post('/backend/couponserver/coupon/couponinfo/deleteCouponAndSend', params)
//后台-通知发送优惠券 

export const liveSend = (params) => get('/backend/couponserver/coupon/couponinfo/liveSend', params)
