store.js 892 B

12345678910111213141516171819202122232425262728293031323334353637
  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 findVsDeviceChannels = param => {
  12. return axios.request({
  13. url: `vs/device/channels/${param.deviceId}`,
  14. method: 'get',
  15. })
  16. }
  17. //查询门店绑定设备
  18. export const findStoreVsDevice = param => {
  19. return axios.request({
  20. url: `storeVsDevice/findStoreVsDevice/${param.storeCode}`,
  21. method: 'get',
  22. })
  23. }
  24. // 拍照截图
  25. export const photoPaiZhao = param => {
  26. return axios.request({
  27. url: `vs/stream/streamSnapshot/${param.streamId}`,
  28. method: 'get',
  29. })
  30. }
  31. // 获取播放地址
  32. export const getVideoUrl = param => {
  33. return axios.request({
  34. url: `vs/stream/url/${param.streamId}/${param.outProtocol}`,
  35. method: 'get',
  36. })
  37. }