import request from '@/utils/request'

//获取banner列表
export const getCustomersList = (params) => request.basic.get('/api/v1/customers', params)

// 黑名单列表
export const getBlackCustomersList = (params) => request.basic.get('/api/v1/blackCustomers', params)


//获取单个banner
export const getBanner = (id) => request.basic.get(`/api/v1/banners/${id}`)
//创建banner
export const createBanner = (data) => request.basic.post('/api/v1/banners', data)
//更新banner
export const updateBanner = (id, data) => request.basic.put(`/api/v1/banners/${id}`, data)
//删除banner
export const deleteBanner = (id) => request.basic.delete(`/api/v1/banners/${id}`)