From b5edbc4c14246413eb29d30ea248ed14db002a31 Mon Sep 17 00:00:00 2001 From: peageon Date: Thu, 7 Dec 2023 02:14:08 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20import=20=ED=95=A0=EB=95=8C=20?= =?UTF-8?q?=EC=83=81=EB=8C=80=EA=B2=BD=EB=A1=9C=20=EC=82=AC=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/src/modules/message/entity/message.entity.ts | 4 ++-- back/src/modules/snowball/dto/snowball.dto.ts | 2 +- back/src/modules/snowball/snowball.controller.ts | 2 +- back/src/modules/user/entity/user.entity.ts | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/back/src/modules/message/entity/message.entity.ts b/back/src/modules/message/entity/message.entity.ts index 4c2a920..e7cbfd1 100644 --- a/back/src/modules/message/entity/message.entity.ts +++ b/back/src/modules/message/entity/message.entity.ts @@ -7,8 +7,8 @@ import { JoinColumn, Unique } from 'typeorm'; -import { SnowballEntity } from 'src/modules/snowball/entity/snowball.entity'; -import { UserEntity } from 'src/modules/user/entity/user.entity'; +import { SnowballEntity } from '../../snowball/entity/snowball.entity'; +import { UserEntity } from '../../user/entity/user.entity'; import { Exclude } from 'class-transformer'; @Entity({ name: 'message' }) @Unique(['snowball_id', 'location', 'is_deleted']) diff --git a/back/src/modules/snowball/dto/snowball.dto.ts b/back/src/modules/snowball/dto/snowball.dto.ts index 13483f3..b13276d 100644 --- a/back/src/modules/snowball/dto/snowball.dto.ts +++ b/back/src/modules/snowball/dto/snowball.dto.ts @@ -10,7 +10,7 @@ import { } from '@nestjs/class-validator'; import { ApiProperty } from '@nestjs/swagger'; import { Expose, Transform } from 'class-transformer'; -import { MessageDto } from 'src/modules/message/dto/message.dto'; +import { MessageDto } from '../../message/dto/message.dto'; export class SnowballDto { @Expose() diff --git a/back/src/modules/snowball/snowball.controller.ts b/back/src/modules/snowball/snowball.controller.ts index 2b1deed..9c9af7b 100644 --- a/back/src/modules/snowball/snowball.controller.ts +++ b/back/src/modules/snowball/snowball.controller.ts @@ -24,7 +24,7 @@ import { ReqCreateSnowballDto } from './dto/request/req-create-snowball.dto'; import { ReqUpdateSnowballDto } from './dto/request/req-update-snowball.dto'; import { SnowballDto } from './dto/snowball.dto'; import { ResUpdateSnowballDto } from './dto/response/res-update-snowball.dto'; -import { JWTGuard } from 'src/common/guards/jwt.guard'; +import { JWTGuard } from '../../common/guards/jwt.guard'; import { UpdateMainDecoDto } from './dto/update-main-decoration.dto'; import { JWTRequest } from '../../common/interface/request.interface'; import { hasJWTInterceptor } from '../../common/interceptors/hasJwt.interceptor'; diff --git a/back/src/modules/user/entity/user.entity.ts b/back/src/modules/user/entity/user.entity.ts index 6c2f65c..c36ea17 100644 --- a/back/src/modules/user/entity/user.entity.ts +++ b/back/src/modules/user/entity/user.entity.ts @@ -7,7 +7,7 @@ import { CreateDateColumn } from 'typeorm'; import { SnowballEntity } from '../../snowball/entity/snowball.entity'; -import { MessageEntity } from 'src/modules/message/entity/message.entity'; +import { MessageEntity } from '../../message/entity/message.entity'; @Entity({ name: 'user' }) @Index(['auth_id'], { unique: true })