<template>
  <otr-simple-table-workspace
    title="AI 工具"
    keyword-placeholder="请输入工具名称"
    :columns="columns"
    :fetcher="aiToolList"
  >
    <template #header-extra>
      <el-tag type="success">已接入 mock 数据</el-tag>
    </template>
  </otr-simple-table-workspace>
</template>

<script setup lang="ts">
import { aiToolList } from '@/api/otr/ai/core'
import OtrSimpleTableWorkspace from '@/modules/otr/_shared/components/OtrSimpleTableWorkspace.vue'

const columns = [
  { prop: 'name', label: '工具名称', minWidth: 220 },
  { prop: 'scene', label: '应用场景', width: 160 },
  { prop: 'ownerName', label: '维护人', width: 120 },
  { prop: 'statusLabel', label: '状态', width: 120 },
]
</script>
