import type { FormItem } from '@/components/search-form/types'

export const searchFormConfig: FormItem[] = [
  {
    field: 'keyword',
    label: '关键词',
    type: 'input',
    placeholder: '请输入服务名称',
    span: 6,
  },
  {
    field: 'type',
    label: '数据库类型',
    type: 'select',
    placeholder: '请选择数据库类型',
    options: [
      { label: 'MySQL', value: 'MySQL' },
      { label: 'PostgreSQL', value: 'PostgreSQL' },
      { label: 'Redis', value: 'Redis' },
      { label: 'MongoDB', value: 'MongoDB' },
      { label: 'DM', value: 'DM' },
      { label: 'KingBase', value: 'KingBase' },
    ],
    span: 6,
  },
  {
    field: 'enabled',
    label: '监控状态',
    type: 'select',
    placeholder: '请选择监控状态',
    options: [
      { label: '已启用', value: true },
      { label: '已禁用', value: false },
    ],
    span: 6,
  },
  {
    field: 'status',
    label: '运行状态',
    type: 'select',
    placeholder: '请选择运行状态',
    options: [
      { label: '在线', value: 'online' },
      { label: '离线', value: 'offline' },
      { label: '错误', value: 'error' },
    ],
    span: 6,
  },
]
