강좌 삭제 구현1

This commit is contained in:
2025-11-28 21:37:05 +09:00
parent 03b4fa108a
commit 5a26d96386
6 changed files with 877 additions and 250 deletions

View File

@@ -380,8 +380,8 @@ class ApiService {
subjectId: number;
title: string;
objective: string;
videoUrl?: string;
webglUrl?: string;
videoUrl?: string | string[];
webglUrl?: string | string[];
csvKey?: string;
}) {
return this.request('/lectures', {
@@ -397,8 +397,8 @@ class ApiService {
subjectId?: number;
title?: string;
objective?: string;
videoUrl?: string;
webglUrl?: string;
videoUrl?: string | string[];
webglUrl?: string | string[];
csvKey?: string;
csvUrl?: string;
}) {
@@ -408,6 +408,15 @@ class ApiService {
});
}
/**
* 강좌(lecture) 삭제
*/
async deleteLecture(lectureId: string | number) {
return this.request(`/lectures/${lectureId}`, {
method: 'DELETE',
});
}
/**
* 리소스 조회
*/