callbackAccount.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. import request from '@/utils/request'
  2. // 分页查询回传账号列表
  3. export function pageCallbackAccount(query) {
  4. return request({
  5. url: '/callback-account/page',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 根据ID查询回传账号详情
  11. export function getCallbackAccount(id) {
  12. return request({
  13. url: '/callback-account/' + id,
  14. method: 'get'
  15. })
  16. }
  17. // 创建回传账号
  18. export function addCallbackAccount(data) {
  19. return request({
  20. url: '/callback-account',
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. // 更新回传账号
  26. export function updateCallbackAccount(id, data) {
  27. return request({
  28. url: '/callback-account/' + id,
  29. method: 'put',
  30. data: data
  31. })
  32. }
  33. // 删除回传账号
  34. export function delCallbackAccount(id) {
  35. return request({
  36. url: '/callback-account/' + id,
  37. method: 'delete'
  38. })
  39. }
  40. // 批量删除回传账号
  41. export function batchDelCallbackAccount(ids) {
  42. return request({
  43. url: '/callback-account/batch',
  44. method: 'delete',
  45. data: ids
  46. })
  47. }
  48. // 查询事件类型
  49. export function queryEventType(advertiserId) {
  50. return request({
  51. url: '/callback-account/queryEventType/' + advertiserId,
  52. method: 'post'
  53. })
  54. }
  55. // 保存转换事件
  56. export function saveEventType(id, data) {
  57. return request({
  58. url: '/callback-account/saveEventType/' + id,
  59. method: 'post',
  60. data: data
  61. })
  62. }