From 1b960433148eda2e822cd510d71cfa25a76c89dc Mon Sep 17 00:00:00 2001 From: pikaqiudeshujia Date: Sun, 28 Apr 2024 11:26:48 +0800 Subject: [PATCH] =?UTF-8?q?release-=E6=96=B0=E5=A2=9E=E4=B8=93=E8=BE=91?= =?UTF-8?q?=E8=A1=A8=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/luoo/music/dao/ArtistAlbumDao.java | 16 +++++++ .../luoo/music/dao/ArtistAlbumSongDao.java | 16 +++++++ .../java/com/luoo/music/pojo/SongInfo.java | 18 +++++++- .../src/main/resources/sql/20240428.sql | 43 +++++++++++++++++++ 4 files changed, 92 insertions(+), 1 deletion(-) create mode 100644 luoo_music/src/main/java/com/luoo/music/dao/ArtistAlbumDao.java create mode 100644 luoo_music/src/main/java/com/luoo/music/dao/ArtistAlbumSongDao.java create mode 100644 luoo_music/src/main/resources/sql/20240428.sql diff --git a/luoo_music/src/main/java/com/luoo/music/dao/ArtistAlbumDao.java b/luoo_music/src/main/java/com/luoo/music/dao/ArtistAlbumDao.java new file mode 100644 index 0000000..4355156 --- /dev/null +++ b/luoo_music/src/main/java/com/luoo/music/dao/ArtistAlbumDao.java @@ -0,0 +1,16 @@ +package com.luoo.music.dao; + +import com.luoo.music.pojo.ArtistAlbum; +import org.springframework.data.jpa.repository.JpaRepository; +import org.springframework.data.jpa.repository.JpaSpecificationExecutor; + +/** + * @Author: yawei.huang + * @Package: com.luoo.music.dao + * @Project: luoo_parent + * @Date: 2024/4/28 11:24 + * @Filename: ArtistAlbum + * @Describe: + */ +public interface ArtistAlbumDao extends JpaRepository, JpaSpecificationExecutor { +} diff --git a/luoo_music/src/main/java/com/luoo/music/dao/ArtistAlbumSongDao.java b/luoo_music/src/main/java/com/luoo/music/dao/ArtistAlbumSongDao.java new file mode 100644 index 0000000..e691456 --- /dev/null +++ b/luoo_music/src/main/java/com/luoo/music/dao/ArtistAlbumSongDao.java @@ -0,0 +1,16 @@ +package com.luoo.music.dao; + +import com.luoo.music.pojo.ArtistAlbumSong; +import org.springframework.data.jpa.repository.JpaRepository; +import org.springframework.data.jpa.repository.JpaSpecificationExecutor; + +/** + * @Author: yawei.huang + * @Package: com.luoo.music.dao + * @Project: luoo_parent + * @Date: 2024/4/28 11:26 + * @Filename: ArtistAlbumSongDao + * @Describe: + */ +public interface ArtistAlbumSongDao extends JpaRepository, JpaSpecificationExecutor { +} diff --git a/luoo_music/src/main/java/com/luoo/music/pojo/SongInfo.java b/luoo_music/src/main/java/com/luoo/music/pojo/SongInfo.java index f632428..d96c0f9 100644 --- a/luoo_music/src/main/java/com/luoo/music/pojo/SongInfo.java +++ b/luoo_music/src/main/java/com/luoo/music/pojo/SongInfo.java @@ -1,7 +1,8 @@ package com.luoo.music.pojo; -import lombok.Data; +import io.swagger.annotations.ApiModelProperty; +import lombok.*; import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicUpdate; import org.springframework.data.annotation.CreatedDate; @@ -93,4 +94,19 @@ public class SongInfo implements Serializable { * 歌词路径 */ private String lyricUrl; + + @ApiModelProperty("作词") + private String lyricName; + + @ApiModelProperty("作曲") + private String compositionName; + + @ApiModelProperty("编曲") + private String arrangementName; + + @ApiModelProperty("mv") + private String mvUrl; + + @ApiModelProperty("语种") + private Integer language; } diff --git a/luoo_music/src/main/resources/sql/20240428.sql b/luoo_music/src/main/resources/sql/20240428.sql new file mode 100644 index 0000000..b574e12 --- /dev/null +++ b/luoo_music/src/main/resources/sql/20240428.sql @@ -0,0 +1,43 @@ +create table tb_artist_album +( + id varchar(20) not null + primary key, + name varchar(255) null comment '专辑名称', + version int null comment '专辑版本', + publish_date date null comment '发行日期', + main_style varchar(500) null comment '主要风格', + sub_style varchar(500) null comment '次要风格', + barcode varchar(255) null comment '专辑条码', + description longtext null comment '专辑描述', + create_time datetime null comment '创建时间', + update_time datetime null comment '修改时间', + artist_id varchar(20) null comment '音乐人id', + artist_name varchar(255) null comment '音乐人昵称', + create_user varchar(20) null comment '创建人', + update_user varchar(20) null comment '修改人' +) + comment '专辑信息'; + +create table tb_artist_album_song +( + id varchar(20) not null + primary key, + album_id varchar(20) null comment '专辑id', + song_id varchar(20) null comment '歌曲id' +) + comment '专辑-歌曲绑定表'; + +alter table tb_song_info + add lyric_name varchar(50) null comment '作词'; + +alter table tb_song_info + add composition_name varchar(50) null comment '作曲'; + +alter table tb_song_info + add arrangement_name varchar(50) null comment '编曲'; + +alter table tb_song_info + add mv_url varchar(50) null comment 'mv'; + +alter table tb_song_info + add language int null comment '语种';