import service from '@/utils/request'

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

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

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

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

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

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