import { Controller } from '@nestjs/common'; import { Crud } from "@dataui/crud"; import { CommentCrudService } from './comment-crud.service'; import { ApiTags } from '@nestjs/swagger'; import { CommentEntity } from 'kkk-lib/article/entity/comment.entity'; @ApiTags('Comments-CRUD') @Crud({ model: { type: CommentEntity, }, query: { join: { article: { eager: true, }, parent: { eager: true, }, children: { eager: true, }, }, }, }) @Controller('api/a/crud/comments') export class CommentCrudController { constructor(public service: CommentCrudService) {} }