Newer
Older
urbanLifeline_YanAn / src / api / voice / voiceUnitHotWords.js
@zhangqy zhangqy on 3 Oct 1 KB first commit
  1. import request from '@/utils/request'
  2.  
  3. // 查询语音热词管理分页
  4. export function pagevoiceUnitHotWords (query) {
  5. return request({
  6. url: '/business/voiceUnitHotWords/page',
  7. method: 'get',
  8. params: query
  9. })
  10. }
  11.  
  12. // 查询语音热词管理列表
  13. export function listvoiceUnitHotWords (query) {
  14. return request({
  15. url: '/business/voiceUnitHotWords/list',
  16. method: 'get',
  17. params: query
  18. })
  19. }
  20.  
  21. // 查询语音热词管理详细
  22. export function getvoiceUnitHotWords (id) {
  23. return request({
  24. url: '/business/voiceUnitHotWords/' + id,
  25. method: 'get'
  26. })
  27. }
  28.  
  29. // 新增语音热词管理
  30. export function addvoiceUnitHotWords (data) {
  31. return request({
  32. url: '/business/voiceUnitHotWords/add',
  33. method: 'post',
  34. data: data
  35. })
  36. }
  37.  
  38. // 修改语音热词管理
  39. export function updatevoiceUnitHotWords (data) {
  40. return request({
  41. url: '/business/voiceUnitHotWords/edit',
  42. method: 'put',
  43. data: data
  44. })
  45. }
  46.  
  47. // 删除语音热词管理
  48. export function delvoiceUnitHotWords (id) {
  49. return request({
  50. url: '/business/voiceUnitHotWords/' + id,
  51. method: 'delete'
  52. })
  53. }