import request from '@/utils/request'

// 查询羊只档案列表
export function listSheep_file(query) {
  return request({
    url: '/sheep_file/sheep_file/list',
    method: 'get',
    params: query
  })
}

// 查询羊只档案详细
export function getSheep_file(id) {
  return request({
    url: '/sheep_file/sheep_file/' + id,
    method: 'get'
  })
}


// 删除羊只档案
export function delSheep_file(id) {
  return request({
    url: '/sheep_file/sheep_file/' + id,
    method: 'delete'
  })
}



// 在群总数
export const getInGroupCount = () => 
  request({ url: '/sheep_file/sheep_file/stat/inGroupCount', method: 'get' })

export function getSheepTypeStat() {
  return request({ url: '/sheep_file/sheep_file/stat/sheepType', method: 'get' })
}

export function getBreedStatusStat() {
  return request({ url: '/sheep_file/sheep_file/stat/breedStatus', method: 'get' })
}

export function getVarietyStat() {
  return request({ url: '/sheep_file/sheep_file/stat/variety', method: 'get' })
}

export function getLactationParityStat() {
  return request({ url: '/sheep_file/sheep_file/stat/lactationParity', method: 'get' })
}
