release-新增专辑表单

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

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

@ -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;
}
Loading…
Cancel
Save