index.js 837 B

12345678910111213141516171819202122232425262728293031323334353637
  1. // 场景接口
  2. import serviceAxios from "@/http/index";
  3. // 根据用户场景查询展示点列表
  4. export const getUserScenepot = (params) => {
  5. return serviceAxios({
  6. url: `/vrone/backend/spots/list/${params}`,
  7. method: "get",
  8. });
  9. };
  10. // 根据展厅id查询数据源列表
  11. export const getDataSourceList = (params) => {
  12. return serviceAxios({
  13. url: `/vrone/backend/dataSources/getListByAppId/${params}`,
  14. method: "get",
  15. });
  16. };
  17. // 修改展示点信息
  18. export const updateSpot = (data) => {
  19. return serviceAxios({
  20. url: "/vrone/backend/spots/editSpot",
  21. method: "patch",
  22. data: data,
  23. });
  24. };
  25. // 根据场景id和展示点id查询数据源
  26. export const getDataSourceBySpot = (data) => {
  27. return serviceAxios({
  28. url: `/vrone/backend/spots/getDataSourceBySpot`,
  29. method: "post",
  30. data,
  31. });
  32. };