import { generateNewId } from 'oak-domain/lib/utils/uuid'; const checkers = [ { // 删除文章级联删除extraFile action: 'remove', type: 'logical', entity: 'article', checker(operation, context) { const { filter } = operation; return context.operate('extraFile', { id: generateNewId(), action: 'remove', data: {}, filter: { article: filter, }, }, {}); }, }, ]; export default checkers;