import service from '@/utils/request'

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

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

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

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

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

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