point.js 929 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. import request from '@/utils/request'
  2. // 分页
  3. export function pointPage(data) {
  4. return request({
  5. url: '/mini/mercPlace/page',
  6. method: 'post',
  7. data:data
  8. })
  9. }
  10. // 新增修改点位
  11. export function pointSave(data) {
  12. return request({
  13. url: '/mini/mercPlace/save',
  14. method: 'post',
  15. data:data
  16. })
  17. }
  18. // 绑定/解绑设备
  19. export function bindDevice(data) {
  20. return request({
  21. url: '/mini/mercPlace/bindDevice',
  22. method: 'post',
  23. data:data
  24. })
  25. }
  26. // 列表(内部服务调用)
  27. export function listById(data) {
  28. return request({
  29. url: '/mini/mercPlace/listById',
  30. method: 'post',
  31. data:data
  32. })
  33. }
  34. // 列表
  35. export function pointListByMerc(data) {
  36. return request({
  37. url: '/mini/mercPlace/listByMerc',
  38. method: 'post',
  39. data:data
  40. })
  41. }
  42. // 删除
  43. export function pointDel(data) {
  44. return request({
  45. url: '/mini/mercPlace/del',
  46. method: 'post',
  47. data:data
  48. })
  49. }