import { request } from '@/utils/request'
import type { NoticeItem } from '@/types/notice'

/**
 * 获取当前生效的公告列表
 * GET /api/notice/list
 */
export function getNoticesApi() {
  return request<NoticeItem[]>({
    url: '/api/notice/list',
    method: 'GET'
  })
}
