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/music/index.ts |   41 +++++++++++++++++++++++++++++++++++++++++
 1 files changed, 41 insertions(+), 0 deletions(-)

diff --git a/src/api/ai/music/index.ts b/src/api/ai/music/index.ts
new file mode 100644
index 0000000..74b8526
--- /dev/null
+++ b/src/api/ai/music/index.ts
@@ -0,0 +1,41 @@
+import request from '@/config/axios'
+
+// AI 闊充箰 VO
+export interface MusicVO {
+  id: number // 缂栧彿
+  userId: number // 鐢ㄦ埛缂栧彿
+  title: string // 闊充箰鍚嶇О
+  lyric: string // 姝岃瘝
+  imageUrl: string // 鍥剧墖鍦板潃
+  audioUrl: string // 闊抽鍦板潃
+  videoUrl: string // 瑙嗛鍦板潃
+  status: number // 闊充箰鐘舵��
+  gptDescriptionPrompt: string // 鎻忚堪璇�
+  prompt: string // 鎻愮ず璇�
+  platform: string // 妯″瀷骞冲彴
+  model: string // 妯″瀷
+  generateMode: number // 鐢熸垚妯″紡
+  tags: string // 闊充箰椋庢牸鏍囩
+  duration: number // 闊充箰鏃堕暱
+  publicStatus: boolean // 鏄惁鍙戝竷
+  taskId: string // 浠诲姟id
+  errorMessage: string // 閿欒淇℃伅
+}
+
+// AI 闊充箰 API
+export const MusicApi = {
+  // 鏌ヨ闊充箰鍒嗛〉
+  getMusicPage: async (params: any) => {
+    return await request.get({ url: `/ai/music/page`, params })
+  },
+
+  // 鏇存柊闊充箰
+  updateMusic: async (data: any) => {
+    return await request.put({ url: '/ai/music/update', data })
+  },
+
+  // 鍒犻櫎闊充箰
+  deleteMusic: async (id: number) => {
+    return await request.delete({ url: `/ai/music/delete?id=` + id })
+  }
+}

--
Gitblit v1.8.0