import service from '@/utils/request'

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

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

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

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

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

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