From 5de51bc83fc1e24750303e8d065acd29d1faa9fd Mon Sep 17 00:00:00 2001 From: ChuYong Date: Sun, 29 Oct 2023 00:54:55 +0900 Subject: [PATCH] =?UTF-8?q?style:=20=EC=BD=94=EB=93=9C=20=EC=A0=95?= =?UTF-8?q?=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../infrastructure/jpa/entity/CafeEntity.kt | 2 +- .../nagaza/nagazaserver/presenter/restapi/api/MeApi.kt | 2 +- src/main/resources/db/migration/V1__init.sql | 10 ++++++---- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/main/kotlin/kr/nagaza/nagazaserver/infrastructure/jpa/entity/CafeEntity.kt b/src/main/kotlin/kr/nagaza/nagazaserver/infrastructure/jpa/entity/CafeEntity.kt index 37147f9..6e3f7e2 100644 --- a/src/main/kotlin/kr/nagaza/nagazaserver/infrastructure/jpa/entity/CafeEntity.kt +++ b/src/main/kotlin/kr/nagaza/nagazaserver/infrastructure/jpa/entity/CafeEntity.kt @@ -39,7 +39,7 @@ class CafeEntity( val addressOne: String?, @Column(name = "addr_2") - val addressTwo: String? + val addressTwo: String?, ) { fun toModel() = Cafe( id = cafeId, diff --git a/src/main/kotlin/kr/nagaza/nagazaserver/presenter/restapi/api/MeApi.kt b/src/main/kotlin/kr/nagaza/nagazaserver/presenter/restapi/api/MeApi.kt index a7f3ab6..7e6ceb9 100644 --- a/src/main/kotlin/kr/nagaza/nagazaserver/presenter/restapi/api/MeApi.kt +++ b/src/main/kotlin/kr/nagaza/nagazaserver/presenter/restapi/api/MeApi.kt @@ -24,7 +24,7 @@ interface MeApi { @Operation(summary = "내가 작성한 리뷰 목록 조회", description = "내가 작성한 리뷰 목록을 조회합니다.") @GetMapping("/reviews") fun getMyReviews( - @RequestUser userId: String + @RequestUser userId: String, ): List @Operation(summary = "닉네임 변경", description = "내 닉네임을 변경합니다.") diff --git a/src/main/resources/db/migration/V1__init.sql b/src/main/resources/db/migration/V1__init.sql index a6e799c..92b8ecc 100644 --- a/src/main/resources/db/migration/V1__init.sql +++ b/src/main/resources/db/migration/V1__init.sql @@ -4,9 +4,9 @@ CREATE TABLE app_info in_service BOOLEAN NOT NULL COMMENT '서비스 여부', created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, updated_At DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - PRIMARY KEY app_info_pk(app_version) -) DEFAULT CHARSET=utf8mb4 - COLLATE=utf8mb4_unicode_ci COMMENT='앱정보'; + PRIMARY KEY app_info_pk (app_version) +) DEFAULT CHARSET = utf8mb4 + COLLATE = utf8mb4_unicode_ci COMMENT ='앱정보'; CREATE TABLE user ( @@ -123,4 +123,6 @@ CREATE TABLE cafe_room_review_det_opt # MOCK DML -INSERT INTO user (user_id, nickname, profile_img_url) VALUES ('01HDNFJHCNS5E2W35YTB030TJ8', '테스트용사용자', 'https://cdn.pixabay.com/photo/2016/08/08/09/17/avatar-1577909_960_720.png'); +INSERT INTO user (user_id, nickname, profile_img_url) +VALUES ('01HDNFJHCNS5E2W35YTB030TJ8', '테스트용사용자', + 'https://cdn.pixabay.com/photo/2016/08/08/09/17/avatar-1577909_960_720.png');