import request from '@/utils/request'

// 查询排班列表
export function listShiftScheduling(query) {
  return request({
    url: '/item/simpleDutySchedule/list',
    method: 'get',
    params: query
  })
}

//生成统一排班计划（支持单班、两班倒、多班倒等模式）
export function generateUnifiedSchedule(data) {
  return request({
    url: '/item/simpleDutySchedule/generateUnifiedSchedule',
    method: 'post',
    data: data
  })
}

//删除值班安排
export function delSimpleDutySchedule(scheduleIds) {
  return request({
    url: `/item/simpleDutySchedule/${scheduleIds}`,
    method: 'delete'
  })
}