|
@@ -1,16 +1,20 @@
|
|
|
package com.yonge.cooleshow.biz.dal.entity;
|
|
|
|
|
|
-import com.yonge.cooleshow.common.entity.BaseEntity;
|
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
+import com.yonge.cooleshow.biz.dal.enums.AuditEnum;
|
|
|
+import com.yonge.cooleshow.biz.dal.enums.ChargeTypeEnum;
|
|
|
+import com.yonge.cooleshow.biz.dal.enums.StateEnum;
|
|
|
+import com.yonge.cooleshow.biz.dal.enums.YesOrNoEnum;
|
|
|
import io.swagger.annotations.ApiModel;
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
-import org.apache.commons.lang3.builder.ToStringBuilder;
|
|
|
|
|
|
import javax.validation.constraints.NotBlank;
|
|
|
import javax.validation.constraints.NotNull;
|
|
|
import javax.validation.constraints.Size;
|
|
|
+import java.io.Serializable;
|
|
|
+import java.math.BigDecimal;
|
|
|
import java.util.Date;
|
|
|
|
|
|
/**
|
|
@@ -20,7 +24,7 @@ import java.util.Date;
|
|
|
* @version v1.0
|
|
|
**/
|
|
|
@ApiModel(value = "music_sheet-曲谱表")
|
|
|
-public class MusicSheet extends BaseEntity {
|
|
|
+public class MusicSheet implements Serializable {
|
|
|
|
|
|
@TableId(value = "id_", type = IdType.AUTO)
|
|
|
@ApiModelProperty(value = "主键id")
|
|
@@ -63,20 +67,25 @@ public class MusicSheet extends BaseEntity {
|
|
|
|
|
|
@TableField("can_evaluate_")
|
|
|
@ApiModelProperty(value = "是否可以评测(0:否;1:是)")
|
|
|
- private Integer canEvaluate; //是否可以评测(0:否;1:是)
|
|
|
+ private YesOrNoEnum canEvaluate; //是否可以评测(0:否;1:是)
|
|
|
|
|
|
@TableField("show_fingering_")
|
|
|
@ApiModelProperty(value = "是否展示指法(0:否;1:是)")
|
|
|
- private Integer showFingering; //是否展示指法(0:否;1:是)
|
|
|
+ private YesOrNoEnum showFingering; //是否展示指法(0:否;1:是)
|
|
|
|
|
|
@NotNull(message = "收费类型不能为空!")
|
|
|
@TableField("charge_type_")
|
|
|
@ApiModelProperty(value = "收费类型(0:免费;1:会员;2:单曲收费)")
|
|
|
- private Integer chargeType; //收费类型(0:免费;1:会员;2:单曲收费)
|
|
|
+ private ChargeTypeEnum chargeType; //收费类型(0:免费;1:会员;2:单曲收费)
|
|
|
+
|
|
|
+
|
|
|
+ @TableField("state_")
|
|
|
+ @ApiModelProperty(value = "曲目状态(0:停用,1:启用)")
|
|
|
+ private StateEnum state;
|
|
|
|
|
|
@TableField("audit_status_")
|
|
|
@ApiModelProperty(value = "审核状态(0:待审核;1:通过;2:未通过)")
|
|
|
- private Integer auditStatus; //审核状态(0:待审核;1:通过;2:未通过)
|
|
|
+ private AuditEnum auditStatus; //审核状态(0:待审核;1:通过;2:未通过)
|
|
|
|
|
|
@TableField("sort_number_")
|
|
|
@ApiModelProperty(value = "排序号")
|
|
@@ -84,11 +93,11 @@ public class MusicSheet extends BaseEntity {
|
|
|
|
|
|
@TableField("top_flag_")
|
|
|
@ApiModelProperty(value = "是否置顶(0:否;1:是)")
|
|
|
- private Integer topFlag; //是否置顶(0:否;1:是)
|
|
|
+ private YesOrNoEnum topFlag; //是否置顶(0:否;1:是)
|
|
|
|
|
|
@TableField("hot_flag_")
|
|
|
@ApiModelProperty(value = "是否热门曲谱(0:否;1:是)")
|
|
|
- private Integer hotFlag; //是否热门曲谱(0:否;1:是)
|
|
|
+ private YesOrNoEnum hotFlag; //是否热门曲谱(0:否;1:是)
|
|
|
|
|
|
@TableField("music_price_")
|
|
|
@ApiModelProperty(value = "曲谱价格")
|
|
@@ -106,7 +115,7 @@ public class MusicSheet extends BaseEntity {
|
|
|
|
|
|
@TableField("has_beat_")
|
|
|
@ApiModelProperty(value = "是否自带节拍器(0:否;1:是)")
|
|
|
- private Integer hasBeat; //是否自带节拍器(0:否;1:是)
|
|
|
+ private YesOrNoEnum hasBeat; //是否自带节拍器(0:否;1:是)
|
|
|
|
|
|
@TableField("create_time_")
|
|
|
@ApiModelProperty(value = "创建时间")
|
|
@@ -128,227 +137,204 @@ public class MusicSheet extends BaseEntity {
|
|
|
@ApiModelProperty(value = "备注")
|
|
|
private String remark; //备注,填写未通过审核的原因
|
|
|
|
|
|
-
|
|
|
- public MusicSheet setId(Long id) {
|
|
|
- this.id = id;
|
|
|
- return this;
|
|
|
- }
|
|
|
-
|
|
|
public Long getId() {
|
|
|
- return this.id;
|
|
|
+ return id;
|
|
|
}
|
|
|
|
|
|
- public MusicSheet setMusicSheetName(String musicSheetName) {
|
|
|
- this.musicSheetName = musicSheetName;
|
|
|
- return this;
|
|
|
+ public void setId(Long id) {
|
|
|
+ this.id = id;
|
|
|
}
|
|
|
|
|
|
public String getMusicSheetName() {
|
|
|
- return this.musicSheetName;
|
|
|
+ return musicSheetName;
|
|
|
}
|
|
|
|
|
|
- public MusicSheet setUserId(Long userId) {
|
|
|
- this.userId = userId;
|
|
|
- return this;
|
|
|
+ public void setMusicSheetName(String musicSheetName) {
|
|
|
+ this.musicSheetName = musicSheetName;
|
|
|
}
|
|
|
|
|
|
public Long getUserId() {
|
|
|
- return this.userId;
|
|
|
+ return userId;
|
|
|
}
|
|
|
|
|
|
- public MusicSheet setComposer(String composer) {
|
|
|
- this.composer = composer;
|
|
|
- return this;
|
|
|
+ public void setUserId(Long userId) {
|
|
|
+ this.userId = userId;
|
|
|
}
|
|
|
|
|
|
public String getComposer() {
|
|
|
- return this.composer;
|
|
|
+ return composer;
|
|
|
}
|
|
|
|
|
|
- public MusicSheet setMusicSubject(String musicSubject) {
|
|
|
- this.musicSubject = musicSubject;
|
|
|
- return this;
|
|
|
+ public void setComposer(String composer) {
|
|
|
+ this.composer = composer;
|
|
|
}
|
|
|
|
|
|
public String getMusicSubject() {
|
|
|
- return this.musicSubject;
|
|
|
+ return musicSubject;
|
|
|
}
|
|
|
|
|
|
- public MusicSheet setAudioType(String audioType) {
|
|
|
- this.audioType = audioType;
|
|
|
- return this;
|
|
|
+ public void setMusicSubject(String musicSubject) {
|
|
|
+ this.musicSubject = musicSubject;
|
|
|
}
|
|
|
|
|
|
public String getAudioType() {
|
|
|
- return this.audioType;
|
|
|
+ return audioType;
|
|
|
}
|
|
|
|
|
|
- public MusicSheet setMusicTag(String musicTag) {
|
|
|
- this.musicTag = musicTag;
|
|
|
- return this;
|
|
|
+ public void setAudioType(String audioType) {
|
|
|
+ this.audioType = audioType;
|
|
|
}
|
|
|
|
|
|
public String getMusicTag() {
|
|
|
- return this.musicTag;
|
|
|
+ return musicTag;
|
|
|
}
|
|
|
|
|
|
- public MusicSheet setPlaySpeed(Integer playSpeed) {
|
|
|
- this.playSpeed = playSpeed;
|
|
|
- return this;
|
|
|
+ public void setMusicTag(String musicTag) {
|
|
|
+ this.musicTag = musicTag;
|
|
|
}
|
|
|
|
|
|
public Integer getPlaySpeed() {
|
|
|
- return this.playSpeed;
|
|
|
+ return playSpeed;
|
|
|
}
|
|
|
|
|
|
- public MusicSheet setCanEvaluate(Integer canEvaluate) {
|
|
|
- this.canEvaluate = canEvaluate;
|
|
|
- return this;
|
|
|
+ public void setPlaySpeed(Integer playSpeed) {
|
|
|
+ this.playSpeed = playSpeed;
|
|
|
}
|
|
|
|
|
|
- public Integer getCanEvaluate() {
|
|
|
- return this.canEvaluate;
|
|
|
+ public YesOrNoEnum getCanEvaluate() {
|
|
|
+ return canEvaluate;
|
|
|
}
|
|
|
|
|
|
- public MusicSheet setShowFingering(Integer showFingering) {
|
|
|
- this.showFingering = showFingering;
|
|
|
- return this;
|
|
|
+ public void setCanEvaluate(YesOrNoEnum canEvaluate) {
|
|
|
+ this.canEvaluate = canEvaluate;
|
|
|
}
|
|
|
|
|
|
- public Integer getShowFingering() {
|
|
|
- return this.showFingering;
|
|
|
+ public YesOrNoEnum getShowFingering() {
|
|
|
+ return showFingering;
|
|
|
}
|
|
|
|
|
|
- public MusicSheet setChargeType(Integer chargeType) {
|
|
|
- this.chargeType = chargeType;
|
|
|
- return this;
|
|
|
+ public void setShowFingering(YesOrNoEnum showFingering) {
|
|
|
+ this.showFingering = showFingering;
|
|
|
}
|
|
|
|
|
|
- public Integer getChargeType() {
|
|
|
- return this.chargeType;
|
|
|
+ public ChargeTypeEnum getChargeType() {
|
|
|
+ return chargeType;
|
|
|
}
|
|
|
|
|
|
- public MusicSheet setAuditStatus(Integer auditStatus) {
|
|
|
- this.auditStatus = auditStatus;
|
|
|
- return this;
|
|
|
+ public void setChargeType(ChargeTypeEnum chargeType) {
|
|
|
+ this.chargeType = chargeType;
|
|
|
}
|
|
|
|
|
|
- public Integer getAuditStatus() {
|
|
|
- return this.auditStatus;
|
|
|
+ public StateEnum getState() {
|
|
|
+ return state;
|
|
|
}
|
|
|
|
|
|
- public MusicSheet setSortNumber(Integer sortNumber) {
|
|
|
- this.sortNumber = sortNumber;
|
|
|
- return this;
|
|
|
+ public void setState(StateEnum state) {
|
|
|
+ this.state = state;
|
|
|
+ }
|
|
|
+
|
|
|
+ public AuditEnum getAuditStatus() {
|
|
|
+ return auditStatus;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setAuditStatus(AuditEnum auditStatus) {
|
|
|
+ this.auditStatus = auditStatus;
|
|
|
}
|
|
|
|
|
|
public Integer getSortNumber() {
|
|
|
- return this.sortNumber;
|
|
|
+ return sortNumber;
|
|
|
}
|
|
|
|
|
|
- public MusicSheet setTopFlag(Integer topFlag) {
|
|
|
- this.topFlag = topFlag;
|
|
|
- return this;
|
|
|
+ public void setSortNumber(Integer sortNumber) {
|
|
|
+ this.sortNumber = sortNumber;
|
|
|
}
|
|
|
|
|
|
- public Integer getTopFlag() {
|
|
|
- return this.topFlag;
|
|
|
+ public YesOrNoEnum getTopFlag() {
|
|
|
+ return topFlag;
|
|
|
}
|
|
|
|
|
|
- public MusicSheet setHotFlag(Integer hotFlag) {
|
|
|
- this.hotFlag = hotFlag;
|
|
|
- return this;
|
|
|
+ public void setTopFlag(YesOrNoEnum topFlag) {
|
|
|
+ this.topFlag = topFlag;
|
|
|
}
|
|
|
|
|
|
- public Integer getHotFlag() {
|
|
|
- return this.hotFlag;
|
|
|
+ public YesOrNoEnum getHotFlag() {
|
|
|
+ return hotFlag;
|
|
|
}
|
|
|
|
|
|
- public MusicSheet setMusicPrice(java.math.BigDecimal musicPrice) {
|
|
|
- this.musicPrice = musicPrice;
|
|
|
- return this;
|
|
|
+ public void setHotFlag(YesOrNoEnum hotFlag) {
|
|
|
+ this.hotFlag = hotFlag;
|
|
|
}
|
|
|
|
|
|
- public java.math.BigDecimal getMusicPrice() {
|
|
|
- return this.musicPrice;
|
|
|
+ public BigDecimal getMusicPrice() {
|
|
|
+ return musicPrice;
|
|
|
}
|
|
|
|
|
|
- public MusicSheet setAudioFileUrl(String audioFileUrl) {
|
|
|
- this.audioFileUrl = audioFileUrl;
|
|
|
- return this;
|
|
|
+ public void setMusicPrice(BigDecimal musicPrice) {
|
|
|
+ this.musicPrice = musicPrice;
|
|
|
}
|
|
|
|
|
|
public String getAudioFileUrl() {
|
|
|
- return this.audioFileUrl;
|
|
|
+ return audioFileUrl;
|
|
|
}
|
|
|
|
|
|
- public MusicSheet setXmlFileUrl(String xmlFileUrl) {
|
|
|
- this.xmlFileUrl = xmlFileUrl;
|
|
|
- return this;
|
|
|
+ public void setAudioFileUrl(String audioFileUrl) {
|
|
|
+ this.audioFileUrl = audioFileUrl;
|
|
|
}
|
|
|
|
|
|
public String getXmlFileUrl() {
|
|
|
- return this.xmlFileUrl;
|
|
|
+ return xmlFileUrl;
|
|
|
}
|
|
|
|
|
|
- public MusicSheet setHasBeat(Integer hasBeat) {
|
|
|
- this.hasBeat = hasBeat;
|
|
|
- return this;
|
|
|
+ public void setXmlFileUrl(String xmlFileUrl) {
|
|
|
+ this.xmlFileUrl = xmlFileUrl;
|
|
|
}
|
|
|
|
|
|
- public Integer getHasBeat() {
|
|
|
- return this.hasBeat;
|
|
|
+ public YesOrNoEnum getHasBeat() {
|
|
|
+ return hasBeat;
|
|
|
}
|
|
|
|
|
|
- public MusicSheet setCreateTime(java.util.Date createTime) {
|
|
|
- this.createTime = createTime;
|
|
|
- return this;
|
|
|
+ public void setHasBeat(YesOrNoEnum hasBeat) {
|
|
|
+ this.hasBeat = hasBeat;
|
|
|
}
|
|
|
|
|
|
- public java.util.Date getCreateTime() {
|
|
|
- return this.createTime;
|
|
|
+ public Date getCreateTime() {
|
|
|
+ return createTime;
|
|
|
}
|
|
|
|
|
|
- public MusicSheet setCreateBy(Long createBy) {
|
|
|
- this.createBy = createBy;
|
|
|
- return this;
|
|
|
+ public void setCreateTime(Date createTime) {
|
|
|
+ this.createTime = createTime;
|
|
|
}
|
|
|
|
|
|
public Long getCreateBy() {
|
|
|
- return this.createBy;
|
|
|
+ return createBy;
|
|
|
}
|
|
|
|
|
|
- public MusicSheet setUpdateTime(java.util.Date updateTime) {
|
|
|
- this.updateTime = updateTime;
|
|
|
- return this;
|
|
|
+ public void setCreateBy(Long createBy) {
|
|
|
+ this.createBy = createBy;
|
|
|
}
|
|
|
|
|
|
- public java.util.Date getUpdateTime() {
|
|
|
- return this.updateTime;
|
|
|
+ public Date getUpdateTime() {
|
|
|
+ return updateTime;
|
|
|
}
|
|
|
|
|
|
- public MusicSheet setUpdateBy(Long updateBy) {
|
|
|
- this.updateBy = updateBy;
|
|
|
- return this;
|
|
|
+ public void setUpdateTime(Date updateTime) {
|
|
|
+ this.updateTime = updateTime;
|
|
|
}
|
|
|
|
|
|
public Long getUpdateBy() {
|
|
|
- return this.updateBy;
|
|
|
+ return updateBy;
|
|
|
}
|
|
|
|
|
|
- public MusicSheet setRemark(String remark) {
|
|
|
- this.remark = remark;
|
|
|
- return this;
|
|
|
+ public void setUpdateBy(Long updateBy) {
|
|
|
+ this.updateBy = updateBy;
|
|
|
}
|
|
|
|
|
|
public String getRemark() {
|
|
|
- return this.remark;
|
|
|
+ return remark;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- @Override
|
|
|
- public String toString() {
|
|
|
- return ToStringBuilder.reflectionToString(this);
|
|
|
- }
|
|
|
+ public void setRemark(String remark) {
|
|
|
+ this.remark = remark;
|
|
|
+ }
|
|
|
|
|
|
}
|