// 通用类型定义

export interface ApiResponse<T = any> {
  code: number
  message: string
  data: T
  timestamp: number
}

export interface PageResult<T = any> {
  records: T[]
  total: number
  current: number
  size: number
  pages: number
}

export interface MenuItem {
  path: string
  name: string
  icon?: string
  children?: MenuItem[]
  meta?: {
    title: string
    icon?: string
    roles?: string[]
    hidden?: boolean
  }
}
