import service from '@/utils/request'

// @Tags CourseList
// @Summary 创建CourseList
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CourseList true "创建CourseList"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /courseList/createCourseList [post]
export const createCourseList = (data) => {
  return service({
    url: '/courseList/createCourseList',
    method: 'post',
    data
  })
}

// @Tags CourseList
// @Summary 删除CourseList
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CourseList true "删除CourseList"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /courseList/deleteCourseList [delete]
export const deleteCourseList = (data) => {
  return service({
    url: '/courseList/deleteCourseList',
    method: 'delete',
    data
  })
}

// @Tags CourseList
// @Summary 删除CourseList
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除CourseList"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /courseList/deleteCourseList [delete]
export const deleteCourseListByIds = (data) => {
  return service({
    url: '/courseList/deleteCourseListByIds',
    method: 'delete',
    data
  })
}

// @Tags CourseList
// @Summary 更新CourseList
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CourseList true "更新CourseList"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /courseList/updateCourseList [put]
export const updateCourseList = (data) => {
  return service({
    url: '/courseList/updateCourseList',
    method: 'put',
    data
  })
}

// @Tags CourseList
// @Summary 用id查询CourseList
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.CourseList true "用id查询CourseList"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /courseList/findCourseList [get]
export const findCourseList = (params) => {
  return service({
    url: '/courseList/findCourseList',
    method: 'get',
    params
  })
}

// @Tags CourseList
// @Summary 分页获取CourseList列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取CourseList列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /courseList/getCourseListList [get]
export const getCourseListList = (params) => {
  return service({
    url: '/courseList/getCourseListList',
    method: 'get',
    params
  })
}
