import request from '@/utils/request'

// 播发记录
export const reqGetBroadcast = (params) => request({
    url: `/broadcast/record/page`,
    method: 'get',
    params
})

// 新增播发信息
export const reqAddBroadcast = (data) => request({
    url: `/broadcast/record/add`,
    method: 'post',
    data
})

// 修改播发信息
export const reqUpdateBroadcast = (data) => request({
    url: `/broadcast/record/update`,
    method: 'post',
    data
})

// 删除播发记录
export const reqDeleteBroadcast = (id) => request({
    url: `/broadcast/record/delete`,
    method: 'delete',
    data: [id]
})