Skip to content

Commit

Permalink
๐Ÿ“ฆ๏ธ [REFACTOR] initDB background ๋ฐ image_url ๋ณ€๊ฒฝ
Browse files Browse the repository at this point in the history
  • Loading branch information
dong2ast committed Jan 15, 2024
1 parent 9cca356 commit a29341f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/main/java/org/sopt/lequuServer/InitDb.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public void dbInit() {
Book book1 = Book.builder()
.uuid("ee4f66f9-9cf4-4b28-90f4-f71d0ecba021")
.favoriteName("LeoJ")
.favoriteImage("https://lequu-server-bucket.s3.ap-northeast-2.amazonaws.com/books/favorite_image/b4006561-382b-479e-ae1d-e841922e883f.jpg")
.favoriteImage("https://dzfv99wxq6tx0.cloudfront.net/books/favorite_image/b4006561-382b-479e-ae1d-e841922e883f.jpg")
.title("1๋ฒˆ์งธ ๋ ˆํ๋ถ")
.description("๋ ˆํ๋ถ์˜ ๋‚ด์šฉ์ž…๋‹ˆ๋‹ค!")
.backgroundColor("#FFFFFF")
Expand All @@ -74,7 +74,7 @@ public void dbInit() {
Book book = Book.builder()
.uuid("ee4f66f9-9cf4-4b28-90f4-f71d0ecba02" + String.valueOf(i + 1))
.favoriteName("LeoJ")
.favoriteImage("https://lequu-server-bucket.s3.ap-northeast-2.amazonaws.com/books/favorite_image/b4006561-382b-479e-ae1d-e841922e883f.jpg")
.favoriteImage("https://dzfv99wxq6tx0.cloudfront.net/books/favorite_image/b4006561-382b-479e-ae1d-e841922e883f.jpg")
.title(String.valueOf(i + 1) + "๋ฒˆ์งธ ๋ ˆํ๋ถ")
.description("๋ ˆํ๋ถ์˜ ๋‚ด์šฉ์ž…๋‹ˆ๋‹ค!")
.backgroundColor("#FFFFFF")
Expand All @@ -97,7 +97,7 @@ public void dbInit() {
for (int i = 0; i < 10; i++) {
Note note = Note.builder()
.content("๋ ˆํ๋…ธํŠธ ๋‚ด์šฉ์ž…๋‹ˆ๋‹ค ๋ธ”๋ผ๋ธ”๋ผ๋ธ”๋ผ ๋ธ”๋ผ๋ธ”๋ผ๋ธ”๋ผ ๋ธ”๋ผ๋ธ”๋ผ๋ธ”๋ผ ๋ธ”๋ผ๋ธ”๋ผ๋ธ”๋ผ ๋ธ”๋ผ๋ธ”๋ผ๋ธ”๋ผ ๋ธ”๋ผ๋ธ”๋ผ๋ธ”๋ผ ๋ธ”๋ผ๋ธ”๋ผ๋ธ”๋ผ")
.background(String.valueOf(i))
.background("#FFFFFF")
.textColor("#000000")
.member(member1)
.book(book1)
Expand All @@ -108,22 +108,22 @@ public void dbInit() {
Sticker sticker1 = Sticker.builder()
.bookId(0L)
.category(BIRTHDAY)
.stickerImage("https://lequu-server-bucket.s3.ap-northeast-2.amazonaws.com/stickers/birth_1.svg")
.stickerImage("https://dzfv99wxq6tx0.cloudfront.net/stickers/birth_1.svg")
.build();
em.persist(sticker1);
for (int i = 0; i < 3; i++) {
Sticker sticker = Sticker.builder()
.bookId(0L)
.category(ALPHABET)
.stickerImage("https://lequu-server-bucket.s3.ap-northeast-2.amazonaws.com/stickers/8d83b1c1-1e2c-437b-a2f5-e3ce96ce6d35.jpg")
.stickerImage("https://dzfv99wxq6tx0.cloudfront.net/stickers/8d83b1c1-1e2c-437b-a2f5-e3ce96ce6d35.jpg")
.build();
em.persist(sticker);
}
for (int i = 0; i < 6; i++) {
Sticker sticker = Sticker.builder()
.bookId(0L)
.category(BIRTHDAY)
.stickerImage("https://lequu-server-bucket.s3.ap-northeast-2.amazonaws.com/stickers/8d83b1c1-1e2c-437b-a2f5-e3ce96ce6d35.jpg")
.stickerImage("https://dzfv99wxq6tx0.cloudfront.net/stickers/8d83b1c1-1e2c-437b-a2f5-e3ce96ce6d35.jpg")
.build();
em.persist(sticker);
}
Expand All @@ -140,15 +140,15 @@ public void dbInit() {
Sticker sticker = Sticker.builder()
.bookId(1L)
.category(ALPHABET)
.stickerImage("https://lequu-server-bucket.s3.ap-northeast-2.amazonaws.com/stickers/8d83b1c1-1e2c-437b-a2f5-e3ce96ce6d35.jpg")
.stickerImage("https://dzfv99wxq6tx0.cloudfront.net/stickers/8d83b1c1-1e2c-437b-a2f5-e3ce96ce6d35.jpg")
.build();
em.persist(sticker);
}
for (int i = 0; i < 3; i++) {
Sticker sticker = Sticker.builder()
.bookId(1L)
.category(BIRTHDAY)
.stickerImage("https://lequu-server-bucket.s3.ap-northeast-2.amazonaws.com/stickers/8d83b1c1-1e2c-437b-a2f5-e3ce96ce6d35.jpg")
.stickerImage("https://dzfv99wxq6tx0.cloudfront.net/stickers/8d83b1c1-1e2c-437b-a2f5-e3ce96ce6d35.jpg")
.build();
em.persist(sticker);
}
Expand Down

0 comments on commit a29341f

Please sign in to comment.