Skip to content

Commit

Permalink
[TERK-102/Refactor] mbrId 관련 네이밍 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
JeongSangByuk committed Jan 16, 2023
1 parent bee583d commit cb2dd71
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 7 deletions.
45 changes: 43 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
version: '3'

services:
mysql:
mysql_member:
container_name: mysql_member
image: mysql/mysql-server:5.7
environment:
Expand All @@ -11,6 +10,48 @@ services:
MYSQL_DATABASE: "member"
ports:
- "3306:3306"
command:
- "mysqld"
- "--character-set-server=utf8mb4"
- "--collation-server=utf8mb4_unicode_ci"
mysql_item:
container_name: mysql_item
image: mysql/mysql-server:5.7
environment:
MYSQL_ROOT_HOST: '%'
MYSQL_USER: "sausage"
MYSQL_PASSWORD: "sausage"
MYSQL_DATABASE: "item"
ports:
- "3307:3306"
command:
- "mysqld"
- "--character-set-server=utf8mb4"
- "--collation-server=utf8mb4_unicode_ci"
mysql_order:
container_name: mysql_order
image: mysql/mysql-server:5.7
environment:
MYSQL_ROOT_HOST: '%'
MYSQL_USER: "sausage"
MYSQL_PASSWORD: "sausage"
MYSQL_DATABASE: "order"
ports:
- "3308:3306"
command:
- "mysqld"
- "--character-set-server=utf8mb4"
- "--collation-server=utf8mb4_unicode_ci"
mysql_dutch_pay:
container_name: mysql_dutch_pay
image: mysql/mysql-server:5.7
environment:
MYSQL_ROOT_HOST: '%'
MYSQL_USER: "sausage"
MYSQL_PASSWORD: "sausage"
MYSQL_DATABASE: "dutch_pay"
ports:
- "3309:3306"
command:
- "mysqld"
- "--character-set-server=utf8mb4"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public static MbrFindListResponse of(List<Mbr> mbrList) {

return MbrFindListResponse
.builder()
.mbrMap((HashMap<Long, MbrInfo>) mbrList.stream().collect(Collectors.toMap(Mbr::getId, MbrInfo::of)))
.mbrMap((HashMap<Long, MbrInfo>) mbrList.stream().collect(Collectors.toMap(Mbr::getMbrId, MbrInfo::of)))
.build();

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class MbrFindResponse {

public static MbrFindResponse of(Mbr mbr) {
return MbrFindResponse.builder()
.mbrId(mbr.getId())
.mbrId(mbr.getMbrId())
.mbrLoginId(mbr.getMbrLoginId())
.mbrNm(mbr.getMbrNm())
.mbrImgUrl(mbr.getMbrImgUrl())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class MbrInfo {

public static MbrInfo of(Mbr mbr) {
return MbrInfo.builder()
.mbrId(mbr.getId())
.mbrId(mbr.getMbrId())
.mbrLoginId(mbr.getMbrLoginId())
.mbrNm(mbr.getMbrNm())
.mbrImgUrl(mbr.getMbrImgUrl())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class MbrLoginResponse {

public static MbrLoginResponse of(Mbr mbr) {
return MbrLoginResponse.builder()
.mbrId(mbr.getId())
.mbrId(mbr.getMbrId())
.mbrLoginId(mbr.getMbrLoginId())
.mbrNm(mbr.getMbrNm())
.mbrImgUrl(mbr.getMbrImgUrl())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class Mbr extends BaseEntity {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "MBR_ID")
private Long id;
private Long mbrId;

@Column(name = "MBR_LOGIN_ID", nullable = false)
private String mbrLoginId;
Expand Down

0 comments on commit cb2dd71

Please sign in to comment.