import service from '@/utils/request'

// @Tags VoiceAddr
// @Summary 创建VoiceAddr
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.VoiceAddr true "创建VoiceAddr"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /voiceAddr/createVoiceAddr [post]
export const createVoiceAddr = (data) => {
  return service({
    url: '/voiceAddr/createVoiceAddr',
    method: 'post',
    data
  })
}

// @Tags VoiceAddr
// @Summary 删除VoiceAddr
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.VoiceAddr true "删除VoiceAddr"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /voiceAddr/deleteVoiceAddr [delete]
export const deleteVoiceAddr = (data) => {
  return service({
    url: '/voiceAddr/deleteVoiceAddr',
    method: 'delete',
    data
  })
}

// @Tags VoiceAddr
// @Summary 删除VoiceAddr
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除VoiceAddr"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /voiceAddr/deleteVoiceAddr [delete]
export const deleteVoiceAddrByIds = (data) => {
  return service({
    url: '/voiceAddr/deleteVoiceAddrByIds',
    method: 'delete',
    data
  })
}

// @Tags VoiceAddr
// @Summary 更新VoiceAddr
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.VoiceAddr true "更新VoiceAddr"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /voiceAddr/updateVoiceAddr [put]
export const updateVoiceAddr = (data) => {
  return service({
    url: '/voiceAddr/updateVoiceAddr',
    method: 'put',
    data
  })
}

// @Tags VoiceAddr
// @Summary 用id查询VoiceAddr
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.VoiceAddr true "用id查询VoiceAddr"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /voiceAddr/findVoiceAddr [get]
export const findVoiceAddr = (params) => {
  return service({
    url: '/voiceAddr/findVoiceAddr',
    method: 'get',
    params
  })
}

// @Tags VoiceAddr
// @Summary 分页获取VoiceAddr列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取VoiceAddr列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /voiceAddr/getVoiceAddrList [get]
export const getVoiceAddrList = (params) => {
  return service({
    url: '/voiceAddr/getVoiceAddrList',
    method: 'get',
    params
  })
}
