CourseApiClientInterface
Methods
changeCourseCover()
changeCourseCover(
id
,data
,config?
):Promise
<SCCourseType
>
Parameters
Parameter | Type |
---|---|
id | string | number |
data | FormData |
config? | AxiosRequestConfig |
Returns
Promise
<SCCourseType
>
changeCourseUserRole()
changeCourseUserRole(
id
,data
,config?
):Promise
<any
>
Parameters
Parameter | Type |
---|---|
id | string | number |
data | CourseUserRoleParams |
config? | AxiosRequestConfig |
Returns
Promise
<any
>
createCourse()
createCourse(
data
,config?
):Promise
<SCCourseType
>
Parameters
Parameter | Type |
---|---|
data | CourseCreateParams | FormData |
config? | AxiosRequestConfig |
Returns
Promise
<SCCourseType
>
createCourseComment()
createCourseComment(
id
,section_id
,lesson_id
,data
,config?
):Promise
<SCCourseCommentType
>
Parameters
Parameter | Type |
---|---|
id | string | number |
section_id | string | number |
lesson_id | string | number |
data | SCCourseCommentType |
config? | AxiosRequestConfig |
Returns
Promise
<SCCourseCommentType
>
createCourseLesson()
createCourseLesson(
data
,config?
):Promise
<SCCourseLessonType
>
Parameters
Parameter | Type |
---|---|
data | SCCourseLessonType |
config? | AxiosRequestConfig |
Returns
Promise
<SCCourseLessonType
>
createCourseSection()
createCourseSection(
id
,data
,config?
):Promise
<SCCourseSectionType
>
Parameters
Parameter | Type |
---|---|
id | string | number |
data | CourseSectionParams |
config? | AxiosRequestConfig |
Returns
Promise
<SCCourseSectionType
>
deleteCourse()
deleteCourse(
id
,config?
):Promise
<any
>
Parameters
Parameter | Type |
---|---|
id | string | number |
config? | AxiosRequestConfig |
Returns
Promise
<any
>
deleteCourseComment()
deleteCourseComment(
id
,section_id
,lesson_id
,comment_id
,config?
):Promise
<any
>
Parameters
Parameter | Type |
---|---|
id | string | number |
section_id | string | number |
lesson_id | string | number |
comment_id | string | number |
config? | AxiosRequestConfig |
Returns
Promise
<any
>