From e1dceeb0b835e66b89d7a92d3544c2c2b9878ab2 Mon Sep 17 00:00:00 2001 From: pikaqiudeshujia Date: Sun, 28 Apr 2024 11:27:10 +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 --- .../java/com/luoo/music/pojo/ArtistAlbum.java | 105 ++++++++++++++++++ .../com/luoo/music/pojo/ArtistAlbumSong.java | 39 +++++++ 2 files changed, 144 insertions(+) create mode 100644 luoo_music/src/main/java/com/luoo/music/pojo/ArtistAlbum.java create mode 100644 luoo_music/src/main/java/com/luoo/music/pojo/ArtistAlbumSong.java diff --git a/luoo_music/src/main/java/com/luoo/music/pojo/ArtistAlbum.java b/luoo_music/src/main/java/com/luoo/music/pojo/ArtistAlbum.java new file mode 100644 index 0000000..19ade26 --- /dev/null +++ b/luoo_music/src/main/java/com/luoo/music/pojo/ArtistAlbum.java @@ -0,0 +1,105 @@ +package com.luoo.music.pojo; + +import io.swagger.annotations.ApiModelProperty; +import lombok.*; +import org.hibernate.annotations.DynamicInsert; +import org.hibernate.annotations.DynamicUpdate; +import org.springframework.data.annotation.CreatedDate; +import org.springframework.data.annotation.LastModifiedDate; +import org.springframework.data.jpa.domain.support.AuditingEntityListener; + +import javax.persistence.Entity; +import javax.persistence.EntityListeners; +import javax.persistence.Id; +import javax.persistence.Table; +import java.io.Serializable; +import java.util.Date; + +/** +* 专辑信息 +* @TableName tb_artist_album +*/ +@Data +@Entity +@NoArgsConstructor +@AllArgsConstructor +@EqualsAndHashCode +@Builder +@DynamicInsert +@DynamicUpdate +@Table(name = "tb_song_info") +@EntityListeners(AuditingEntityListener.class) +public class ArtistAlbum implements Serializable { + + + @Id + private String id; + /** + * 专辑名称 + */ + @ApiModelProperty("专辑名称") + private String name; + /** + * 专辑版本 + */ + @ApiModelProperty("专辑版本") + private Integer version; + /** + * 发行日期 + */ + @ApiModelProperty("发行日期") + private Date publishDate; + /** + * 主要风格 + */ + @ApiModelProperty("主要风格") + private String mainStyle; + /** + * 次要风格 + */ + @ApiModelProperty("次要风格") + private String subStyle; + /** + * 专辑条码 + */ + @ApiModelProperty("专辑条码") + private String barcode; + /** + * 专辑描述 + */ + @ApiModelProperty("专辑描述") + private String description; + /** + * 创建时间 + */ + @CreatedDate + @ApiModelProperty("创建时间") + private Date createTime; + /** + * 修改时间 + */ + @LastModifiedDate + @ApiModelProperty("修改时间") + private Date updateTime; + /** + * 音乐人id + */ + @ApiModelProperty("音乐人id") + private String artistId; + /** + * 音乐人昵称 + */ + @ApiModelProperty("音乐人昵称") + private String artistName; + /** + * 创建人 + */ + @ApiModelProperty("创建人") + private String createUser; + /** + * 修改人 + */ + @ApiModelProperty("修改人") + private String updateUser; + +} diff --git a/luoo_music/src/main/java/com/luoo/music/pojo/ArtistAlbumSong.java b/luoo_music/src/main/java/com/luoo/music/pojo/ArtistAlbumSong.java new file mode 100644 index 0000000..baaf7dd --- /dev/null +++ b/luoo_music/src/main/java/com/luoo/music/pojo/ArtistAlbumSong.java @@ -0,0 +1,39 @@ +package com.luoo.music.pojo; + +import io.swagger.annotations.ApiModelProperty; +import lombok.*; + +import javax.persistence.Entity; +import javax.persistence.Id; +import javax.persistence.Table; +import java.io.Serializable; + +/** + * 专辑-歌曲绑定表 + * + * @TableName tb_artist_album_song + */ + +@Data +@Entity +@NoArgsConstructor +@AllArgsConstructor +@EqualsAndHashCode +@Builder +@Table(name = "tb_song_info") +public class ArtistAlbumSong implements Serializable { + + @Id + private String id; + /** + * 专辑id + */ + @ApiModelProperty("专辑id") + private String albumId; + /** + * 歌曲id + */ + @ApiModelProperty("歌曲id") + private String songId; + +}