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: 'Nginx', value: 'nginx' },
      { label: 'Apache', value: 'apache' },
      { label: 'Tomcat', value: 'tomcat' },
      { label: 'Redis', value: 'redis' },
      { label: 'Kafka', value: 'kafka' },
      { label: 'RabbitMQ', value: 'rabbitmq' },
      { label: 'Elasticsearch', value: 'elasticsearch' },
    ],
    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,
  },
]
