강좌 삭제 구현1
This commit is contained in:
@@ -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',
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 리소스 조회
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user