import { BasicColumn } from '/@/components/Table'; import { FormSchema } from '/@/components/Table'; /** 表格列配置 */ export const columns: BasicColumn[] = [ { title: '发送方用户id', dataIndex: 'fromPushId' }, { title: '对方用户id', dataIndex: 'toPushId' }, { title: '创建人', dataIndex: 'createByName' }, { title: '创建时间', dataIndex: 'createTime', width: 200 } ]; /** 搜索表单配置 */ export const searchFormSchema: FormSchema[] = [ { field: 'fromPushId', label: '发送方用户id', component: 'Input', componentProps: { placeholder: '请输入发送方用户id', }, colProps: { span: 6 } } ]; /** 表单配置 */ export const formSchema: FormSchema[] = [ { field: 'id', label: 'ID', component: 'Input', show: false }, { field: 'type', label: '白名单类型', component: 'Input', defaultValue: '1', show: false }, { field: 'fromPushId', label: '发送方用户id', component: 'Input', required: true, colProps: { span: 24 } }, { field: 'toPushId', label: '对方用户id', component: 'Input', required: true, colProps: { span: 24 } }, ];