import { get, post, put, del } from './request'

export interface SimpleStaff {
  value: number
  label: string
  staffId: number
  name: string
}

export function getStaffList(pageNum = 1, pageSize = 10, status?: string) {
  return get('/staff/list', { pageNum, pageSize, status })
}

export function getStaffSimpleList() {
  return get<SimpleStaff[]>('/staff/simple-list')
}

export function getStaffDetail(staffId: number) {
  return get(`/staff/${staffId}`)
}

export function getOnDutyStaff() {
  return get('/staff/on-duty')
}

export function getEmergencyTeam() {
  return get('/staff/emergency-team')
}
