From a1d7e81859f554f3a53680cc35f0f49bf1f77098 Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期四, 14 五月 2026 14:37:02 +0800
Subject: [PATCH] 导入项目

---
 src/api/ai/model/apiKey/index.ts |   44 ++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 44 insertions(+), 0 deletions(-)

diff --git a/src/api/ai/model/apiKey/index.ts b/src/api/ai/model/apiKey/index.ts
new file mode 100644
index 0000000..ed94836
--- /dev/null
+++ b/src/api/ai/model/apiKey/index.ts
@@ -0,0 +1,44 @@
+import request from '@/config/axios'
+
+// AI API 瀵嗛挜 VO
+export interface ApiKeyVO {
+  id: number // 缂栧彿
+  name: string // 鍚嶇О
+  apiKey: string // 瀵嗛挜
+  platform: string // 骞冲彴
+  url: string // 鑷畾涔� API 鍦板潃
+  status: number // 鐘舵��
+}
+
+// AI API 瀵嗛挜 API
+export const ApiKeyApi = {
+  // 鏌ヨ API 瀵嗛挜鍒嗛〉
+  getApiKeyPage: async (params: any) => {
+    return await request.get({ url: `/ai/api-key/page`, params })
+  },
+
+  // 鑾峰緱 API 瀵嗛挜鍒楄〃
+  getApiKeySimpleList: async () => {
+    return await request.get({ url: `/ai/api-key/simple-list` })
+  },
+
+  // 鏌ヨ API 瀵嗛挜璇︽儏
+  getApiKey: async (id: number) => {
+    return await request.get({ url: `/ai/api-key/get?id=` + id })
+  },
+
+  // 鏂板 API 瀵嗛挜
+  createApiKey: async (data: ApiKeyVO) => {
+    return await request.post({ url: `/ai/api-key/create`, data })
+  },
+
+  // 淇敼 API 瀵嗛挜
+  updateApiKey: async (data: ApiKeyVO) => {
+    return await request.put({ url: `/ai/api-key/update`, data })
+  },
+
+  // 鍒犻櫎 API 瀵嗛挜
+  deleteApiKey: async (id: number) => {
+    return await request.delete({ url: `/ai/api-key/delete?id=` + id })
+  }
+}

--
Gitblit v1.8.0