store.js 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import axios from '@/libs/axios.js'
  2. // 查询门店列表
  3. export const findStoreList = param => {
  4. return axios.request({
  5. url: `store/findList`,
  6. method: 'post',
  7. data: param
  8. })
  9. }
  10. // 查询所有门店
  11. export const findAllStore = param => {
  12. return axios.request({
  13. url: `store/findAll`,
  14. method: 'post',
  15. data: param
  16. })
  17. }
  18. // 查询门店摄像头流列表
  19. export const findVsDeviceChannels = param => {
  20. return axios.request({
  21. url: `vs/device/channels/${param.deviceId}`,
  22. method: 'get',
  23. })
  24. }
  25. //查询门店绑定设备
  26. export const findStoreVsDevice = param => {
  27. return axios.request({
  28. url: `storeVsDevice/findStoreVsDevice/${param.storeCode}`,
  29. method: 'get',
  30. })
  31. }
  32. // 拍照截图
  33. export const photoPaiZhao = param => {
  34. return axios.request({
  35. url: `vs/stream/streamSnapshot/${param.streamId}`,
  36. method: 'get',
  37. })
  38. }
  39. // 获取播放地址
  40. export const getVideoUrl = param => {
  41. return axios.request({
  42. url: `vs/stream/url/${param.streamId}/${param.outProtocol}`,
  43. method: 'get',
  44. })
  45. }