refactor imports/exports

This commit is contained in:
andres
2023-07-16 16:21:55 +02:00
parent 2f1579ed48
commit 4a9bf1e858
26 changed files with 50 additions and 40 deletions

View File

@@ -11,10 +11,10 @@ import {
UseInterceptors,
} from '@nestjs/common'
import { CardsService } from './cards.service'
import { UpdateCardDto } from './dto/update-card.dto'
import { UpdateCardDto } from './dto'
import { CommandBus } from '@nestjs/cqrs'
import { DeleteCardByIdCommand, GetDeckByIdCommand, UpdateCardCommand } from './use-cases'
import { JwtAuthGuard } from '../auth/guards/jwt-auth.guard'
import { JwtAuthGuard } from '../auth/guards'
import { FileFieldsInterceptor } from '@nestjs/platform-express'
@Controller('cards')

View File

@@ -1,7 +1,6 @@
import { Length } from 'class-validator'
import { PaginationDto } from '../../../infrastructure/common/pagination/pagination.dto'
import { IsOptionalOrEmptyString } from '../../../infrastructure/decorators/is-optional-or-empty-string'
import { IsOrderBy } from '../../../infrastructure/decorators/is-order-by-constraint'
import { IsOptionalOrEmptyString, IsOrderBy } from '../../../infrastructure/decorators'
export class GetAllCardsInDeckDto extends PaginationDto {
@IsOptionalOrEmptyString()

View File

@@ -0,0 +1,3 @@
export * from './create-card.dto'
export * from './get-all-cards.dto'
export * from './update-card.dto'

View File

@@ -1,3 +1,3 @@
export * from './get-deck-by-id-use-case'
export * from './delete-card-by-id-use-case'
export * from './get-deck-by-id-use-case'
export * from './update-card-use-case'