From 7210a15585e87a32fe56b11330ec917da3cd0f02 Mon Sep 17 00:00:00 2001 From: kor-Chipmunk Date: Wed, 21 Feb 2024 07:21:51 +0900 Subject: [PATCH 01/16] =?UTF-8?q?feat:=20`BaseResponseBodyAdvice`=20Swagge?= =?UTF-8?q?r=20=EC=98=88=EC=99=B8=20=EC=B2=98=EB=A6=AC=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/lalala/mvc/response/BaseResponseBodyAdvice.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/backend/common-module/common-mvc/src/main/java/com/lalala/mvc/response/BaseResponseBodyAdvice.java b/src/backend/common-module/common-mvc/src/main/java/com/lalala/mvc/response/BaseResponseBodyAdvice.java index fd25056c..7a49814f 100644 --- a/src/backend/common-module/common-mvc/src/main/java/com/lalala/mvc/response/BaseResponseBodyAdvice.java +++ b/src/backend/common-module/common-mvc/src/main/java/com/lalala/mvc/response/BaseResponseBodyAdvice.java @@ -1,10 +1,12 @@ package com.lalala.mvc.response; +import java.util.TreeMap; import lombok.extern.slf4j.Slf4j; import org.springframework.core.MethodParameter; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.http.converter.ByteArrayHttpMessageConverter; import org.springframework.http.converter.HttpMessageConverter; import org.springframework.http.server.ServerHttpRequest; import org.springframework.http.server.ServerHttpResponse; @@ -30,6 +32,12 @@ public Object beforeBodyWrite( Class> selectedConverterType, ServerHttpRequest request, ServerHttpResponse response) { + // Swagger 예외 처리 + if (body.getClass() == TreeMap.class || + selectedConverterType == ByteArrayHttpMessageConverter.class) { + return body; + } + if (body instanceof BaseResponse) { return body; } From e6ed137f09c5701ed948ffd6cf736599ae3be41d Mon Sep 17 00:00:00 2001 From: kor-Chipmunk Date: Wed, 21 Feb 2024 07:22:56 +0900 Subject: [PATCH 02/16] =?UTF-8?q?infra:=20`music=5Flikes`=20=ED=85=8C?= =?UTF-8?q?=EC=9D=B4=EB=B8=94=20=EC=8A=A4=ED=82=A4=EB=A7=88=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../infra/{00_scheme.sql => 00_schema.sql} | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) rename src/backend/music-server/infra/{00_scheme.sql => 00_schema.sql} (80%) diff --git a/src/backend/music-server/infra/00_scheme.sql b/src/backend/music-server/infra/00_schema.sql similarity index 80% rename from src/backend/music-server/infra/00_scheme.sql rename to src/backend/music-server/infra/00_schema.sql index e115fa08..5be689a4 100644 --- a/src/backend/music-server/infra/00_scheme.sql +++ b/src/backend/music-server/infra/00_schema.sql @@ -91,3 +91,27 @@ ALTER TABLE musics -- Foreign Key 삭제 SQL - musics(album_id) -- ALTER TABLE musics -- DROP FOREIGN KEY FK_musics_album_id_albums_id; + +-- musics Table Create SQL +-- 테이블 생성 SQL - musics +CREATE TABLE music_likes +( + `id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '고유 번호', + `music_id` BIGINT NOT NULL COMMENT '음원', + `user_id` BIGINT NOT NULL COMMENT '유저', + `created_at` DATETIME NOT NULL DEFAULT NOW() COMMENT '생성 시각', + `updated_at` DATETIME NOT NULL DEFAULT NOW() COMMENT '수정 시각', + PRIMARY KEY (id) +); + +-- 테이블 Comment 설정 SQL - musics +ALTER TABLE music_likes COMMENT '음원 좋아요 테이블'; + +-- Foreign Key 설정 SQL - musics(album_id) -> albums(id) +ALTER TABLE music_likes + ADD CONSTRAINT FK_music_likes_music_id_music_id FOREIGN KEY (music_id) + REFERENCES musics (id) ON DELETE RESTRICT ON UPDATE RESTRICT; + +-- Foreign Key 삭제 SQL - music_likes(music_id) +-- ALTER TABLE music_likes +-- DROP FOREIGN KEY FK_music_likes_music_id_music_id; From e4e85a788abf72c27772b6081575c2c3f2e4bd51 Mon Sep 17 00:00:00 2001 From: kor-Chipmunk Date: Wed, 21 Feb 2024 07:25:40 +0900 Subject: [PATCH 03/16] =?UTF-8?q?feat:=20`music=5Flikes`=20=ED=85=8C?= =?UTF-8?q?=EC=9D=B4=EB=B8=94=20=EB=A7=88=EC=9D=B4=EA=B7=B8=EB=A0=88?= =?UTF-8?q?=EC=9D=B4=EC=85=98=20=ED=8C=8C=EC=9D=BC=EB=A1=9C=20=EC=83=88?= =?UTF-8?q?=EB=A1=9C=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/music-server/infra/00_schema.sql | 24 --------------- .../infra/04_music_likes_schema.sql | 29 +++++++++++++++++++ 2 files changed, 29 insertions(+), 24 deletions(-) create mode 100644 src/backend/music-server/infra/04_music_likes_schema.sql diff --git a/src/backend/music-server/infra/00_schema.sql b/src/backend/music-server/infra/00_schema.sql index 5be689a4..e115fa08 100644 --- a/src/backend/music-server/infra/00_schema.sql +++ b/src/backend/music-server/infra/00_schema.sql @@ -91,27 +91,3 @@ ALTER TABLE musics -- Foreign Key 삭제 SQL - musics(album_id) -- ALTER TABLE musics -- DROP FOREIGN KEY FK_musics_album_id_albums_id; - --- musics Table Create SQL --- 테이블 생성 SQL - musics -CREATE TABLE music_likes -( - `id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '고유 번호', - `music_id` BIGINT NOT NULL COMMENT '음원', - `user_id` BIGINT NOT NULL COMMENT '유저', - `created_at` DATETIME NOT NULL DEFAULT NOW() COMMENT '생성 시각', - `updated_at` DATETIME NOT NULL DEFAULT NOW() COMMENT '수정 시각', - PRIMARY KEY (id) -); - --- 테이블 Comment 설정 SQL - musics -ALTER TABLE music_likes COMMENT '음원 좋아요 테이블'; - --- Foreign Key 설정 SQL - musics(album_id) -> albums(id) -ALTER TABLE music_likes - ADD CONSTRAINT FK_music_likes_music_id_music_id FOREIGN KEY (music_id) - REFERENCES musics (id) ON DELETE RESTRICT ON UPDATE RESTRICT; - --- Foreign Key 삭제 SQL - music_likes(music_id) --- ALTER TABLE music_likes --- DROP FOREIGN KEY FK_music_likes_music_id_music_id; diff --git a/src/backend/music-server/infra/04_music_likes_schema.sql b/src/backend/music-server/infra/04_music_likes_schema.sql new file mode 100644 index 00000000..6b5d1315 --- /dev/null +++ b/src/backend/music-server/infra/04_music_likes_schema.sql @@ -0,0 +1,29 @@ +CREATE DATABASE IF NOT EXISTS music + DEFAULT CHARACTER SET utf8 + DEFAULT COLLATE utf8_general_ci; + +USE music; + +-- musics Table Create SQL +-- 테이블 생성 SQL - music_likes +CREATE TABLE music_likes +( + `id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '고유 번호', + `music_id` BIGINT NOT NULL COMMENT '음원', + `user_id` BIGINT NOT NULL COMMENT '유저', + `created_at` DATETIME NOT NULL DEFAULT NOW() COMMENT '생성 시각', + `updated_at` DATETIME NOT NULL DEFAULT NOW() COMMENT '수정 시각', + PRIMARY KEY (id) +); + +-- 테이블 Comment 설정 SQL - music_likes +ALTER TABLE music_likes COMMENT '음원 좋아요 테이블'; + +-- Foreign Key 설정 SQL - music_likes(music_id) -> musics(id) +ALTER TABLE music_likes + ADD CONSTRAINT FK_music_likes_music_id_music_id FOREIGN KEY (music_id) + REFERENCES musics (id) ON DELETE RESTRICT ON UPDATE RESTRICT; + +-- Foreign Key 삭제 SQL - music_likes(music_id) +-- ALTER TABLE music_likes +-- DROP FOREIGN KEY FK_music_likes_music_id_music_id; From c7e5d933981c2e1c48de0e75a865cae0fea57754 Mon Sep 17 00:00:00 2001 From: kor-Chipmunk Date: Wed, 21 Feb 2024 07:26:26 +0900 Subject: [PATCH 04/16] =?UTF-8?q?feat:=20`PassportExtractor`=20=EC=97=90?= =?UTF-8?q?=20Swagger=20=EC=97=90=EC=84=9C=20=ED=85=8C=EC=8A=A4=ED=8A=B8?= =?UTF-8?q?=20=EA=B0=80=EB=8A=A5=ED=95=98=EB=8F=84=EB=A1=9D=20Bearer=20?= =?UTF-8?q?=EC=9D=B8=EC=8B=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/lalala/mvc/passport/PassportExtractor.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/backend/common-module/common-mvc/src/main/java/com/lalala/mvc/passport/PassportExtractor.java b/src/backend/common-module/common-mvc/src/main/java/com/lalala/mvc/passport/PassportExtractor.java index fd3c3c34..9c024104 100644 --- a/src/backend/common-module/common-mvc/src/main/java/com/lalala/mvc/passport/PassportExtractor.java +++ b/src/backend/common-module/common-mvc/src/main/java/com/lalala/mvc/passport/PassportExtractor.java @@ -22,14 +22,24 @@ public class PassportExtractor { private static final String USER_INFO = "userInfo"; private static final String AUTHORIZATION_HEADER_NAME = "Authorization"; + private static final String BEARER = "Bearer"; private final ObjectMapper objectMapper; private final PassportValidator passportValidator; public Passport getPassportFromRequestHeader(HttpServletRequest httpServletRequest) { try { + String authorization = httpServletRequest.getHeader(AUTHORIZATION_HEADER_NAME); + if (authorization == null) { + throw new BusinessException(ErrorCode.INVALID_PASSPORT); + } + + if (authorization.startsWith(BEARER + " ")) { + authorization = authorization.split(" ")[1]; + } + return objectMapper.readValue( new String( - Base64.getDecoder().decode(httpServletRequest.getHeader(AUTHORIZATION_HEADER_NAME)), + Base64.getDecoder().decode(authorization), StandardCharsets.UTF_8), Passport.class); } catch (JsonProcessingException e) { From 5d20cbf1e93da716ba952502a1e8bbe7fe78f254 Mon Sep 17 00:00:00 2001 From: kor-Chipmunk Date: Wed, 21 Feb 2024 07:26:44 +0900 Subject: [PATCH 05/16] =?UTF-8?q?feat:=20Swagger=20authorization=20?= =?UTF-8?q?=EA=B8=B0=EB=8A=A5=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../music/config/SwaggerConfiguration.java | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/backend/music-server/music-api/src/main/java/com/lalala/music/config/SwaggerConfiguration.java b/src/backend/music-server/music-api/src/main/java/com/lalala/music/config/SwaggerConfiguration.java index aba89b77..5c6f3aa6 100644 --- a/src/backend/music-server/music-api/src/main/java/com/lalala/music/config/SwaggerConfiguration.java +++ b/src/backend/music-server/music-api/src/main/java/com/lalala/music/config/SwaggerConfiguration.java @@ -1,5 +1,9 @@ package com.lalala.music.config; +import io.swagger.v3.oas.models.Components; +import io.swagger.v3.oas.models.security.SecurityRequirement; +import io.swagger.v3.oas.models.security.SecurityScheme; +import java.util.Arrays; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @@ -10,7 +14,18 @@ public class SwaggerConfiguration { @Bean public OpenAPI openAPI() { + SecurityScheme securityScheme = new SecurityScheme() + .type(SecurityScheme.Type.HTTP) + .scheme("bearer") + .bearerFormat("JWT") + .in(SecurityScheme.In.HEADER) + .name("Authorization"); + SecurityRequirement securityRequirement = new SecurityRequirement() + .addList("bearerAuth"); + return new OpenAPI() - .info(new Info().title("음원 API").description("음원 API를 제공합니다.").version("0.0.1")); + .info(new Info().title("음원 API").description("음원 API를 제공합니다.").version("0.0.1")) + .components(new Components().addSecuritySchemes("bearerAuth", securityScheme)) + .security(Arrays.asList(securityRequirement)); } } From 85072d89f00e203489b94198cdd7b7ff4c481392 Mon Sep 17 00:00:00 2001 From: kor-Chipmunk Date: Wed, 21 Feb 2024 07:26:58 +0900 Subject: [PATCH 06/16] =?UTF-8?q?feat:=20music=20origin=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/lalala/music/config/WebConfiguration.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/music-server/music-api/src/main/java/com/lalala/music/config/WebConfiguration.java b/src/backend/music-server/music-api/src/main/java/com/lalala/music/config/WebConfiguration.java index 436e6b3f..5a05c185 100644 --- a/src/backend/music-server/music-api/src/main/java/com/lalala/music/config/WebConfiguration.java +++ b/src/backend/music-server/music-api/src/main/java/com/lalala/music/config/WebConfiguration.java @@ -12,7 +12,7 @@ public class WebConfiguration implements WebMvcConfigurer { public void addCorsMappings(final CorsRegistry registry) { registry .addMapping("/**") - .allowedOrigins("*") + .allowedOrigins("127.0.0.1:3000") .allowedHeaders("*") .allowCredentials(false) .maxAge(MAX_AGE); From 9ebc7b9a1a6e2c57b4dc33a06ef17ab1e8d824d6 Mon Sep 17 00:00:00 2001 From: kor-Chipmunk Date: Wed, 21 Feb 2024 07:27:10 +0900 Subject: [PATCH 07/16] =?UTF-8?q?fix:=20=EC=9D=8C=EC=9B=90=20=EC=A1=B0?= =?UTF-8?q?=ED=9A=8C=20=EB=A9=94=EC=8B=9C=EC=A7=80=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/lalala/music/controller/MusicController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/music-server/music-api/src/main/java/com/lalala/music/controller/MusicController.java b/src/backend/music-server/music-api/src/main/java/com/lalala/music/controller/MusicController.java index b589459c..d708a037 100644 --- a/src/backend/music-server/music-api/src/main/java/com/lalala/music/controller/MusicController.java +++ b/src/backend/music-server/music-api/src/main/java/com/lalala/music/controller/MusicController.java @@ -58,7 +58,7 @@ public ResponseEntity>> readMusics( @GetMapping("/{id}") public ResponseEntity> readMusic(@PathVariable("id") Long id) { MusicDetailDTO music = service.getMusic(id); - return ResponseEntity.ok(BaseResponse.from(HttpStatus.OK.value(), "음원을 업로드했습니다.", music)); + return ResponseEntity.ok(BaseResponse.from(HttpStatus.OK.value(), "음원을 조회했습니다.", music)); } @PutMapping("/{id}") From 9d20d4dceeaa277c580d004116ca6d515c85cd1c Mon Sep 17 00:00:00 2001 From: kor-Chipmunk Date: Wed, 21 Feb 2024 07:27:29 +0900 Subject: [PATCH 08/16] =?UTF-8?q?feat:=20`MusicLikeEntity`=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lalala/music/entity/MusicLikeEntity.java | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 src/backend/music-server/music-api/src/main/java/com/lalala/music/entity/MusicLikeEntity.java diff --git a/src/backend/music-server/music-api/src/main/java/com/lalala/music/entity/MusicLikeEntity.java b/src/backend/music-server/music-api/src/main/java/com/lalala/music/entity/MusicLikeEntity.java new file mode 100644 index 00000000..bd7db47e --- /dev/null +++ b/src/backend/music-server/music-api/src/main/java/com/lalala/music/entity/MusicLikeEntity.java @@ -0,0 +1,40 @@ +package com.lalala.music.entity; + +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.Table; +import lombok.AccessLevel; +import lombok.Getter; +import lombok.NoArgsConstructor; + +@Entity +@Table(name = "music_likes") +@Getter +@NoArgsConstructor(access = AccessLevel.PROTECTED) +public class MusicLikeEntity extends BaseTimeEntity { + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + Long id; + + @Column(name = "user_id", nullable = false) + Long userId; + + @Column(name = "music_id", nullable = false) + Long musicId; + + public MusicLikeEntity(Long userId, Long musicId) { + this.userId = userId; + this.musicId = musicId; + } + + public void updateUser(Long userId) { + this.userId = userId; + } + + public void updateMusic(Long musicId) { + this.musicId = musicId; + } +} \ No newline at end of file From 4a5bbbf7aaac2a2cc838617b090ec4e8f84da567 Mon Sep 17 00:00:00 2001 From: kor-Chipmunk Date: Wed, 21 Feb 2024 07:27:41 +0900 Subject: [PATCH 09/16] =?UTF-8?q?feat:=20=EC=9D=8C=EC=9B=90=20=EC=A2=8B?= =?UTF-8?q?=EC=95=84=EC=9A=94=20=EB=A0=88=ED=8F=AC=EC=A7=80=ED=86=A0?= =?UTF-8?q?=EB=A6=AC=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/lalala/music/repository/MusicLikeRepository.java | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/backend/music-server/music-api/src/main/java/com/lalala/music/repository/MusicLikeRepository.java diff --git a/src/backend/music-server/music-api/src/main/java/com/lalala/music/repository/MusicLikeRepository.java b/src/backend/music-server/music-api/src/main/java/com/lalala/music/repository/MusicLikeRepository.java new file mode 100644 index 00000000..087f2c2a --- /dev/null +++ b/src/backend/music-server/music-api/src/main/java/com/lalala/music/repository/MusicLikeRepository.java @@ -0,0 +1,9 @@ +package com.lalala.music.repository; + +import com.lalala.music.entity.MusicLikeEntity; +import java.util.Optional; +import org.springframework.data.jpa.repository.JpaRepository; + +public interface MusicLikeRepository extends JpaRepository { + Optional findByUserIdAndMusicId(Long userId, Long musicId); +} From f03f95805931d8bf12d88343786b415c6a5587b6 Mon Sep 17 00:00:00 2001 From: kor-Chipmunk Date: Wed, 21 Feb 2024 07:28:05 +0900 Subject: [PATCH 10/16] =?UTF-8?q?feat:=20`MusicEntity`=20=EC=97=90=20`like?= =?UTF-8?q?Count`=20=ED=95=84=EB=93=9C=20=EB=B0=8F=20=EC=A6=9D=EA=B0=90=20?= =?UTF-8?q?=EB=A9=94=EC=86=8C=EB=93=9C=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/lalala/music/entity/MusicEntity.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/backend/music-server/music-api/src/main/java/com/lalala/music/entity/MusicEntity.java b/src/backend/music-server/music-api/src/main/java/com/lalala/music/entity/MusicEntity.java index beeb07b9..3380b685 100644 --- a/src/backend/music-server/music-api/src/main/java/com/lalala/music/entity/MusicEntity.java +++ b/src/backend/music-server/music-api/src/main/java/com/lalala/music/entity/MusicEntity.java @@ -36,6 +36,9 @@ public class MusicEntity extends BaseTimeEntity { @Column(name = "artist_id", nullable = false) Long artistId; + @Column(name = "like_count", nullable = false, columnDefinition = "UNSIGNED INT default 0") + Integer likeCount; + @Embedded MusicFile file = new MusicFile(); public MusicEntity(String title, Short playTime, String lyrics) { @@ -61,4 +64,12 @@ public void updateAlbum(Long albumId) { public void updateArtist(Long artistId) { this.artistId = artistId; } + + public void increaseLikeCount() { + this.likeCount += 1; + } + + public void decreaseLikeCount() { + this.likeCount -= 1; + } } From 3e4e7917c0b32ed2e76e4b48ed289942b1c4709c Mon Sep 17 00:00:00 2001 From: kor-Chipmunk Date: Wed, 21 Feb 2024 07:28:37 +0900 Subject: [PATCH 11/16] =?UTF-8?q?feat:=20=EC=9D=8C=EC=9B=90=20=EB=8F=84?= =?UTF-8?q?=EB=A9=94=EC=9D=B8=EC=97=90=20`likeCount`=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/lalala/music/dto/MusicDTO.java | 4 +++- .../src/main/java/com/lalala/music/dto/MusicDetailDTO.java | 2 ++ .../sgwannabe/playlistserver/external/feign/dto/MusicDTO.java | 3 ++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/backend/music-server/music-api/src/main/java/com/lalala/music/dto/MusicDTO.java b/src/backend/music-server/music-api/src/main/java/com/lalala/music/dto/MusicDTO.java index 66350e07..527eedcd 100644 --- a/src/backend/music-server/music-api/src/main/java/com/lalala/music/dto/MusicDTO.java +++ b/src/backend/music-server/music-api/src/main/java/com/lalala/music/dto/MusicDTO.java @@ -15,7 +15,8 @@ public class MusicDTO { private final Long id; private final String title; - private final short playTime; + private final Short playTime; + private final Integer likeCount; private final AlbumDTO album; private final FileDTO file; private final ArtistDTO artist; @@ -27,6 +28,7 @@ public static MusicDTO from(MusicEntity music, AlbumEntity album, ArtistEntity a music.getId(), music.getTitle(), music.getPlayTime(), + music.getLikeCount(), AlbumDTO.from(album, artist), FileDTO.from(music.getFile()), ArtistDTO.from(artist), diff --git a/src/backend/music-server/music-api/src/main/java/com/lalala/music/dto/MusicDetailDTO.java b/src/backend/music-server/music-api/src/main/java/com/lalala/music/dto/MusicDetailDTO.java index d87538f5..72af403b 100644 --- a/src/backend/music-server/music-api/src/main/java/com/lalala/music/dto/MusicDetailDTO.java +++ b/src/backend/music-server/music-api/src/main/java/com/lalala/music/dto/MusicDetailDTO.java @@ -16,6 +16,7 @@ public class MusicDetailDTO { private final Long id; private final String title; private final Short playTime; + private final Integer likeCount; private final String lyrics; private final AlbumDTO album; private final FileDTO file; @@ -28,6 +29,7 @@ public static MusicDetailDTO from(MusicEntity music, ArtistEntity artist, AlbumE music.getId(), music.getTitle(), music.getPlayTime(), + music.getLikeCount(), music.getLyrics(), AlbumDTO.from(album, artist), FileDTO.from(music.getFile()), diff --git a/src/backend/playlist-server/src/main/java/com/sgwannabe/playlistserver/external/feign/dto/MusicDTO.java b/src/backend/playlist-server/src/main/java/com/sgwannabe/playlistserver/external/feign/dto/MusicDTO.java index a9b2315a..7d31b893 100644 --- a/src/backend/playlist-server/src/main/java/com/sgwannabe/playlistserver/external/feign/dto/MusicDTO.java +++ b/src/backend/playlist-server/src/main/java/com/sgwannabe/playlistserver/external/feign/dto/MusicDTO.java @@ -10,7 +10,8 @@ public class MusicDTO { private final Long id; private final String title; - private final short playTime; + private final Short playTime; + private final Integer likeCount; private final AlbumDTO album; private final FileDTO file; private final ArtistDTO artist; From 4455fb0c404e4deeb0eb12363d52b3d6ba7bf2a4 Mon Sep 17 00:00:00 2001 From: kor-Chipmunk Date: Wed, 21 Feb 2024 07:33:02 +0900 Subject: [PATCH 12/16] =?UTF-8?q?feat:=20=EC=A2=8B=EC=95=84=EC=9A=94=20API?= =?UTF-8?q?=20/=20=EC=84=9C=EB=B9=84=EC=8A=A4=20=EA=B5=AC=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../music/controller/MusicLikeController.java | 42 +++++++++++++++++++ .../music/service/MusicLikeService.java | 42 +++++++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 src/backend/music-server/music-api/src/main/java/com/lalala/music/controller/MusicLikeController.java create mode 100644 src/backend/music-server/music-api/src/main/java/com/lalala/music/service/MusicLikeService.java diff --git a/src/backend/music-server/music-api/src/main/java/com/lalala/music/controller/MusicLikeController.java b/src/backend/music-server/music-api/src/main/java/com/lalala/music/controller/MusicLikeController.java new file mode 100644 index 00000000..584f6312 --- /dev/null +++ b/src/backend/music-server/music-api/src/main/java/com/lalala/music/controller/MusicLikeController.java @@ -0,0 +1,42 @@ +package com.lalala.music.controller; + +import com.lalala.aop.AuthenticationContext; +import com.lalala.aop.PassportAuthentication; +import com.lalala.music.dto.CreateMusicRequestDTO; +import com.lalala.music.dto.MusicDTO; +import com.lalala.music.dto.MusicDetailDTO; +import com.lalala.music.dto.MusicRetrieveRequestDTO; +import com.lalala.music.dto.UpdateMusicRequestDTO; +import com.lalala.music.service.MusicLikeService; +import com.lalala.music.service.MusicService; +import com.lalala.music.service.MusicUploaderService; +import com.lalala.response.BaseResponse; +import java.util.List; +import lombok.RequiredArgsConstructor; +import org.springframework.http.HttpStatus; +import org.springframework.http.ResponseEntity; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; +import org.springframework.web.multipart.MultipartFile; + +@RestController +@RequiredArgsConstructor +@RequestMapping("/v1/api/musics") +public class MusicLikeController { + private final MusicLikeService service; + + @PostMapping("/{musicId}/likes") + @PassportAuthentication + public ResponseEntity> createLike(@PathVariable("musicId") Long musicId) { + Long userId = AuthenticationContext.getUserInfo().id(); + boolean isLike = service.create(userId, musicId); + return ResponseEntity.ok(BaseResponse.from(HttpStatus.OK.value(), "좋아요를 눌렀습니다.", isLike)); + } +} diff --git a/src/backend/music-server/music-api/src/main/java/com/lalala/music/service/MusicLikeService.java b/src/backend/music-server/music-api/src/main/java/com/lalala/music/service/MusicLikeService.java new file mode 100644 index 00000000..9299855d --- /dev/null +++ b/src/backend/music-server/music-api/src/main/java/com/lalala/music/service/MusicLikeService.java @@ -0,0 +1,42 @@ +package com.lalala.music.service; + +import com.lalala.music.entity.MusicEntity; +import com.lalala.music.entity.MusicLikeEntity; +import com.lalala.music.repository.MusicLikeRepository; +import com.lalala.music.repository.MusicRepository; +import com.lalala.music.util.MusicUtils; +import java.util.Optional; +import lombok.RequiredArgsConstructor; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +@Service +@RequiredArgsConstructor +@Transactional(readOnly = true) +public class MusicLikeService { + private final MusicLikeRepository repository; + private final MusicRepository musicRepository; + + @Transactional + public boolean create(Long userId, Long musicId) { + MusicEntity music = MusicUtils.findById(musicId, musicRepository); + + Optional musicLike = repository.findByUserIdAndMusicId(userId, music.getId()); + if (musicLike.isPresent()) { + repository.delete(musicLike.get()); + + music.decreaseLikeCount(); + musicRepository.save(music); + + return false; + } else { + MusicLikeEntity createdMusicLike = new MusicLikeEntity(userId, music.getId()); + repository.save(createdMusicLike); + + music.increaseLikeCount(); + musicRepository.save(music); + + return true; + } + } +} From ee9a8a0778d4b1b81374ce7f3d6a3554207e0b0b Mon Sep 17 00:00:00 2001 From: kor-Chipmunk Date: Wed, 21 Feb 2024 07:33:16 +0900 Subject: [PATCH 13/16] =?UTF-8?q?style:=20spotless=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/lalala/mvc/passport/PassportExtractor.java | 4 +--- .../java/com/lalala/mvc/response/BaseResponseBodyAdvice.java | 5 +++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/backend/common-module/common-mvc/src/main/java/com/lalala/mvc/passport/PassportExtractor.java b/src/backend/common-module/common-mvc/src/main/java/com/lalala/mvc/passport/PassportExtractor.java index 9c024104..42b9da41 100644 --- a/src/backend/common-module/common-mvc/src/main/java/com/lalala/mvc/passport/PassportExtractor.java +++ b/src/backend/common-module/common-mvc/src/main/java/com/lalala/mvc/passport/PassportExtractor.java @@ -38,9 +38,7 @@ public Passport getPassportFromRequestHeader(HttpServletRequest httpServletReque } return objectMapper.readValue( - new String( - Base64.getDecoder().decode(authorization), - StandardCharsets.UTF_8), + new String(Base64.getDecoder().decode(authorization), StandardCharsets.UTF_8), Passport.class); } catch (JsonProcessingException e) { throw new BusinessException(ErrorCode.INVALID_PASSPORT); diff --git a/src/backend/common-module/common-mvc/src/main/java/com/lalala/mvc/response/BaseResponseBodyAdvice.java b/src/backend/common-module/common-mvc/src/main/java/com/lalala/mvc/response/BaseResponseBodyAdvice.java index 7a49814f..75aefd5c 100644 --- a/src/backend/common-module/common-mvc/src/main/java/com/lalala/mvc/response/BaseResponseBodyAdvice.java +++ b/src/backend/common-module/common-mvc/src/main/java/com/lalala/mvc/response/BaseResponseBodyAdvice.java @@ -1,6 +1,7 @@ package com.lalala.mvc.response; import java.util.TreeMap; + import lombok.extern.slf4j.Slf4j; import org.springframework.core.MethodParameter; @@ -33,8 +34,8 @@ public Object beforeBodyWrite( ServerHttpRequest request, ServerHttpResponse response) { // Swagger 예외 처리 - if (body.getClass() == TreeMap.class || - selectedConverterType == ByteArrayHttpMessageConverter.class) { + if (body.getClass() == TreeMap.class + || selectedConverterType == ByteArrayHttpMessageConverter.class) { return body; } From dab53635949bbb212070d39eb642d8e5c5af9af6 Mon Sep 17 00:00:00 2001 From: kor-Chipmunk Date: Wed, 21 Feb 2024 07:33:34 +0900 Subject: [PATCH 14/16] =?UTF-8?q?chore:=20`fileserver-app`=20=EC=9C=BC?= =?UTF-8?q?=EB=A1=9C=20=EB=8B=A4=EC=8B=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../infra/02_albums_202402151519.sql | 42 ++-- .../infra/03_musics_202402151519.sql | 200 +++++++++--------- 2 files changed, 121 insertions(+), 121 deletions(-) diff --git a/src/backend/music-server/infra/02_albums_202402151519.sql b/src/backend/music-server/infra/02_albums_202402151519.sql index 3a266124..807d46e2 100644 --- a/src/backend/music-server/infra/02_albums_202402151519.sql +++ b/src/backend/music-server/infra/02_albums_202402151519.sql @@ -1,7 +1,7 @@ INSERT INTO music.albums (artist_id,`type`,title,released_at,cover_url,like_count,created_at,updated_at) VALUES - (1,'SINGLE','All I Need','2024-02-15 12:41:31','http://localhost:30000/971ee18a-9f87-4cd0-ab8f-81a20fa0fee4.jpg',0,'2024-02-15 12:41:31','2024-02-15 12:41:31'), - (2,'SINGLE','Talk About','2024-02-15 12:53:16','http://localhost:30000/fe2f7f22-37a8-4885-8977-a50d28791add.jpg',0,'2024-02-15 12:53:16','2024-02-15 12:53:16'), - (3,'SINGLE','Waves','2024-02-15 12:55:57','http://localhost:30000/4ff65b52-13ea-4131-96a0-71c76efd2885.jpeg',0,'2024-02-15 12:55:57','2024-02-15 12:55:57'), + (1,'SINGLE','All I Need','2024-02-15 12:41:31','http://fileserver-app:30000/971ee18a-9f87-4cd0-ab8f-81a20fa0fee4.jpg',0,'2024-02-15 12:41:31','2024-02-15 12:41:31'), + (2,'SINGLE','Talk About','2024-02-15 12:53:16','http://fileserver-app:30000/fe2f7f22-37a8-4885-8977-a50d28791add.jpg',0,'2024-02-15 12:53:16','2024-02-15 12:53:16'), + (3,'SINGLE','Waves','2024-02-15 12:55:57','http://fileserver-app:30000/4ff65b52-13ea-4131-96a0-71c76efd2885.jpeg',0,'2024-02-15 12:55:57','2024-02-15 12:55:57'), (5,'SINGLE','Various Album','2024-02-15 13:20:06','',0,'2024-02-15 13:20:06','2024-02-15 13:20:06'), (6,'SINGLE','Various Album','2024-02-15 13:20:30','',0,'2024-02-15 13:20:30','2024-02-15 13:20:30'), (7,'SINGLE','Various Album','2024-02-15 13:20:40','',0,'2024-02-15 13:20:40','2024-02-15 13:20:40'), @@ -10,11 +10,11 @@ INSERT INTO music.albums (artist_id,`type`,title,released_at,cover_url,like_coun (10,'SINGLE','Various Album','2024-02-15 13:35:03','',0,'2024-02-15 13:35:03','2024-02-15 13:35:03'), (11,'SINGLE','Various Album','2024-02-15 13:36:38','',0,'2024-02-15 13:36:38','2024-02-15 13:36:38'); INSERT INTO music.albums (artist_id,`type`,title,released_at,cover_url,like_count,created_at,updated_at) VALUES - (12,'SINGLE','All I Need','2024-02-15 14:09:03','http://localhost:30000/44569839-e962-4521-bd8f-1148de83720c.jpg',0,'2024-02-15 14:09:03','2024-02-15 14:09:03'), + (12,'SINGLE','All I Need','2024-02-15 14:09:03','http://fileserver-app:30000/44569839-e962-4521-bd8f-1148de83720c.jpg',0,'2024-02-15 14:09:03','2024-02-15 14:09:03'), (13,'SINGLE','Various Album','2024-02-15 14:09:54','',0,'2024-02-15 14:09:54','2024-02-15 14:09:54'), - (14,'SINGLE','Bad Girl','2024-02-15 14:10:13','http://localhost:30000/5b8bcdb1-1b6d-429b-8687-a53a450f2444.jpeg',0,'2024-02-15 14:10:13','2024-02-15 14:10:13'), + (14,'SINGLE','Bad Girl','2024-02-15 14:10:13','http://fileserver-app:30000/5b8bcdb1-1b6d-429b-8687-a53a450f2444.jpeg',0,'2024-02-15 14:10:13','2024-02-15 14:10:13'), (15,'SINGLE','Various Album','2024-02-15 14:10:32','',0,'2024-02-15 14:10:32','2024-02-15 14:10:32'), - (16,'SINGLE','Calling For You','2024-02-15 14:10:42','http://localhost:30000/8ee3a9a8-32f9-4ee1-839b-e9d5c6a82577.jpg',0,'2024-02-15 14:10:42','2024-02-15 14:10:42'), + (16,'SINGLE','Calling For You','2024-02-15 14:10:42','http://fileserver-app:30000/8ee3a9a8-32f9-4ee1-839b-e9d5c6a82577.jpg',0,'2024-02-15 14:10:42','2024-02-15 14:10:42'), (17,'SINGLE','Various Album','2024-02-15 14:12:20','',0,'2024-02-15 14:12:20','2024-02-15 14:12:20'), (18,'SINGLE','Various Album','2024-02-15 14:13:14','',0,'2024-02-15 14:13:14','2024-02-15 14:13:14'), (19,'SINGLE','Various Album','2024-02-15 14:13:25','',0,'2024-02-15 14:13:25','2024-02-15 14:13:25'), @@ -29,21 +29,21 @@ INSERT INTO music.albums (artist_id,`type`,title,released_at,cover_url,like_coun (27,'SINGLE','Various Album','2024-02-15 14:19:53','',0,'2024-02-15 14:19:53','2024-02-15 14:19:53'), (28,'SINGLE','Various Album','2024-02-15 14:20:10','',0,'2024-02-15 14:20:10','2024-02-15 14:20:10'), (29,'SINGLE','Various Album','2024-02-15 14:20:21','',0,'2024-02-15 14:20:21','2024-02-15 14:20:21'), - (30,'SINGLE','Nunca','2024-02-15 14:23:37','http://localhost:30000/54081e8c-7433-4fcc-a5e9-dcc26a8f25da.jpeg',0,'2024-02-15 14:23:37','2024-02-15 14:23:37'), + (30,'SINGLE','Nunca','2024-02-15 14:23:37','http://fileserver-app:30000/54081e8c-7433-4fcc-a5e9-dcc26a8f25da.jpeg',0,'2024-02-15 14:23:37','2024-02-15 14:23:37'), (31,'SINGLE','Various Album','2024-02-15 14:26:17','',0,'2024-02-15 14:26:17','2024-02-15 14:26:17'); INSERT INTO music.albums (artist_id,`type`,title,released_at,cover_url,like_count,created_at,updated_at) VALUES (32,'SINGLE','Various Album','2024-02-15 14:26:32','',0,'2024-02-15 14:26:32','2024-02-15 14:26:32'), (33,'SINGLE','Various Album','2024-02-15 14:27:19','',0,'2024-02-15 14:27:19','2024-02-15 14:27:19'), - (33,'SINGLE','Indecisive ','2024-02-15 14:27:31','http://localhost:30000/aab737f9-0220-4034-ba4d-90d691982741.png',0,'2024-02-15 14:27:31','2024-02-15 14:27:31'), + (33,'SINGLE','Indecisive ','2024-02-15 14:27:31','http://fileserver-app:30000/aab737f9-0220-4034-ba4d-90d691982741.png',0,'2024-02-15 14:27:31','2024-02-15 14:27:31'), (34,'SINGLE','Various Album','2024-02-15 14:27:54','',0,'2024-02-15 14:27:54','2024-02-15 14:27:54'), (35,'SINGLE','Various Album','2024-02-15 14:28:01','',0,'2024-02-15 14:28:01','2024-02-15 14:28:01'), (36,'SINGLE','Various Album','2024-02-15 14:28:20','',0,'2024-02-15 14:28:20','2024-02-15 14:28:20'), (37,'SINGLE','Various Album','2024-02-15 14:28:50','',0,'2024-02-15 14:28:51','2024-02-15 14:28:51'), - (38,'SINGLE','Gone For Good','2024-02-15 14:29:16','http://localhost:30000/a8155c03-4c5d-49fd-8383-03843604a0eb.png',0,'2024-02-15 14:29:16','2024-02-15 14:29:16'), + (38,'SINGLE','Gone For Good','2024-02-15 14:29:16','http://fileserver-app:30000/a8155c03-4c5d-49fd-8383-03843604a0eb.png',0,'2024-02-15 14:29:16','2024-02-15 14:29:16'), (39,'SINGLE','Various Album','2024-02-15 14:29:42','',0,'2024-02-15 14:29:42','2024-02-15 14:29:42'), (40,'SINGLE','Various Album','2024-02-15 14:29:54','',0,'2024-02-15 14:29:54','2024-02-15 14:29:54'); INSERT INTO music.albums (artist_id,`type`,title,released_at,cover_url,like_count,created_at,updated_at) VALUES - (40,'SINGLE','paradise ','2024-02-15 14:30:01','http://localhost:30000/03dca986-7ede-4ecb-8b88-6102f2463600.png',0,'2024-02-15 14:30:01','2024-02-15 14:30:01'), + (40,'SINGLE','paradise ','2024-02-15 14:30:01','http://fileserver-app:30000/03dca986-7ede-4ecb-8b88-6102f2463600.png',0,'2024-02-15 14:30:01','2024-02-15 14:30:01'), (41,'SINGLE','Various Album','2024-02-15 14:30:05','',0,'2024-02-15 14:30:05','2024-02-15 14:30:05'), (42,'SINGLE','Various Album','2024-02-15 14:30:22','',0,'2024-02-15 14:30:22','2024-02-15 14:30:22'), (43,'SINGLE','Various Album','2024-02-15 14:30:27','',0,'2024-02-15 14:30:27','2024-02-15 14:30:27'), @@ -51,26 +51,26 @@ INSERT INTO music.albums (artist_id,`type`,title,released_at,cover_url,like_coun (45,'SINGLE','Various Album','2024-02-15 14:30:42','',0,'2024-02-15 14:30:42','2024-02-15 14:30:42'), (46,'SINGLE','Various Album','2024-02-15 14:30:50','',0,'2024-02-15 14:30:50','2024-02-15 14:30:50'), (47,'SINGLE','Various Album','2024-02-15 14:30:59','',0,'2024-02-15 14:30:59','2024-02-15 14:30:59'), - (48,'SINGLE','Pick Up The Pieces','2024-02-15 14:31:04','http://localhost:30000/9ebf5698-4109-4ecb-89ed-080a10f853da.jpeg',0,'2024-02-15 14:31:04','2024-02-15 14:31:04'), - (49,'SINGLE','Unbreakable','2024-02-15 14:31:28','http://localhost:30000/97acbe0e-bf17-47ff-98b7-159c9c99fbaa.jpeg',0,'2024-02-15 14:31:28','2024-02-15 14:31:28'); + (48,'SINGLE','Pick Up The Pieces','2024-02-15 14:31:04','http://fileserver-app:30000/9ebf5698-4109-4ecb-89ed-080a10f853da.jpeg',0,'2024-02-15 14:31:04','2024-02-15 14:31:04'), + (49,'SINGLE','Unbreakable','2024-02-15 14:31:28','http://fileserver-app:30000/97acbe0e-bf17-47ff-98b7-159c9c99fbaa.jpeg',0,'2024-02-15 14:31:28','2024-02-15 14:31:28'); INSERT INTO music.albums (artist_id,`type`,title,released_at,cover_url,like_count,created_at,updated_at) VALUES - (50,'SINGLE','Never Have I Felt This (VIP)','2024-02-15 14:31:43','http://localhost:30000/f638bde0-7caf-4e41-9c10-c453019c426d.jpeg',0,'2024-02-15 14:31:43','2024-02-15 14:31:43'), + (50,'SINGLE','Never Have I Felt This (VIP)','2024-02-15 14:31:43','http://fileserver-app:30000/f638bde0-7caf-4e41-9c10-c453019c426d.jpeg',0,'2024-02-15 14:31:43','2024-02-15 14:31:43'), (51,'SINGLE','Various Album','2024-02-15 14:31:55','',0,'2024-02-15 14:31:55','2024-02-15 14:31:55'), (52,'SINGLE','Various Album','2024-02-15 14:32:05','',0,'2024-02-15 14:32:05','2024-02-15 14:32:05'), (53,'SINGLE','Various Album','2024-02-15 14:32:28','',0,'2024-02-15 14:32:28','2024-02-15 14:32:28'), (54,'SINGLE','Various Album','2024-02-15 14:32:42','',0,'2024-02-15 14:32:42','2024-02-15 14:32:42'), (55,'SINGLE','Various Album','2024-02-15 14:32:58','',0,'2024-02-15 14:32:58','2024-02-15 14:32:58'), - (56,'SINGLE','Vienna ','2024-02-15 14:34:27','http://localhost:30000/b7a8a194-bd86-4423-8e43-b07207f43fc4.jpeg',0,'2024-02-15 14:34:27','2024-02-15 14:34:27'), - (57,'SINGLE','All For You ','2024-02-15 14:34:39','http://localhost:30000/5439c5cb-01e7-45bd-979f-16666bec3b9b.png',0,'2024-02-15 14:34:39','2024-02-15 14:34:39'), - (58,'SINGLE','Now I''m Broken ','2024-02-15 14:34:51','http://localhost:30000/ae0b2308-a5cf-4b74-b990-9cebd4651de8.jpeg',0,'2024-02-15 14:34:51','2024-02-15 14:34:51'), + (56,'SINGLE','Vienna ','2024-02-15 14:34:27','http://fileserver-app:30000/b7a8a194-bd86-4423-8e43-b07207f43fc4.jpeg',0,'2024-02-15 14:34:27','2024-02-15 14:34:27'), + (57,'SINGLE','All For You ','2024-02-15 14:34:39','http://fileserver-app:30000/5439c5cb-01e7-45bd-979f-16666bec3b9b.png',0,'2024-02-15 14:34:39','2024-02-15 14:34:39'), + (58,'SINGLE','Now I''m Broken ','2024-02-15 14:34:51','http://fileserver-app:30000/ae0b2308-a5cf-4b74-b990-9cebd4651de8.jpeg',0,'2024-02-15 14:34:51','2024-02-15 14:34:51'), (58,'SINGLE','Various Album','2024-02-15 14:35:06','',0,'2024-02-15 14:35:06','2024-02-15 14:35:06'); INSERT INTO music.albums (artist_id,`type`,title,released_at,cover_url,like_count,created_at,updated_at) VALUES (59,'SINGLE','Various Album','2024-02-15 14:35:34','',0,'2024-02-15 14:35:34','2024-02-15 14:35:34'), - (60,'SINGLE','Nocturnal ','2024-02-15 14:35:43','http://localhost:30000/4a2f78cc-da82-4ccc-823b-8ab24e126298.jpeg',0,'2024-02-15 14:35:43','2024-02-15 14:35:43'), - (61,'SINGLE','Hold On Me','2024-02-15 14:35:51','http://localhost:30000/6ada3ba2-62ad-4e73-a192-0d6351fa3518.jpeg',0,'2024-02-15 14:35:51','2024-02-15 14:35:51'), - (62,'SINGLE','Royalty ','2024-02-15 14:36:02','http://localhost:30000/748b755a-950c-48da-956c-eead7c607212.jpeg',0,'2024-02-15 14:36:02','2024-02-15 14:36:02'), + (60,'SINGLE','Nocturnal ','2024-02-15 14:35:43','http://fileserver-app:30000/4a2f78cc-da82-4ccc-823b-8ab24e126298.jpeg',0,'2024-02-15 14:35:43','2024-02-15 14:35:43'), + (61,'SINGLE','Hold On Me','2024-02-15 14:35:51','http://fileserver-app:30000/6ada3ba2-62ad-4e73-a192-0d6351fa3518.jpeg',0,'2024-02-15 14:35:51','2024-02-15 14:35:51'), + (62,'SINGLE','Royalty ','2024-02-15 14:36:02','http://fileserver-app:30000/748b755a-950c-48da-956c-eead7c607212.jpeg',0,'2024-02-15 14:36:02','2024-02-15 14:36:02'), (63,'SINGLE','Various Album','2024-02-15 14:36:09','',0,'2024-02-15 14:36:09','2024-02-15 14:36:09'), (64,'SINGLE','Various Album','2024-02-15 14:41:02','',0,'2024-02-15 14:41:02','2024-02-15 14:41:02'), - (65,'SINGLE','Memory Box','2024-02-15 14:41:07','http://localhost:30000/b1fec792-50a1-4b09-b23e-b6e0e609f5b2.jpeg',0,'2024-02-15 14:41:07','2024-02-15 14:41:07'), + (65,'SINGLE','Memory Box','2024-02-15 14:41:07','http://fileserver-app:30000/b1fec792-50a1-4b09-b23e-b6e0e609f5b2.jpeg',0,'2024-02-15 14:41:07','2024-02-15 14:41:07'), (66,'SINGLE','Various Album','2024-02-15 14:41:11','',0,'2024-02-15 14:41:11','2024-02-15 14:41:11'), - (67,'SINGLE','Alone','2024-02-15 14:41:25','http://localhost:30000/6a46d356-c9ba-4d7c-bcea-70394fabb2ac.jpg',0,'2024-02-15 14:41:25','2024-02-15 14:41:25'); + (67,'SINGLE','Alone','2024-02-15 14:41:25','http://fileserver-app:30000/6a46d356-c9ba-4d7c-bcea-70394fabb2ac.jpg',0,'2024-02-15 14:41:25','2024-02-15 14:41:25'); diff --git a/src/backend/music-server/infra/03_musics_202402151519.sql b/src/backend/music-server/infra/03_musics_202402151519.sql index bec39147..87428a49 100644 --- a/src/backend/music-server/infra/03_musics_202402151519.sql +++ b/src/backend/music-server/infra/03_musics_202402151519.sql @@ -1,110 +1,110 @@ INSERT INTO music.musics (album_id,artist_id,title,play_time,lyrics,file_url,format_type,like_count,created_at,updated_at) VALUES - (1,1,'All I Need',152,'','http://localhost:30000/af7668ba-6ac3-4491-ae5b-47288db81637.mp3','MP3',0,'2024-02-15 12:41:31','2024-02-15 12:41:31'), - (2,2,'Talk About',135,'','http://localhost:30000/edc4701e-bc82-41b5-87d3-d5249fb6a1a1.mp3','MP3',0,'2024-02-15 12:53:16','2024-02-15 12:53:16'), - (3,3,'Waves',268,'','http://localhost:30000/24b7d857-4811-493f-aa82-5cbde526766b.mp3','MP3',0,'2024-02-15 12:55:57','2024-02-15 12:55:57'), - (4,5,'GODSLAYER',92,'','http://localhost:30000/021aa8a9-9a0c-4285-8403-b5f58c126399.mp3','MP3',0,'2024-02-15 13:20:06','2024-02-15 13:20:06'), - (5,6,'AKTIV',157,'','http://localhost:30000/ee2ec3ef-1ff3-456e-8b15-b3a41bc83a78.mp3','MP3',0,'2024-02-15 13:20:30','2024-02-15 13:20:30'), - (6,7,'Karma',189,'','http://localhost:30000/58a2c782-9357-4893-960a-58e8c1c03b7f.mp3','MP3',0,'2024-02-15 13:20:40','2024-02-15 13:20:40'), - (7,8,'SKY BRI',107,'','http://localhost:30000/b897b7b8-4b3f-451f-a30d-50b86401423b.mp3','MP3',0,'2024-02-15 13:27:22','2024-02-15 13:27:22'), - (8,9,'bye bye',168,'','http://localhost:30000/4816de45-67b8-47e6-922e-76db5cd6f3c8.mp3','MP3',0,'2024-02-15 13:34:46','2024-02-15 13:34:46'), - (9,10,'Fall Too Deep',185,'','http://localhost:30000/9bdfc602-310f-4fd5-8ad0-66aea6bb496f.mp3','MP3',0,'2024-02-15 13:35:03','2024-02-15 13:35:03'), - (10,11,'FAVHELLA',116,'','http://localhost:30000/f9320c7e-9642-4341-8bc1-c1f1f0205959.mp3','MP3',0,'2024-02-15 13:36:38','2024-02-15 13:36:38'); + (1,1,'All I Need',152,'','http://fileserver-app:30000/af7668ba-6ac3-4491-ae5b-47288db81637.mp3','MP3',0,'2024-02-15 12:41:31','2024-02-15 12:41:31'), + (2,2,'Talk About',135,'','http://fileserver-app:30000/edc4701e-bc82-41b5-87d3-d5249fb6a1a1.mp3','MP3',0,'2024-02-15 12:53:16','2024-02-15 12:53:16'), + (3,3,'Waves',268,'','http://fileserver-app:30000/24b7d857-4811-493f-aa82-5cbde526766b.mp3','MP3',0,'2024-02-15 12:55:57','2024-02-15 12:55:57'), + (4,5,'GODSLAYER',92,'','http://fileserver-app:30000/021aa8a9-9a0c-4285-8403-b5f58c126399.mp3','MP3',0,'2024-02-15 13:20:06','2024-02-15 13:20:06'), + (5,6,'AKTIV',157,'','http://fileserver-app:30000/ee2ec3ef-1ff3-456e-8b15-b3a41bc83a78.mp3','MP3',0,'2024-02-15 13:20:30','2024-02-15 13:20:30'), + (6,7,'Karma',189,'','http://fileserver-app:30000/58a2c782-9357-4893-960a-58e8c1c03b7f.mp3','MP3',0,'2024-02-15 13:20:40','2024-02-15 13:20:40'), + (7,8,'SKY BRI',107,'','http://fileserver-app:30000/b897b7b8-4b3f-451f-a30d-50b86401423b.mp3','MP3',0,'2024-02-15 13:27:22','2024-02-15 13:27:22'), + (8,9,'bye bye',168,'','http://fileserver-app:30000/4816de45-67b8-47e6-922e-76db5cd6f3c8.mp3','MP3',0,'2024-02-15 13:34:46','2024-02-15 13:34:46'), + (9,10,'Fall Too Deep',185,'','http://fileserver-app:30000/9bdfc602-310f-4fd5-8ad0-66aea6bb496f.mp3','MP3',0,'2024-02-15 13:35:03','2024-02-15 13:35:03'), + (10,11,'FAVHELLA',116,'','http://fileserver-app:30000/f9320c7e-9642-4341-8bc1-c1f1f0205959.mp3','MP3',0,'2024-02-15 13:36:38','2024-02-15 13:36:38'); INSERT INTO music.musics (album_id,artist_id,title,play_time,lyrics,file_url,format_type,like_count,created_at,updated_at) VALUES - (11,12,'Ariadne - All I Need (feat. Karl Killing)',152,'','http://localhost:30000/82e2250c-7c7a-4896-ada8-bc44c3b2ba06.mp3','MP3',0,'2024-02-15 14:09:03','2024-02-15 14:09:03'), - (12,13,'Alright',195,'','http://localhost:30000/fb9e33bb-b19b-48e7-93c3-3ffff66b4d3d.mp3','MP3',0,'2024-02-15 14:09:54','2024-02-15 14:09:54'), - (13,14,'LAADS - Bad Girl',164,'','http://localhost:30000/7dcf94a7-d4f5-460a-b8d6-6e5a64d3eb19.mp3','MP3',0,'2024-02-15 14:10:13','2024-02-15 14:10:13'), - (14,15,'Driver Seat',149,'','http://localhost:30000/7c92a10a-9dd7-4c34-aa5c-5a0ccd0d74ac.mp3','MP3',0,'2024-02-15 14:10:32','2024-02-15 14:10:32'), - (15,16,'Venjent x Oktae - Calling For You',221,'','http://localhost:30000/b67ff26e-d511-46a1-9dfd-1efbb288dac9.mp3','MP3',0,'2024-02-15 14:10:42','2024-02-15 14:10:42'), - (16,17,'Getaway',242,'','http://localhost:30000/077e0daa-7c86-43fe-836f-761f4198f290.mp3','MP3',0,'2024-02-15 14:12:20','2024-02-15 14:12:20'), - (16,17,'Honey',204,'','http://localhost:30000/f4972351-ae67-43f2-bb40-3d6f76f6f05e.mp3','MP3',0,'2024-02-15 14:12:33','2024-02-15 14:12:33'), - (16,17,'I Like It With You',235,'','http://localhost:30000/13f127b7-135a-45db-8848-de1eff627c94.mp3','MP3',0,'2024-02-15 14:12:40','2024-02-15 14:12:40'), - (16,17,'River',111,'','http://localhost:30000/3dda2b37-e0c7-4625-843e-9f0976d80c28.mp3','MP3',0,'2024-02-15 14:12:50','2024-02-15 14:12:50'), - (16,17,'Talk',209,'','http://localhost:30000/915a1608-d3f1-4d96-93cc-d6658721bdd3.mp3','MP3',0,'2024-02-15 14:12:56','2024-02-15 14:12:56'); + (11,12,'Ariadne - All I Need (feat. Karl Killing)',152,'','http://fileserver-app:30000/82e2250c-7c7a-4896-ada8-bc44c3b2ba06.mp3','MP3',0,'2024-02-15 14:09:03','2024-02-15 14:09:03'), + (12,13,'Alright',195,'','http://fileserver-app:30000/fb9e33bb-b19b-48e7-93c3-3ffff66b4d3d.mp3','MP3',0,'2024-02-15 14:09:54','2024-02-15 14:09:54'), + (13,14,'LAADS - Bad Girl',164,'','http://fileserver-app:30000/7dcf94a7-d4f5-460a-b8d6-6e5a64d3eb19.mp3','MP3',0,'2024-02-15 14:10:13','2024-02-15 14:10:13'), + (14,15,'Driver Seat',149,'','http://fileserver-app:30000/7c92a10a-9dd7-4c34-aa5c-5a0ccd0d74ac.mp3','MP3',0,'2024-02-15 14:10:32','2024-02-15 14:10:32'), + (15,16,'Venjent x Oktae - Calling For You',221,'','http://fileserver-app:30000/b67ff26e-d511-46a1-9dfd-1efbb288dac9.mp3','MP3',0,'2024-02-15 14:10:42','2024-02-15 14:10:42'), + (16,17,'Getaway',242,'','http://fileserver-app:30000/077e0daa-7c86-43fe-836f-761f4198f290.mp3','MP3',0,'2024-02-15 14:12:20','2024-02-15 14:12:20'), + (16,17,'Honey',204,'','http://fileserver-app:30000/f4972351-ae67-43f2-bb40-3d6f76f6f05e.mp3','MP3',0,'2024-02-15 14:12:33','2024-02-15 14:12:33'), + (16,17,'I Like It With You',235,'','http://fileserver-app:30000/13f127b7-135a-45db-8848-de1eff627c94.mp3','MP3',0,'2024-02-15 14:12:40','2024-02-15 14:12:40'), + (16,17,'River',111,'','http://fileserver-app:30000/3dda2b37-e0c7-4625-843e-9f0976d80c28.mp3','MP3',0,'2024-02-15 14:12:50','2024-02-15 14:12:50'), + (16,17,'Talk',209,'','http://fileserver-app:30000/915a1608-d3f1-4d96-93cc-d6658721bdd3.mp3','MP3',0,'2024-02-15 14:12:56','2024-02-15 14:12:56'); INSERT INTO music.musics (album_id,artist_id,title,play_time,lyrics,file_url,format_type,like_count,created_at,updated_at) VALUES - (16,17,'That''s What Makes It Right',174,'','http://localhost:30000/aedf4ce7-3f85-4e21-92d8-881c86e6bc91.mp3','MP3',0,'2024-02-15 14:13:03','2024-02-15 14:13:03'), - (17,18,'I Like It',151,'','http://localhost:30000/2a84be40-2b3b-4f3f-957b-66f09cfb811f.mp3','MP3',0,'2024-02-15 14:13:14','2024-02-15 14:13:14'), - (18,19,'Lies',237,'','http://localhost:30000/13323f7c-698f-41f5-865e-ba82d5dac9ff.mp3','MP3',0,'2024-02-15 14:13:25','2024-02-15 14:13:25'), - (19,19,'Devil',242,'','http://localhost:30000/3e755565-43ee-4a33-abe1-8b65bc6a75ef.mp3','MP3',0,'2024-02-15 14:13:42','2024-02-15 14:13:42'), - (20,21,'8 Rounds',123,'','http://localhost:30000/b45e4e07-455a-4e16-962f-8c1d4127d89a.mp3','MP3',0,'2024-02-15 14:17:01','2024-02-15 14:17:01'), - (21,22,'whole',133,'','http://localhost:30000/4ca7278e-b1b0-4fce-847a-3a0429bc5d1f.mp3','MP3',0,'2024-02-15 14:17:13','2024-02-15 14:17:13'), - (22,23,'magnificent',147,'','http://localhost:30000/ba358599-f326-4fae-8e25-4d7f82fea679.mp3','MP3',0,'2024-02-15 14:17:36','2024-02-15 14:17:36'), - (23,24,'who am I_',108,'','http://localhost:30000/57975271-cc33-4fe3-9741-91c17144e577.mp3','MP3',0,'2024-02-15 14:18:14','2024-02-15 14:18:14'), - (23,24,'triple no',175,'','http://localhost:30000/66018daa-c24e-45ec-be5f-474d73581f4c.mp3','MP3',0,'2024-02-15 14:18:21','2024-02-15 14:18:21'), - (23,24,'think about',142,'','http://localhost:30000/68059a3a-fc28-4bf1-963d-d8f11d21944f.mp3','MP3',0,'2024-02-15 14:18:31','2024-02-15 14:18:31'); + (16,17,'That''s What Makes It Right',174,'','http://fileserver-app:30000/aedf4ce7-3f85-4e21-92d8-881c86e6bc91.mp3','MP3',0,'2024-02-15 14:13:03','2024-02-15 14:13:03'), + (17,18,'I Like It',151,'','http://fileserver-app:30000/2a84be40-2b3b-4f3f-957b-66f09cfb811f.mp3','MP3',0,'2024-02-15 14:13:14','2024-02-15 14:13:14'), + (18,19,'Lies',237,'','http://fileserver-app:30000/13323f7c-698f-41f5-865e-ba82d5dac9ff.mp3','MP3',0,'2024-02-15 14:13:25','2024-02-15 14:13:25'), + (19,19,'Devil',242,'','http://fileserver-app:30000/3e755565-43ee-4a33-abe1-8b65bc6a75ef.mp3','MP3',0,'2024-02-15 14:13:42','2024-02-15 14:13:42'), + (20,21,'8 Rounds',123,'','http://fileserver-app:30000/b45e4e07-455a-4e16-962f-8c1d4127d89a.mp3','MP3',0,'2024-02-15 14:17:01','2024-02-15 14:17:01'), + (21,22,'whole',133,'','http://fileserver-app:30000/4ca7278e-b1b0-4fce-847a-3a0429bc5d1f.mp3','MP3',0,'2024-02-15 14:17:13','2024-02-15 14:17:13'), + (22,23,'magnificent',147,'','http://fileserver-app:30000/ba358599-f326-4fae-8e25-4d7f82fea679.mp3','MP3',0,'2024-02-15 14:17:36','2024-02-15 14:17:36'), + (23,24,'who am I_',108,'','http://fileserver-app:30000/57975271-cc33-4fe3-9741-91c17144e577.mp3','MP3',0,'2024-02-15 14:18:14','2024-02-15 14:18:14'), + (23,24,'triple no',175,'','http://fileserver-app:30000/66018daa-c24e-45ec-be5f-474d73581f4c.mp3','MP3',0,'2024-02-15 14:18:21','2024-02-15 14:18:21'), + (23,24,'think about',142,'','http://fileserver-app:30000/68059a3a-fc28-4bf1-963d-d8f11d21944f.mp3','MP3',0,'2024-02-15 14:18:31','2024-02-15 14:18:31'); INSERT INTO music.musics (album_id,artist_id,title,play_time,lyrics,file_url,format_type,like_count,created_at,updated_at) VALUES - (23,24,'realise',180,'','http://localhost:30000/abffbda4-bbea-494d-b744-9de766579014.mp3','MP3',0,'2024-02-15 14:18:38','2024-02-15 14:18:38'), - (23,24,'misunderstood',130,'','http://localhost:30000/1a612860-ebad-4fa1-9250-62d6a6354bd6.mp3','MP3',0,'2024-02-15 14:18:44','2024-02-15 14:18:44'), - (23,24,'midnight feelings',145,'','http://localhost:30000/d84d8f83-6df2-4b93-afca-989839acda31.mp3','MP3',0,'2024-02-15 14:18:52','2024-02-15 14:18:52'), - (23,24,'las fallas',146,'','http://localhost:30000/92589675-581f-48a9-aa7c-bb6d145b63e7.mp3','MP3',0,'2024-02-15 14:18:58','2024-02-15 14:18:58'), - (23,24,'i will be ok',153,'','http://localhost:30000/6b95560b-a572-4fbb-b9f5-5478e91e012e.mp3','MP3',0,'2024-02-15 14:19:06','2024-02-15 14:19:06'), - (23,24,'hyperactive',166,'','http://localhost:30000/9bc86669-8d27-47b7-82e0-f88dd666fe4c.mp3','MP3',0,'2024-02-15 14:19:12','2024-02-15 14:19:12'), - (23,24,'feel it',134,'','http://localhost:30000/c5666e49-ecb9-47eb-8404-9e5ec2b964f1.mp3','MP3',0,'2024-02-15 14:19:19','2024-02-15 14:19:19'), - (23,24,'fearless',184,'','http://localhost:30000/cb98f681-1dad-40af-a2f5-2d0769306a02.mp3','MP3',0,'2024-02-15 14:19:26','2024-02-15 14:19:26'), - (24,25,'Running Wild (EH!DE Remix)',215,'','http://localhost:30000/8a859bc9-97e5-4f16-ad4a-23241658e100.mp3','MP3',0,'2024-02-15 14:19:33','2024-02-15 14:19:33'), - (25,26,'Shadow Of Ages',153,'','http://localhost:30000/4bd84ff8-b1f7-4c57-92c3-5ec50eb16d2c.mp3','MP3',0,'2024-02-15 14:19:42','2024-02-15 14:19:42'); + (23,24,'realise',180,'','http://fileserver-app:30000/abffbda4-bbea-494d-b744-9de766579014.mp3','MP3',0,'2024-02-15 14:18:38','2024-02-15 14:18:38'), + (23,24,'misunderstood',130,'','http://fileserver-app:30000/1a612860-ebad-4fa1-9250-62d6a6354bd6.mp3','MP3',0,'2024-02-15 14:18:44','2024-02-15 14:18:44'), + (23,24,'midnight feelings',145,'','http://fileserver-app:30000/d84d8f83-6df2-4b93-afca-989839acda31.mp3','MP3',0,'2024-02-15 14:18:52','2024-02-15 14:18:52'), + (23,24,'las fallas',146,'','http://fileserver-app:30000/92589675-581f-48a9-aa7c-bb6d145b63e7.mp3','MP3',0,'2024-02-15 14:18:58','2024-02-15 14:18:58'), + (23,24,'i will be ok',153,'','http://fileserver-app:30000/6b95560b-a572-4fbb-b9f5-5478e91e012e.mp3','MP3',0,'2024-02-15 14:19:06','2024-02-15 14:19:06'), + (23,24,'hyperactive',166,'','http://fileserver-app:30000/9bc86669-8d27-47b7-82e0-f88dd666fe4c.mp3','MP3',0,'2024-02-15 14:19:12','2024-02-15 14:19:12'), + (23,24,'feel it',134,'','http://fileserver-app:30000/c5666e49-ecb9-47eb-8404-9e5ec2b964f1.mp3','MP3',0,'2024-02-15 14:19:19','2024-02-15 14:19:19'), + (23,24,'fearless',184,'','http://fileserver-app:30000/cb98f681-1dad-40af-a2f5-2d0769306a02.mp3','MP3',0,'2024-02-15 14:19:26','2024-02-15 14:19:26'), + (24,25,'Running Wild (EH!DE Remix)',215,'','http://fileserver-app:30000/8a859bc9-97e5-4f16-ad4a-23241658e100.mp3','MP3',0,'2024-02-15 14:19:33','2024-02-15 14:19:33'), + (25,26,'Shadow Of Ages',153,'','http://fileserver-app:30000/4bd84ff8-b1f7-4c57-92c3-5ec50eb16d2c.mp3','MP3',0,'2024-02-15 14:19:42','2024-02-15 14:19:42'); INSERT INTO music.musics (album_id,artist_id,title,play_time,lyrics,file_url,format_type,like_count,created_at,updated_at) VALUES - (26,27,'Get Out Here (Lennart Schroot Remix)',181,'','http://localhost:30000/8a66ca22-0feb-4fea-b6f9-781f3cdd5839.mp3','MP3',0,'2024-02-15 14:19:53','2024-02-15 14:19:53'), - (27,28,'4 Love (Fresh Stuff Remix)',153,'','http://localhost:30000/1da32ea1-48c5-4dfa-9be6-45ca05c869bc.mp3','MP3',0,'2024-02-15 14:20:10','2024-02-15 14:20:10'), - (28,29,'VBM',136,'','http://localhost:30000/e90322dd-c3b4-450c-8d0c-dd0c0349be4b.mp3','MP3',0,'2024-02-15 14:20:21','2024-02-15 14:20:21'), - (28,29,'Pressure (Fectro Remix)',180,'','http://localhost:30000/12f28048-69f8-46ac-bd9e-67f9c80c3071.mp3','MP3',0,'2024-02-15 14:23:22','2024-02-15 14:23:22'), - (29,30,'Nunca [Arcade Release]',151,'','http://localhost:30000/3a12f3c5-0a1f-415c-8b21-fa45e4d630fd.mp3','MP3',0,'2024-02-15 14:23:37','2024-02-15 14:23:37'), - (28,29,'Moon Farewell',170,'','http://localhost:30000/6a71e598-bd0a-41e3-b6ff-d44d04696969.mp3','MP3',0,'2024-02-15 14:25:21','2024-02-15 14:25:21'), - (28,29,'Marcheur',247,'','http://localhost:30000/216d6118-5ce0-47d6-9998-be91e62e9978.mp3','MP3',0,'2024-02-15 14:25:38','2024-02-15 14:25:38'), - (28,29,'Gone',156,'','http://localhost:30000/c035e419-4d74-4fa8-b399-ab1267edf062.mp3','MP3',0,'2024-02-15 14:25:51','2024-02-15 14:25:51'), - (30,31,'Madness',208,'','http://localhost:30000/43d33875-49f6-4d26-8976-7f1721a6740c.mp3','MP3',0,'2024-02-15 14:26:17','2024-02-15 14:26:17'), - (31,32,'Hide Your Heart',164,'','http://localhost:30000/b84987d7-d501-45c3-af21-d11e845ea13e.mp3','MP3',0,'2024-02-15 14:26:32','2024-02-15 14:26:32'); + (26,27,'Get Out Here (Lennart Schroot Remix)',181,'','http://fileserver-app:30000/8a66ca22-0feb-4fea-b6f9-781f3cdd5839.mp3','MP3',0,'2024-02-15 14:19:53','2024-02-15 14:19:53'), + (27,28,'4 Love (Fresh Stuff Remix)',153,'','http://fileserver-app:30000/1da32ea1-48c5-4dfa-9be6-45ca05c869bc.mp3','MP3',0,'2024-02-15 14:20:10','2024-02-15 14:20:10'), + (28,29,'VBM',136,'','http://fileserver-app:30000/e90322dd-c3b4-450c-8d0c-dd0c0349be4b.mp3','MP3',0,'2024-02-15 14:20:21','2024-02-15 14:20:21'), + (28,29,'Pressure (Fectro Remix)',180,'','http://fileserver-app:30000/12f28048-69f8-46ac-bd9e-67f9c80c3071.mp3','MP3',0,'2024-02-15 14:23:22','2024-02-15 14:23:22'), + (29,30,'Nunca [Arcade Release]',151,'','http://fileserver-app:30000/3a12f3c5-0a1f-415c-8b21-fa45e4d630fd.mp3','MP3',0,'2024-02-15 14:23:37','2024-02-15 14:23:37'), + (28,29,'Moon Farewell',170,'','http://fileserver-app:30000/6a71e598-bd0a-41e3-b6ff-d44d04696969.mp3','MP3',0,'2024-02-15 14:25:21','2024-02-15 14:25:21'), + (28,29,'Marcheur',247,'','http://fileserver-app:30000/216d6118-5ce0-47d6-9998-be91e62e9978.mp3','MP3',0,'2024-02-15 14:25:38','2024-02-15 14:25:38'), + (28,29,'Gone',156,'','http://fileserver-app:30000/c035e419-4d74-4fa8-b399-ab1267edf062.mp3','MP3',0,'2024-02-15 14:25:51','2024-02-15 14:25:51'), + (30,31,'Madness',208,'','http://fileserver-app:30000/43d33875-49f6-4d26-8976-7f1721a6740c.mp3','MP3',0,'2024-02-15 14:26:17','2024-02-15 14:26:17'), + (31,32,'Hide Your Heart',164,'','http://fileserver-app:30000/b84987d7-d501-45c3-af21-d11e845ea13e.mp3','MP3',0,'2024-02-15 14:26:32','2024-02-15 14:26:32'); INSERT INTO music.musics (album_id,artist_id,title,play_time,lyrics,file_url,format_type,like_count,created_at,updated_at) VALUES - (32,33,'For You',138,'','http://localhost:30000/fac777d2-844e-4de8-bdad-e8f774d794cb.mp3','MP3',0,'2024-02-15 14:27:19','2024-02-15 14:27:19'), - (33,33,'Indecisive',214,'','http://localhost:30000/d278bade-d2c1-42b7-812b-ff8565b67440.mp3','MP3',0,'2024-02-15 14:27:31','2024-02-15 14:27:31'), - (34,34,'techno on my mind',177,'','http://localhost:30000/790018fa-3d6c-4b49-8f63-3d83ff7f3b7f.mp3','MP3',0,'2024-02-15 14:27:54','2024-02-15 14:27:54'), - (35,35,'Sold Dreams',92,'','http://localhost:30000/eaf37683-c134-4779-8a3e-6f49f5e4b6c5.mp3','MP3',0,'2024-02-15 14:28:01','2024-02-15 14:28:01'), - (36,36,'Don''t Understand',139,'','http://localhost:30000/ffac7961-3d51-438a-8694-cad4bac71ce7.mp3','MP3',0,'2024-02-15 14:28:20','2024-02-15 14:28:20'), - (37,37,'GO ₊˚✩⋆。°',152,'','http://localhost:30000/4aee5952-4077-443e-a751-2fe5c90898ab.mp3','MP3',0,'2024-02-15 14:28:51','2024-02-15 14:28:51'), - (37,37,'18_28 OUTBOUND',83,'','http://localhost:30000/3cf67fa0-35e0-4fc5-b818-0ac88fc07443.mp3','MP3',0,'2024-02-15 14:28:55','2024-02-15 14:28:55'), - (37,37,'BABY',158,'','http://localhost:30000/5af76370-eb19-4dee-ad41-8c5bed6d6ad4.mp3','MP3',0,'2024-02-15 14:29:01','2024-02-15 14:29:01'), - (38,38,'Gone For Good (w_ Alaina Cross)',182,'','http://localhost:30000/c29d8e06-eb17-4c3b-aa58-657f0499e7ac.mp3','MP3',0,'2024-02-15 14:29:16','2024-02-15 14:29:16'), - (39,39,'Sugar Plumbin''',128,'','http://localhost:30000/c605e524-a290-47dc-bd64-b83c9e0b8306.mp3','MP3',0,'2024-02-15 14:29:42','2024-02-15 14:29:42'); + (32,33,'For You',138,'','http://fileserver-app:30000/fac777d2-844e-4de8-bdad-e8f774d794cb.mp3','MP3',0,'2024-02-15 14:27:19','2024-02-15 14:27:19'), + (33,33,'Indecisive',214,'','http://fileserver-app:30000/d278bade-d2c1-42b7-812b-ff8565b67440.mp3','MP3',0,'2024-02-15 14:27:31','2024-02-15 14:27:31'), + (34,34,'techno on my mind',177,'','http://fileserver-app:30000/790018fa-3d6c-4b49-8f63-3d83ff7f3b7f.mp3','MP3',0,'2024-02-15 14:27:54','2024-02-15 14:27:54'), + (35,35,'Sold Dreams',92,'','http://fileserver-app:30000/eaf37683-c134-4779-8a3e-6f49f5e4b6c5.mp3','MP3',0,'2024-02-15 14:28:01','2024-02-15 14:28:01'), + (36,36,'Don''t Understand',139,'','http://fileserver-app:30000/ffac7961-3d51-438a-8694-cad4bac71ce7.mp3','MP3',0,'2024-02-15 14:28:20','2024-02-15 14:28:20'), + (37,37,'GO ₊˚✩⋆。°',152,'','http://fileserver-app:30000/4aee5952-4077-443e-a751-2fe5c90898ab.mp3','MP3',0,'2024-02-15 14:28:51','2024-02-15 14:28:51'), + (37,37,'18_28 OUTBOUND',83,'','http://fileserver-app:30000/3cf67fa0-35e0-4fc5-b818-0ac88fc07443.mp3','MP3',0,'2024-02-15 14:28:55','2024-02-15 14:28:55'), + (37,37,'BABY',158,'','http://fileserver-app:30000/5af76370-eb19-4dee-ad41-8c5bed6d6ad4.mp3','MP3',0,'2024-02-15 14:29:01','2024-02-15 14:29:01'), + (38,38,'Gone For Good (w_ Alaina Cross)',182,'','http://fileserver-app:30000/c29d8e06-eb17-4c3b-aa58-657f0499e7ac.mp3','MP3',0,'2024-02-15 14:29:16','2024-02-15 14:29:16'), + (39,39,'Sugar Plumbin''',128,'','http://fileserver-app:30000/c605e524-a290-47dc-bd64-b83c9e0b8306.mp3','MP3',0,'2024-02-15 14:29:42','2024-02-15 14:29:42'); INSERT INTO music.musics (album_id,artist_id,title,play_time,lyrics,file_url,format_type,like_count,created_at,updated_at) VALUES - (40,40,'ready!',129,'','http://localhost:30000/4c98ab48-73e3-4584-a8ef-3aaba887c5d7.mp3','MP3',0,'2024-02-15 14:29:54','2024-02-15 14:29:54'), - (41,40,'paradise',152,'','http://localhost:30000/22a142d1-4c0d-4286-8f8b-52457f545c94.mp3','MP3',0,'2024-02-15 14:30:01','2024-02-15 14:30:01'), - (42,41,'Morning Drift',235,'','http://localhost:30000/ef5b72a8-8705-45b1-9d6f-b08e88684af2.mp3','MP3',0,'2024-02-15 14:30:05','2024-02-15 14:30:05'), - (43,42,'Are You With Me',191,'','http://localhost:30000/da76af12-775b-4840-9f48-581930f8704c.mp3','MP3',0,'2024-02-15 14:30:22','2024-02-15 14:30:22'), - (44,43,'What''s The Problem_',149,'','http://localhost:30000/8e053d03-47dd-42f1-818a-c1d50c5bfb5b.mp3','MP3',0,'2024-02-15 14:30:27','2024-02-15 14:30:27'), - (44,43,'Stay The Night',167,'','http://localhost:30000/a0e9ec70-c91b-43de-b229-774412c692d9.mp3','MP3',0,'2024-02-15 14:30:32','2024-02-15 14:30:32'), - (45,44,'Cricket (we nice)',159,'','http://localhost:30000/ff68f669-76ee-4af4-8b7d-879e9e951327.mp3','MP3',0,'2024-02-15 14:30:37','2024-02-15 14:30:37'), - (46,45,'Dreamin''',155,'','http://localhost:30000/911d8d70-4159-49aa-836e-c6f5c7bf9dd1.mp3','MP3',0,'2024-02-15 14:30:42','2024-02-15 14:30:42'), - (47,46,'Sunrise',256,'','http://localhost:30000/63fa80cc-d3e0-4239-bb59-a37c42758896.mp3','MP3',0,'2024-02-15 14:30:50','2024-02-15 14:30:50'), - (48,47,'Time Of Our Lives',205,'','http://localhost:30000/ad88465b-e609-4303-8c8c-9a8496bbf53c.mp3','MP3',0,'2024-02-15 14:30:59','2024-02-15 14:30:59'); + (40,40,'ready!',129,'','http://fileserver-app:30000/4c98ab48-73e3-4584-a8ef-3aaba887c5d7.mp3','MP3',0,'2024-02-15 14:29:54','2024-02-15 14:29:54'), + (41,40,'paradise',152,'','http://fileserver-app:30000/22a142d1-4c0d-4286-8f8b-52457f545c94.mp3','MP3',0,'2024-02-15 14:30:01','2024-02-15 14:30:01'), + (42,41,'Morning Drift',235,'','http://fileserver-app:30000/ef5b72a8-8705-45b1-9d6f-b08e88684af2.mp3','MP3',0,'2024-02-15 14:30:05','2024-02-15 14:30:05'), + (43,42,'Are You With Me',191,'','http://fileserver-app:30000/da76af12-775b-4840-9f48-581930f8704c.mp3','MP3',0,'2024-02-15 14:30:22','2024-02-15 14:30:22'), + (44,43,'What''s The Problem_',149,'','http://fileserver-app:30000/8e053d03-47dd-42f1-818a-c1d50c5bfb5b.mp3','MP3',0,'2024-02-15 14:30:27','2024-02-15 14:30:27'), + (44,43,'Stay The Night',167,'','http://fileserver-app:30000/a0e9ec70-c91b-43de-b229-774412c692d9.mp3','MP3',0,'2024-02-15 14:30:32','2024-02-15 14:30:32'), + (45,44,'Cricket (we nice)',159,'','http://fileserver-app:30000/ff68f669-76ee-4af4-8b7d-879e9e951327.mp3','MP3',0,'2024-02-15 14:30:37','2024-02-15 14:30:37'), + (46,45,'Dreamin''',155,'','http://fileserver-app:30000/911d8d70-4159-49aa-836e-c6f5c7bf9dd1.mp3','MP3',0,'2024-02-15 14:30:42','2024-02-15 14:30:42'), + (47,46,'Sunrise',256,'','http://fileserver-app:30000/63fa80cc-d3e0-4239-bb59-a37c42758896.mp3','MP3',0,'2024-02-15 14:30:50','2024-02-15 14:30:50'), + (48,47,'Time Of Our Lives',205,'','http://fileserver-app:30000/ad88465b-e609-4303-8c8c-9a8496bbf53c.mp3','MP3',0,'2024-02-15 14:30:59','2024-02-15 14:30:59'); INSERT INTO music.musics (album_id,artist_id,title,play_time,lyrics,file_url,format_type,like_count,created_at,updated_at) VALUES - (49,48,'Pick Up The Pieces',172,'','http://localhost:30000/24451c45-490d-4ca0-85bc-ef8753250542.mp3','MP3',0,'2024-02-15 14:31:04','2024-02-15 14:31:04'), - (48,47,'Reason',181,'','http://localhost:30000/10f7a698-1413-4193-8b10-bb5f7f0b0a93.mp3','MP3',0,'2024-02-15 14:31:12','2024-02-15 14:31:12'), - (50,49,'Unbreakable',197,'','http://localhost:30000/aecdeac7-1c02-42c1-a6eb-7535bb4a9f93.mp3','MP3',0,'2024-02-15 14:31:28','2024-02-15 14:31:28'), - (51,50,'Never Have I Felt This (VIP)',192,'','http://localhost:30000/13f7a82f-e245-4a56-905a-47d173e5cf97.mp3','MP3',0,'2024-02-15 14:31:43','2024-02-15 14:31:43'), - (52,51,'Tidal Wave',141,'','http://localhost:30000/0165c9c5-ca45-4061-9c9d-0f1006ebf61d.mp3','MP3',0,'2024-02-15 14:31:55','2024-02-15 14:31:55'), - (53,52,'Commotion',254,'','http://localhost:30000/17836809-d546-48f8-b8cf-37f250715fa2.mp3','MP3',0,'2024-02-15 14:32:05','2024-02-15 14:32:05'), - (53,52,'Cereb',276,'','http://localhost:30000/93ca441a-bc72-4d82-8d81-1ad89bf7fc1c.mp3','MP3',0,'2024-02-15 14:32:12','2024-02-15 14:32:12'), - (54,53,'WHAT',225,'','http://localhost:30000/8650617c-1a46-46da-b9a5-67ee934a0fc5.mp3','MP3',0,'2024-02-15 14:32:28','2024-02-15 14:32:28'), - (55,54,'Thought It Was U',186,'','http://localhost:30000/43079a7a-226b-4b79-9ffe-cf348c80a3b1.mp3','MP3',0,'2024-02-15 14:32:42','2024-02-15 14:32:42'), - (56,55,'Never Let You Down',212,'','http://localhost:30000/6143c443-c481-48be-9aaa-d1f6d408b6cc.mp3','MP3',0,'2024-02-15 14:32:58','2024-02-15 14:32:58'); + (49,48,'Pick Up The Pieces',172,'','http://fileserver-app:30000/24451c45-490d-4ca0-85bc-ef8753250542.mp3','MP3',0,'2024-02-15 14:31:04','2024-02-15 14:31:04'), + (48,47,'Reason',181,'','http://fileserver-app:30000/10f7a698-1413-4193-8b10-bb5f7f0b0a93.mp3','MP3',0,'2024-02-15 14:31:12','2024-02-15 14:31:12'), + (50,49,'Unbreakable',197,'','http://fileserver-app:30000/aecdeac7-1c02-42c1-a6eb-7535bb4a9f93.mp3','MP3',0,'2024-02-15 14:31:28','2024-02-15 14:31:28'), + (51,50,'Never Have I Felt This (VIP)',192,'','http://fileserver-app:30000/13f7a82f-e245-4a56-905a-47d173e5cf97.mp3','MP3',0,'2024-02-15 14:31:43','2024-02-15 14:31:43'), + (52,51,'Tidal Wave',141,'','http://fileserver-app:30000/0165c9c5-ca45-4061-9c9d-0f1006ebf61d.mp3','MP3',0,'2024-02-15 14:31:55','2024-02-15 14:31:55'), + (53,52,'Commotion',254,'','http://fileserver-app:30000/17836809-d546-48f8-b8cf-37f250715fa2.mp3','MP3',0,'2024-02-15 14:32:05','2024-02-15 14:32:05'), + (53,52,'Cereb',276,'','http://fileserver-app:30000/93ca441a-bc72-4d82-8d81-1ad89bf7fc1c.mp3','MP3',0,'2024-02-15 14:32:12','2024-02-15 14:32:12'), + (54,53,'WHAT',225,'','http://fileserver-app:30000/8650617c-1a46-46da-b9a5-67ee934a0fc5.mp3','MP3',0,'2024-02-15 14:32:28','2024-02-15 14:32:28'), + (55,54,'Thought It Was U',186,'','http://fileserver-app:30000/43079a7a-226b-4b79-9ffe-cf348c80a3b1.mp3','MP3',0,'2024-02-15 14:32:42','2024-02-15 14:32:42'), + (56,55,'Never Let You Down',212,'','http://fileserver-app:30000/6143c443-c481-48be-9aaa-d1f6d408b6cc.mp3','MP3',0,'2024-02-15 14:32:58','2024-02-15 14:32:58'); INSERT INTO music.musics (album_id,artist_id,title,play_time,lyrics,file_url,format_type,like_count,created_at,updated_at) VALUES - (57,56,'Vienna',214,'','http://localhost:30000/042026a1-b82c-4888-8b99-60e3437f18f3.mp3','MP3',0,'2024-02-15 14:34:27','2024-02-15 14:34:27'), - (58,57,'All For You',214,'','http://localhost:30000/5db7d441-7b7c-4a93-87dd-75d6284a6569.mp3','MP3',0,'2024-02-15 14:34:39','2024-02-15 14:34:39'), - (59,58,'Now I''m Broken',215,'','http://localhost:30000/6a80e8a5-9318-4816-9e33-7f169939a0b4.mp3','MP3',0,'2024-02-15 14:34:51','2024-02-15 14:34:51'), - (60,58,'Love U',238,'','http://localhost:30000/16ea9e6b-c58d-486d-909b-5372505aeadf.mp3','MP3',0,'2024-02-15 14:35:06','2024-02-15 14:35:06'), - (60,58,'Heart My Heart',170,'','http://localhost:30000/b4f411f0-dda8-4f11-9c0b-9265ed5bba37.mp3','MP3',0,'2024-02-15 14:35:15','2024-02-15 14:35:15'), - (60,58,'Fighting Inside',152,'','http://localhost:30000/990c7645-07e7-46dd-9aba-78390370d905.mp3','MP3',0,'2024-02-15 14:35:23','2024-02-15 14:35:23'), - (60,58,'Baby Sweet',174,'','http://localhost:30000/59c17208-c84e-42ad-89ea-91453601bbae.mp3','MP3',0,'2024-02-15 14:35:29','2024-02-15 14:35:29'), - (61,59,'Over It',208,'','http://localhost:30000/eb0fbda4-9d47-4257-b77c-738283cb9b4a.mp3','MP3',0,'2024-02-15 14:35:34','2024-02-15 14:35:34'), - (62,60,'Nocturnal',185,'','http://localhost:30000/36222583-abc8-4879-a528-44ae213f0601.mp3','MP3',0,'2024-02-15 14:35:43','2024-02-15 14:35:43'), - (63,61,'Hold On Me',209,'','http://localhost:30000/a3124fd5-5e3a-40d8-af08-abde51ea3a19.mp3','MP3',0,'2024-02-15 14:35:51','2024-02-15 14:35:51'); + (57,56,'Vienna',214,'','http://fileserver-app:30000/042026a1-b82c-4888-8b99-60e3437f18f3.mp3','MP3',0,'2024-02-15 14:34:27','2024-02-15 14:34:27'), + (58,57,'All For You',214,'','http://fileserver-app:30000/5db7d441-7b7c-4a93-87dd-75d6284a6569.mp3','MP3',0,'2024-02-15 14:34:39','2024-02-15 14:34:39'), + (59,58,'Now I''m Broken',215,'','http://fileserver-app:30000/6a80e8a5-9318-4816-9e33-7f169939a0b4.mp3','MP3',0,'2024-02-15 14:34:51','2024-02-15 14:34:51'), + (60,58,'Love U',238,'','http://fileserver-app:30000/16ea9e6b-c58d-486d-909b-5372505aeadf.mp3','MP3',0,'2024-02-15 14:35:06','2024-02-15 14:35:06'), + (60,58,'Heart My Heart',170,'','http://fileserver-app:30000/b4f411f0-dda8-4f11-9c0b-9265ed5bba37.mp3','MP3',0,'2024-02-15 14:35:15','2024-02-15 14:35:15'), + (60,58,'Fighting Inside',152,'','http://fileserver-app:30000/990c7645-07e7-46dd-9aba-78390370d905.mp3','MP3',0,'2024-02-15 14:35:23','2024-02-15 14:35:23'), + (60,58,'Baby Sweet',174,'','http://fileserver-app:30000/59c17208-c84e-42ad-89ea-91453601bbae.mp3','MP3',0,'2024-02-15 14:35:29','2024-02-15 14:35:29'), + (61,59,'Over It',208,'','http://fileserver-app:30000/eb0fbda4-9d47-4257-b77c-738283cb9b4a.mp3','MP3',0,'2024-02-15 14:35:34','2024-02-15 14:35:34'), + (62,60,'Nocturnal',185,'','http://fileserver-app:30000/36222583-abc8-4879-a528-44ae213f0601.mp3','MP3',0,'2024-02-15 14:35:43','2024-02-15 14:35:43'), + (63,61,'Hold On Me',209,'','http://fileserver-app:30000/a3124fd5-5e3a-40d8-af08-abde51ea3a19.mp3','MP3',0,'2024-02-15 14:35:51','2024-02-15 14:35:51'); INSERT INTO music.musics (album_id,artist_id,title,play_time,lyrics,file_url,format_type,like_count,created_at,updated_at) VALUES - (19,20,'EVERYTIME I SEE YOUR FACE',257,'','http://localhost:30000/9ab65ba0-6223-4c9c-8b31-c071ff1276c5.mp3','MP3',0,'2024-02-15 14:35:57','2024-02-15 14:35:57'), - (64,62,'Royalty (Don Diablo Remix)',179,'','http://localhost:30000/2c678e8a-5790-4987-851d-6bea94769c53.mp3','MP3',0,'2024-02-15 14:36:02','2024-02-15 14:36:02'), - (65,63,'King Of The Hill',166,'','http://localhost:30000/40ae13bd-b032-4aed-a7dd-5a86ece2ca16.mp3','MP3',0,'2024-02-15 14:36:09','2024-02-15 14:36:09'), - (19,20,'Devil',242,'','http://localhost:30000/ad85ad59-5e8c-42b3-a0d8-7f4ec3b9c005.mp3','MP3',0,'2024-02-15 14:36:14','2024-02-15 14:36:14'), - (18,19,'Lies',237,'','http://localhost:30000/78815491-061f-42b7-bf03-75f64526a3c4.mp3','MP3',0,'2024-02-15 14:36:21','2024-02-15 14:36:21'), - (66,64,'Throne',200,'','http://localhost:30000/c23bc522-7690-4230-bc9e-470867be538e.mp3','MP3',0,'2024-02-15 14:41:02','2024-02-15 14:41:02'), - (67,65,'Memory Box',128,'','http://localhost:30000/53e1d318-539c-4242-b729-a54a08edf079.mp3','MP3',0,'2024-02-15 14:41:07','2024-02-15 14:41:07'), - (68,66,'Burning Wish',154,'','http://localhost:30000/65db1b24-732d-4b50-a50f-e50c504165cc.mp3','MP3',0,'2024-02-15 14:41:11','2024-02-15 14:41:11'), - (54,53,'Bass Face',177,'','http://localhost:30000/5b17654a-40a2-4f96-b7d9-b66d2b9e8993.mp3','MP3',0,'2024-02-15 14:41:16','2024-02-15 14:41:16'), - (69,67,'Alone',231,'','http://localhost:30000/fe82d063-6468-49a6-b106-b20b672e1bd4.mp3','MP3',0,'2024-02-15 14:41:25','2024-02-15 14:41:25'); + (19,20,'EVERYTIME I SEE YOUR FACE',257,'','http://fileserver-app:30000/9ab65ba0-6223-4c9c-8b31-c071ff1276c5.mp3','MP3',0,'2024-02-15 14:35:57','2024-02-15 14:35:57'), + (64,62,'Royalty (Don Diablo Remix)',179,'','http://fileserver-app:30000/2c678e8a-5790-4987-851d-6bea94769c53.mp3','MP3',0,'2024-02-15 14:36:02','2024-02-15 14:36:02'), + (65,63,'King Of The Hill',166,'','http://fileserver-app:30000/40ae13bd-b032-4aed-a7dd-5a86ece2ca16.mp3','MP3',0,'2024-02-15 14:36:09','2024-02-15 14:36:09'), + (19,20,'Devil',242,'','http://fileserver-app:30000/ad85ad59-5e8c-42b3-a0d8-7f4ec3b9c005.mp3','MP3',0,'2024-02-15 14:36:14','2024-02-15 14:36:14'), + (18,19,'Lies',237,'','http://fileserver-app:30000/78815491-061f-42b7-bf03-75f64526a3c4.mp3','MP3',0,'2024-02-15 14:36:21','2024-02-15 14:36:21'), + (66,64,'Throne',200,'','http://fileserver-app:30000/c23bc522-7690-4230-bc9e-470867be538e.mp3','MP3',0,'2024-02-15 14:41:02','2024-02-15 14:41:02'), + (67,65,'Memory Box',128,'','http://fileserver-app:30000/53e1d318-539c-4242-b729-a54a08edf079.mp3','MP3',0,'2024-02-15 14:41:07','2024-02-15 14:41:07'), + (68,66,'Burning Wish',154,'','http://fileserver-app:30000/65db1b24-732d-4b50-a50f-e50c504165cc.mp3','MP3',0,'2024-02-15 14:41:11','2024-02-15 14:41:11'), + (54,53,'Bass Face',177,'','http://fileserver-app:30000/5b17654a-40a2-4f96-b7d9-b66d2b9e8993.mp3','MP3',0,'2024-02-15 14:41:16','2024-02-15 14:41:16'), + (69,67,'Alone',231,'','http://fileserver-app:30000/fe82d063-6468-49a6-b106-b20b672e1bd4.mp3','MP3',0,'2024-02-15 14:41:25','2024-02-15 14:41:25'); From 6fa1fc36a2da420ecbbaea0e15dbcaaf1d273ca2 Mon Sep 17 00:00:00 2001 From: kor-Chipmunk Date: Wed, 21 Feb 2024 07:35:20 +0900 Subject: [PATCH 15/16] =?UTF-8?q?infra:=20storage=20docker-compose=20?= =?UTF-8?q?=EC=9D=B4=EB=AF=B8=EC=A7=80=20=EB=B9=8C=EB=93=9C=20=ED=8C=8C?= =?UTF-8?q?=EC=9D=BC=20=EC=9A=A9=EB=8F=84=EC=97=90=20=EB=A7=9E=EA=B2=8C=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/storage-server/docker-compose-hub.yml | 4 +--- src/backend/storage-server/docker-compose-local.yml | 4 +++- src/backend/storage-server/docker-compose.yml | 4 +++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/backend/storage-server/docker-compose-hub.yml b/src/backend/storage-server/docker-compose-hub.yml index d04d0abf..2fae9631 100644 --- a/src/backend/storage-server/docker-compose-hub.yml +++ b/src/backend/storage-server/docker-compose-hub.yml @@ -2,9 +2,7 @@ version: "3.9" services: fileserver-app: - build: - context: . - dockerfile: Dockerfile + image: smilegatewannabe/storage ports: - "30000:30000" restart: unless-stopped diff --git a/src/backend/storage-server/docker-compose-local.yml b/src/backend/storage-server/docker-compose-local.yml index 600caf3c..67d1e1f1 100644 --- a/src/backend/storage-server/docker-compose-local.yml +++ b/src/backend/storage-server/docker-compose-local.yml @@ -2,7 +2,9 @@ version: "3.9" services: fileserver-app: - image: smilegatewannabe/storage + build: + context: . + dockerfile: Dockerfile ports: - "30000:30000" restart: unless-stopped diff --git a/src/backend/storage-server/docker-compose.yml b/src/backend/storage-server/docker-compose.yml index 600caf3c..67d1e1f1 100644 --- a/src/backend/storage-server/docker-compose.yml +++ b/src/backend/storage-server/docker-compose.yml @@ -2,7 +2,9 @@ version: "3.9" services: fileserver-app: - image: smilegatewannabe/storage + build: + context: . + dockerfile: Dockerfile ports: - "30000:30000" restart: unless-stopped From c168ba111f02051a15e2f589c1c88eb32d29c90a Mon Sep 17 00:00:00 2001 From: kor-Chipmunk Date: Wed, 21 Feb 2024 07:50:15 +0900 Subject: [PATCH 16/16] feat: coverurl replace --- .../src/main/java/com/lalala/music/entity/AlbumEntity.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/backend/music-server/music-api/src/main/java/com/lalala/music/entity/AlbumEntity.java b/src/backend/music-server/music-api/src/main/java/com/lalala/music/entity/AlbumEntity.java index 926ba49e..ab5a40b5 100644 --- a/src/backend/music-server/music-api/src/main/java/com/lalala/music/entity/AlbumEntity.java +++ b/src/backend/music-server/music-api/src/main/java/com/lalala/music/entity/AlbumEntity.java @@ -57,4 +57,8 @@ public void update(String title, String coverUrl, AlbumType type, LocalDateTime this.type = type; this.releasedAt = releasedAt; } + + public String getCoverUrl() { + return coverUrl.replace("fileserver-app", "localhost"); + } }