index.js 871 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. import https from '@/plugins/luch-request_0.0.7/request'
  2. /** *
  3. * 广告列表 b
  4. */
  5. export const getList = data => {
  6. return https.get('/ad/list', data)
  7. }
  8. /** *
  9. * 广告详情 b
  10. */
  11. export const getDet = data => {
  12. return https.get('/ad/detail', data)
  13. }
  14. /** *
  15. * 广告添加 b
  16. */
  17. export const add = data => {
  18. return https.post('/ad/add', data)
  19. }
  20. /** *
  21. * 广告点击 b
  22. */
  23. export const click = data => {
  24. return https.get('/ad/click', data)
  25. }
  26. /** *
  27. * 广告更新 b
  28. */
  29. export const update = data => {
  30. return https.post('/ad/update', data)
  31. }
  32. /** *
  33. * 广告删除 b
  34. */
  35. export const del = data => {
  36. return https.get('/ad/delete', data)
  37. }
  38. /** *
  39. * 广告排序 b
  40. */
  41. export const sort = data => {
  42. return https.get('/ad/sort', data)
  43. }
  44. /** *
  45. * 广告下架 b
  46. */
  47. export const updateStatus = data => {
  48. return https.get('/ad/update-status', data)
  49. }