From fc15f2e904fade9e1505bad70b29829d7d99c124 Mon Sep 17 00:00:00 2001
From: lzhe <lzhe@example.com>
Date: 星期三, 05 六月 2024 12:04:59 +0800
Subject: [PATCH] 1

---
 src/api/model/setting.js |   70 ++++++++++++++++++++++++++++++++++-
 1 files changed, 68 insertions(+), 2 deletions(-)

diff --git a/src/api/model/setting.js b/src/api/model/setting.js
index 9d78f36..f18a396 100644
--- a/src/api/model/setting.js
+++ b/src/api/model/setting.js
@@ -1,7 +1,7 @@
 /*
  * @Date: 2024-04-07 21:49:32
  * @LastEditors: Sneed
- * @LastEditTime: 2024-04-10 19:45:58
+ * @LastEditTime: 2024-04-13 21:05:15
  * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/api/model/setting.js
  */
 import config from "@/config"
@@ -36,5 +36,71 @@
 			return await http.delete(this.url,data,conf);
 		}
     },
-    
+	interfaceConfig: {
+		getConList: {
+			url: `${config.API_URL}/blade-system/interface-config/page`,
+			name: "鐪嬫澘鎺ュ彛鍒楄〃",
+			get: async function(data){
+				return await http.get(this.url,data,{params: data});
+			}
+		},
+		add: {
+			url: `${config.API_URL}/blade-system/interface-config/insert`,
+			name: "鐪嬫澘鎺ュ彛鏂板",
+			post: async function(data){
+				return await http.post(this.url,data,{params: data});
+			}
+		},
+		update: {
+			url: `${config.API_URL}/blade-system/interface-config/update`,
+			name: "鐪嬫澘鎺ュ彛鏇存柊",
+			post: async function(data){
+				return await http.put(this.url,data,{params: data});
+			}
+		},
+		del: {
+			url: `${config.API_URL}/blade-system/interface-config/remove`,
+			name: "鐪嬫澘鎺ュ彛鏂板",
+			delete: async function(data,conf){
+				return await http.delete(this.url,data,conf);
+			}
+		},
+	},
+	component: {
+		getList: {
+			url: `${config.API_URL}/blade-visual/visual-comp/page`,
+			name: "缁勪欢缁存姢鍒楄〃",
+			get: async function(data){
+				return await http.get(this.url,data,{params: data});
+			}
+		},
+		getImgHost: {
+			url: `${config.API_URL}/blade-resource/oss/default`,
+			name: "鑾峰彇鏂囦欢鏈嶅姟host",
+			get: async function(data){
+				return await http.get(this.url,{},{params: data});
+			}
+		},
+		del: {
+			url: `${config.API_URL}/blade-visual/visual-comp/remove`,
+			name: "缁勪欢鍒犻櫎",
+			delete: async function(data,conf){
+				return await http.delete(this.url,data,conf);
+			}
+		},
+		add: {
+			url: `${config.API_URL}/blade-visual/visual-comp/insert`,
+			name: "缁勪欢鏂板",
+			post: async function(data){
+				return await http.post(this.url,data,{});
+			}
+		},
+		update: {
+			url: `${config.API_URL}/blade-visual/visual-comp/update`,
+			name: "缁勪欢鏇存柊",
+			post: async function(data,conf){
+				return await http.put(this.url,data);
+			}
+		}
+	},
 }
\ No newline at end of file

--
Gitblit v1.9.3