import service from '@/utils/request'

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

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

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

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

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

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