import service from '@/utils/request'

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

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

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

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

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

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