import service from '@/utils/request'

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

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

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

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

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

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