feat: Add voice management functionality with delete capability and UI integration

This commit is contained in:
2026-03-06 14:35:59 +08:00
parent ad90e5f96c
commit 964ebb824c
17 changed files with 224 additions and 21 deletions

View File

@@ -432,6 +432,10 @@ export const voiceDesignApi = {
return response.data
},
delete: async (id: number): Promise<void> => {
await apiClient.delete(API_ENDPOINTS.VOICE_DESIGNS.DELETE(id))
},
prepareAndCreate: async (data: VoiceDesignCreate): Promise<VoiceDesign> => {
const response = await apiClient.post<VoiceDesign>(
API_ENDPOINTS.VOICE_DESIGNS.PREPARE_AND_CREATE,