import { request } from '@/utils/request'
import type { BannerItem } from '@/types/banner'

/**
 * 获取当前生效的轮播图列表
 * GET /api/banner
 */
export function getBannersApi() {
  return request<BannerItem[]>({
    url: '/api/banner',
    method: 'GET'
  })
}
