import type { BasicColumn, FormSchema } from '@/components/Table' import { getAllSubscription } from '@/api/subscription/list' export const columns: BasicColumn[] = [ { title: '消费组名称', dataIndex: 'consumerName', }, { title: '消费组 Token', dataIndex: 'consumerToken', }, { title: '创建时间', dataIndex: 'createTime', }, ] export const searchFormSchema: FormSchema[] = [ { field: 'consumerName', label: '消费组名称', component: 'Input', colProps: { span: 6, }, }, ] export const formSchema: FormSchema[] = [ { field: 'consumerName', fields: ['id'], label: '消费组名称', required: true, component: 'Input', }, { field: 'subscribeIds', label: '订阅', required: true, component: 'ApiSelect', componentProps: { api: getAllSubscription, mode: 'multiple', valueField: 'id', labelField: 'productName', }, }, ]