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 '语种';