Skip to content

Commit

Permalink
style: 코드 정리
Browse files Browse the repository at this point in the history
  • Loading branch information
CChuYong committed Oct 28, 2023
1 parent b271968 commit 5de51bc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class CafeEntity(
val addressOne: String?,

@Column(name = "addr_2")
val addressTwo: String?
val addressTwo: String?,
) {
fun toModel() = Cafe(
id = cafeId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ interface MeApi {
@Operation(summary = "내가 작성한 리뷰 목록 조회", description = "내가 작성한 리뷰 목록을 조회합니다.")
@GetMapping("/reviews")
fun getMyReviews(
@RequestUser userId: String
@RequestUser userId: String,
): List<CafeRoomReviewResponse>

@Operation(summary = "닉네임 변경", description = "내 닉네임을 변경합니다.")
Expand Down
10 changes: 6 additions & 4 deletions src/main/resources/db/migration/V1__init.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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
(
Expand Down Expand Up @@ -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');

0 comments on commit 5de51bc

Please sign in to comment.