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; + +}