import type { TableColumnData } from '@arco-design/web-vue/es/table/interface'

export const columns: TableColumnData[] = [
  {
    title: '序号',
    dataIndex: 'index',
    slotName: 'index',
    width: 80,
  },
  {
    title: '渠道名称',
    dataIndex: 'name',
    width: 180,
  },
  {
    title: '渠道类型',
    dataIndex: 'type',
    slotName: 'type',
    width: 120,
  },
  {
    title: '限流次数',
    dataIndex: 'rate_limit',
    width: 120,
  },
  {
    title: '限流窗口（秒）',
    dataIndex: 'rate_limit_window',
    width: 140,
  },
  {
    title: '操作',
    dataIndex: 'actions',
    slotName: 'actions',
    width: 240,
    fixed: 'right' as const,
  },
]
