Newer
Older
urbanLifeline_YanAn / src / api / OutgoingCall / templateList.js
@zhangqy zhangqy on 3 Oct 1 KB first commit
import request from '@/utils/request'

// 查询语音外呼-模板信息分页
export function pageunitVoiceTemplate(query) {
  return request({
    url: '/business/unitVoiceTemplate/page',
    method: 'get',
    params: query
  })
}

// 查询语音外呼-模板信息列表
export function listunitVoiceTemplate(query) {
  return request({
    url: '/business/unitVoiceTemplate/list',
    method: 'get',
    params: query
  })
}

// 查询语音外呼-模板信息详细
export function getunitVoiceTemplate(id) {
  return request({
    url: '/business/unitVoiceTemplate/' + id,
    method: 'get'
  })
}

// 新增语音外呼-模板信息
export function addunitVoiceTemplate(data) {
  return request({
    url: '/business/unitVoiceTemplate/add',
    method: 'post',
    data: data
  })
}

// 修改语音外呼-模板信息
export function updateunitVoiceTemplate(data) {
  return request({
    url: '/business/unitVoiceTemplate/edit',
    method: 'put',
    data: data
  })
}

// 删除语音外呼-模板信息
export function delunitVoiceTemplate(id) {
  return request({
    url: '/business/unitVoiceTemplate/' + id,
    method: 'delete'
  })
}
// 同步
export function unitVoiceTemplateSync(row) {
  return request({
    url: '/business/unitVoiceTemplate/sync',
    method: 'get'
  })
}
// 测试外呼
export function unitVoiceTemplateCall(data) {
  return request({
    url: '/business/unitVoiceTemplate/call',
    method: 'post',
    data: data
  })
}