dramaling-vocab-learning/backend/DramaLing.Api
鄭沛軒 8edcfc7545 refactor: 完成詞卡API架構統一與舊版代碼清理
**主要重構**:
- 統一到SimplifiedFlashcardsController,移除CardSets概念衝突
- 補全新版API:添加GET /{id}和PUT /{id}端點
- 重構FlashcardForm.tsx完全移除CardSets依賴

**刪除舊版代碼**:
- 移除FlashcardsController.cs (舊版API)
- 移除CardSetsController.cs (廢棄功能)
- 移除flashcards.ts服務 (舊版前端服務)
- 清理相關Repository和介面文件

**API端點現況**:
 POST /api/flashcards-simple - 創建詞卡
 GET /api/flashcards-simple - 獲取詞卡列表
 GET /api/flashcards-simple/{id} - 獲取單個詞卡
 PUT /api/flashcards-simple/{id} - 更新詞卡
 DELETE /api/flashcards-simple/{id} - 刪除詞卡
 POST /api/flashcards-simple/{id}/favorite - 切換收藏

**架構優化**:
- 統一API路由和回應格式
- 移除複雜的CardSets關聯邏輯
- 簡化前端組件介面
- 降低維護成本

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-24 01:11:14 +08:00
..
Controllers refactor: 完成詞卡API架構統一與舊版代碼清理 2025-09-24 01:11:14 +08:00
Data fix: 完成詞卡保存功能修復與Entity Framework配置優化 2025-09-24 00:15:28 +08:00
Extensions feat: 實施全面的程式碼架構優化 2025-09-23 19:00:17 +08:00
Middleware feat: 啟用智能快取系統,實現 57,200 倍性能提升 2025-09-23 19:50:53 +08:00
Migrations feat: 實現真正的AI驅動互動式單字查詢系統 2025-09-18 02:09:56 +08:00
Models fix: 完成詞卡保存功能修復與Entity Framework配置優化 2025-09-24 00:15:28 +08:00
Properties feat: DramaLing 完整版本 - 韓劇單字學習應用 2025-09-16 23:06:47 +08:00
Repositories refactor: 完成詞卡API架構統一與舊版代碼清理 2025-09-24 01:11:14 +08:00
Services refactor: 完成詞卡API架構統一與舊版代碼清理 2025-09-24 01:11:14 +08:00
DramaLing.Api.csproj feat: 實施強型別配置管理和架構優化基礎 2025-09-23 00:01:19 +08:00
DramaLing.Api.http feat: DramaLing 完整版本 - 韓劇單字學習應用 2025-09-16 23:06:47 +08:00
Program.cs feat: 啟用智能快取系統,實現 57,200 倍性能提升 2025-09-23 19:50:53 +08:00
appsettings.json feat: 實施強型別配置管理和架構優化基礎 2025-09-23 00:01:19 +08:00