<template>
  <otr-simple-table-workspace
    title="系统通知"
    keyword-placeholder="请输入通知标题"
    :columns="columns"
    :fetcher="noticeList"
  />
</template>

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

const columns = [
  { prop: 'title', label: '通知标题', minWidth: 240 },
  { prop: 'type', label: '类型', width: 120 },
  { prop: 'senderName', label: '发送人', width: 120 },
  { prop: 'createdAt', label: '时间', width: 180 },
]
</script>
