import request from '@/utils/request'

// 获取工人列表请求
export const reqGetWorkList = (params) => request({
    url: `/work/queryAllWorkStatus`,
    method: 'post',
    params
})

// 添加工人请求
export const reqAddWorkList = (params) => request({
    url: `/work/insertWork`,
    method: 'post',
    params
})

// 删除工人请求
export const reqDeleteWorkList = (params) => request({
    url: `/work/removeWorkStatus`,
    method: 'post',
    params
})

// 获取修后评价列表请求
export const reqGetRepairWorkList = (params) => request({
    url: `/order/queryAllOrderByAdvice`,
    method: 'post',
    params
})

// 获取修后评价单个订单详情请求
export const reqGetRepairListDetail = (params) => request({
    url: `/order/queryByOrderId`,
    method: 'post',
    params
})

// 发布公告请求
export const reqGetPublishNotice = (params) => request({
    url: `/notice/addNotice`,
    method: 'post',
    params
})

// 获取公告记录请求
export const reqGetNoticeRecord = (params) => request({
    url: `/notice/queryAllNotice`,
    method: 'post',
    params
})

// 删除公告请求
export const reqDeleteNotice = (params) => request({
    url: `/notice/updateNotice`,
    method: 'post',
    params
})


// 待派单数据列表请求
export const reqGetOrder = (params) => request({
    url: `/order/queryAllOrderByDate`,
    method: 'post',
    params
})

// 待派单数据列表请求
export const reqGetOrderDetail = (params) => request({
    url: `/order/queryByOrderIdNotWork`,
    method: 'post',
    params
})

// 分配订单请求
export const reqGetOrderUpdate = (params) => request({
    url: `/order/updateRepairsOrderBath`,
    method: 'post',
    params
})

// 退单请求
export const reqGetOrderBack = (params) => request({
    url: `/order/updateOrderBack`,
    method: 'post',
    params
})