release-新增专辑表单

release-2024-08-08
pikaqiudeshujia 7 months ago
parent 1257b77eb1
commit 1b96043314

@ -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<ArtistAlbum,String>, JpaSpecificationExecutor<ArtistAlbum> {
}

@ -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<ArtistAlbumSong, String>, JpaSpecificationExecutor<ArtistAlbumSong> {
}

@ -1,7 +1,8 @@
package com.luoo.music.pojo; package com.luoo.music.pojo;
import lombok.Data; import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate; import org.hibernate.annotations.DynamicUpdate;
import org.springframework.data.annotation.CreatedDate; import org.springframework.data.annotation.CreatedDate;
@ -93,4 +94,19 @@ public class SongInfo implements Serializable {
* *
*/ */
private String lyricUrl; private String lyricUrl;
@ApiModelProperty("作词")
private String lyricName;
@ApiModelProperty("作曲")
private String compositionName;
@ApiModelProperty("编曲")
private String arrangementName;
@ApiModelProperty("mv")
private String mvUrl;
@ApiModelProperty("语种")
private Integer language;
} }

@ -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 '语种';
Loading…
Cancel
Save