import service from '@/utils/request'

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

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

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

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

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

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