From 1c391db321fae77ddcd297e14fbe1429960ead49 Mon Sep 17 00:00:00 2001
From: 龚焕茏 <2842157468@qq.com>
Date: 星期二, 05 三月 2024 14:42:20 +0800
Subject: [PATCH] 景区运行数据基础功能

---
 src/api/scenery/sceneryOperationData/index.ts |   21 ++++++++++++++++-----
 1 files changed, 16 insertions(+), 5 deletions(-)

diff --git a/src/api/scenery/sceneryOperationData/index.ts b/src/api/scenery/sceneryOperationData/index.ts
index 144700e..3a0cca7 100644
--- a/src/api/scenery/sceneryOperationData/index.ts
+++ b/src/api/scenery/sceneryOperationData/index.ts
@@ -1,6 +1,7 @@
 import request from '@/utils/request';
 import { AxiosPromise } from 'axios';
 import { SceneryOperationDataVO, SceneryOperationDataForm, SceneryOperationDataQuery } from '@/api/scenery/sceneryOperationData/types';
+import { SceneryInfoVO } from '@/api/sceneryInfo/types';
 
 /**
  * 鏌ヨ鏅尯杩愯鏁版嵁鍒楄〃
@@ -10,7 +11,7 @@
 
 export const listSceneryOperationData = (query?: SceneryOperationDataQuery): AxiosPromise<SceneryOperationDataVO[]> => {
   return request({
-    url: '/sc/sceneryOperationData/list',
+    url: '/demo/sceneryOperationData/list',
     method: 'get',
     params: query
   });
@@ -22,7 +23,17 @@
  */
 export const getSceneryOperationData = (id: string | number): AxiosPromise<SceneryOperationDataVO> => {
   return request({
-    url: '/sc/sceneryOperationData/' + id,
+    url: '/demo/sceneryOperationData/' + id,
+    method: 'get'
+  });
+};
+
+/**
+ * 鏌ヨ鏅尯鍚嶇О
+ */
+export const getSceneryInfoNames = (): AxiosPromise<SceneryInfoVO[]> => {
+  return request({
+    url: '/demo/sceneryInfo/list',
     method: 'get'
   });
 };
@@ -33,7 +44,7 @@
  */
 export const addSceneryOperationData = (data: SceneryOperationDataForm) => {
   return request({
-    url: '/sc/sceneryOperationData',
+    url: '/demo/sceneryOperationData',
     method: 'post',
     data: data
   });
@@ -45,7 +56,7 @@
  */
 export const updateSceneryOperationData = (data: SceneryOperationDataForm) => {
   return request({
-    url: '/sc/sceneryOperationData',
+    url: '/demo/sceneryOperationData',
     method: 'put',
     data: data
   });
@@ -57,7 +68,7 @@
  */
 export const delSceneryOperationData = (id: string | number | Array<string | number>) => {
   return request({
-    url: '/sc/sceneryOperationData/' + id,
+    url: '/demo/sceneryOperationData/' + id,
     method: 'delete'
   });
 };

--
Gitblit v1.8.0