feat: Add data fetching utility imports for sessions, workspaces, users, invitations, and teams to the session API route.
This commit is contained in:
parent
babccc4869
commit
ffd3a08ad5
1 changed files with 6 additions and 7 deletions
|
|
@ -81,6 +81,8 @@
|
|||
- `GET /api/students/lessons/{lessonId}/progress`: ดึงเวลาเรียนล่าสุด
|
||||
- `POST /api/students/courses/{id}/lessons/{lessonId}/complete`: บันทึกว่าเรียนจบแล้ว
|
||||
- `POST /api/students/courses/{id}/lessons/{lessonId}/quiz/submit`: ส่งคำตอบแบบทดสอบ (Quiz)
|
||||
- `GET /api/certificates/{courseId}`: ดึงใบประกาศนียบัตร
|
||||
- `POST /api/certificates/{courseId}/generate`: สร้างใบประกาศนียบัตรใหม่
|
||||
|
||||
### 3.3 `useCategory.ts` & Utilities
|
||||
|
||||
|
|
@ -156,10 +158,7 @@
|
|||
- **My Courses:** แสดง Progress Bar ถูกต้อง (ดึง `progress_percentage`) และปรับ Filter "กำลังเรียน" ให้แสดงคอร์สใหม่ (`ENROLLED`) ด้วย
|
||||
- **Enrollment Flow:** แก้ไขปุ่ม "เริ่มเรียนทันที" ใน Modal ให้ลิงก์ไปยังคอร์สที่ถูกต้อง (ส่ง `course_id` param)
|
||||
- **Auth:** เพิ่มฟังก์ชัน **"จดจำฉัน" (Remember Me)** ในหน้า Login เพื่อจำ Email ผู้ใช้
|
||||
|
||||
### 🚀 Pending / Future Work (สิ่งที่ต้องทำต่อ)
|
||||
|
||||
1. **Certificates:** ระบบดาวน์โหลดใบประกาศนียบัตร (ข้อมูล Backend พร้อมแล้ว รอเชื่อมต่อ UI)
|
||||
2. **Payment Gateway:** (ถ้ามีในอนาคต)
|
||||
|
||||
---
|
||||
8. **Certificates System:**
|
||||
- เชื่อมต่อ API ดึงใบประกาศนียบัตร (`GET /api/certificates/{courseId}`) และสร้างใหม่ (`POST .../generate`)
|
||||
- ระบบ **Smart Download:** เช็คก่อนว่ามีไฟล์ไหม ถ้าไม่มีถึงสร้างใหม่ แล้วเปิด PDF ทันที
|
||||
- รองรับการแสดงผลภาษาไทยและวันที่ถูกต้องแบบ Real-time API
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue