import service from '@/utils/request'

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

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

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

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

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

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