架构初始化
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
package com.ruoyi.common.constant;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.springframework.beans.factory.InitializingBean;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.stereotype.Component;
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@Configuration
|
||||
@Component
|
||||
public class AliKeyConfig implements InitializingBean {
|
||||
|
||||
@Value("${ali.accessKeyId}")
|
||||
public String accessKeyId;
|
||||
|
||||
@Value("${ali.accessKeySecret}")
|
||||
public String accessKeySecret;
|
||||
|
||||
// 终端ID
|
||||
public static String ACCESS_KEY_ID;
|
||||
|
||||
public static String ACCESS_KEY_SECRET;
|
||||
|
||||
@Override
|
||||
public void afterPropertiesSet() {
|
||||
ACCESS_KEY_ID = this.accessKeyId;
|
||||
ACCESS_KEY_SECRET = this.accessKeySecret;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
package com.ruoyi.common.core.domain.entity;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class BannerInfo {
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 地址
|
||||
*/
|
||||
private String bannerAddr;
|
||||
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
private Integer sort;
|
||||
|
||||
/**
|
||||
* 跳转链接
|
||||
*/
|
||||
private String jumpUrl;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date updateTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,114 @@
|
||||
package com.ruoyi.common.core.domain.entity;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】对象 category_info
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-07-15
|
||||
*/
|
||||
public class CategoryInfo extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** id */
|
||||
private String id;
|
||||
|
||||
/** 类别id */
|
||||
@Excel(name = "类别id")
|
||||
private Long categoryId;
|
||||
|
||||
/** 类别名称 */
|
||||
@Excel(name = "类别名称")
|
||||
private String name;
|
||||
|
||||
/** 1 删除 */
|
||||
@Excel(name = "1 删除")
|
||||
private Long isDel;
|
||||
|
||||
/** 创建人 */
|
||||
@Excel(name = "创建人")
|
||||
private String creator;
|
||||
|
||||
/** 修改人 */
|
||||
@Excel(name = "修改人")
|
||||
private String modify;
|
||||
|
||||
public void setId(String id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setCategoryId(Long categoryId)
|
||||
{
|
||||
this.categoryId = categoryId;
|
||||
}
|
||||
|
||||
public Long getCategoryId()
|
||||
{
|
||||
return categoryId;
|
||||
}
|
||||
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setIsDel(Long isDel)
|
||||
{
|
||||
this.isDel = isDel;
|
||||
}
|
||||
|
||||
public Long getIsDel()
|
||||
{
|
||||
return isDel;
|
||||
}
|
||||
|
||||
public void setCreator(String creator)
|
||||
{
|
||||
this.creator = creator;
|
||||
}
|
||||
|
||||
public String getCreator()
|
||||
{
|
||||
return creator;
|
||||
}
|
||||
|
||||
public void setModify(String modify)
|
||||
{
|
||||
this.modify = modify;
|
||||
}
|
||||
|
||||
public String getModify()
|
||||
{
|
||||
return modify;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("categoryId", getCategoryId())
|
||||
.append("name", getName())
|
||||
.append("isDel", getIsDel())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("creator", getCreator())
|
||||
.append("modify", getModify())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
package com.ruoyi.common.core.domain.entity;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】对象 label_info
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-07-15
|
||||
*/
|
||||
public class LabelInfo extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** id */
|
||||
private Long id;
|
||||
|
||||
/** 标签名字 */
|
||||
@Excel(name = "标签名字")
|
||||
private String labelName;
|
||||
|
||||
/** 创建人 */
|
||||
@Excel(name = "创建人")
|
||||
private String creator;
|
||||
|
||||
/** 修改人 */
|
||||
@Excel(name = "修改人")
|
||||
private String modify;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setLabelName(String labelName)
|
||||
{
|
||||
this.labelName = labelName;
|
||||
}
|
||||
|
||||
public String getLabelName()
|
||||
{
|
||||
return labelName;
|
||||
}
|
||||
|
||||
public void setCreator(String creator)
|
||||
{
|
||||
this.creator = creator;
|
||||
}
|
||||
|
||||
public String getCreator()
|
||||
{
|
||||
return creator;
|
||||
}
|
||||
|
||||
public void setModify(String modify)
|
||||
{
|
||||
this.modify = modify;
|
||||
}
|
||||
|
||||
public String getModify()
|
||||
{
|
||||
return modify;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("labelName", getLabelName())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("creator", getCreator())
|
||||
.append("modify", getModify())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,219 @@
|
||||
package com.ruoyi.common.core.domain.entity;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 音乐信息对象 music_info
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-07-15
|
||||
*/
|
||||
public class MusicInfo extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** id */
|
||||
private String id;
|
||||
|
||||
/** 音乐id */
|
||||
@Excel(name = "音乐id")
|
||||
private Long musicId;
|
||||
|
||||
/** 名字 */
|
||||
@Excel(name = "名字")
|
||||
private String name;
|
||||
|
||||
/** 作者 */
|
||||
@Excel(name = "作者")
|
||||
private String author;
|
||||
|
||||
/** 1 vip 2 不 */
|
||||
@Excel(name = "1 vip 2 不")
|
||||
private Long vip;
|
||||
|
||||
/** 1 商家 2 下架 */
|
||||
@Excel(name = "1 商家 2 下架")
|
||||
private Long shelf;
|
||||
|
||||
/** 封面 */
|
||||
@Excel(name = "封面")
|
||||
private String imgAddr;
|
||||
|
||||
/** 音乐地址 */
|
||||
@Excel(name = "音乐地址")
|
||||
private String musicAddr;
|
||||
|
||||
/** 音乐类型 ordinary 混音mixing */
|
||||
@Excel(name = "音乐类型 ordinary 混音mixing")
|
||||
private String musicType;
|
||||
|
||||
/** 创建人 */
|
||||
@Excel(name = "创建人")
|
||||
private String creator;
|
||||
|
||||
/** 修改人 */
|
||||
@Excel(name = "修改人")
|
||||
private String modify;
|
||||
|
||||
/** 1 删除 */
|
||||
@Excel(name = "1 删除")
|
||||
private Long isDel;
|
||||
|
||||
/** 标签 */
|
||||
@Excel(name = "标签")
|
||||
private String label;
|
||||
|
||||
public void setId(String id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setMusicId(Long musicId)
|
||||
{
|
||||
this.musicId = musicId;
|
||||
}
|
||||
|
||||
public Long getMusicId()
|
||||
{
|
||||
return musicId;
|
||||
}
|
||||
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setAuthor(String author)
|
||||
{
|
||||
this.author = author;
|
||||
}
|
||||
|
||||
public String getAuthor()
|
||||
{
|
||||
return author;
|
||||
}
|
||||
|
||||
public void setVip(Long vip)
|
||||
{
|
||||
this.vip = vip;
|
||||
}
|
||||
|
||||
public Long getVip()
|
||||
{
|
||||
return vip;
|
||||
}
|
||||
|
||||
public void setShelf(Long shelf)
|
||||
{
|
||||
this.shelf = shelf;
|
||||
}
|
||||
|
||||
public Long getShelf()
|
||||
{
|
||||
return shelf;
|
||||
}
|
||||
|
||||
public void setImgAddr(String imgAddr)
|
||||
{
|
||||
this.imgAddr = imgAddr;
|
||||
}
|
||||
|
||||
public String getImgAddr()
|
||||
{
|
||||
return imgAddr;
|
||||
}
|
||||
|
||||
public void setMusicAddr(String musicAddr)
|
||||
{
|
||||
this.musicAddr = musicAddr;
|
||||
}
|
||||
|
||||
public String getMusicAddr()
|
||||
{
|
||||
return musicAddr;
|
||||
}
|
||||
|
||||
public void setMusicType(String musicType)
|
||||
{
|
||||
this.musicType = musicType;
|
||||
}
|
||||
|
||||
public String getMusicType()
|
||||
{
|
||||
return musicType;
|
||||
}
|
||||
|
||||
public void setCreator(String creator)
|
||||
{
|
||||
this.creator = creator;
|
||||
}
|
||||
|
||||
public String getCreator()
|
||||
{
|
||||
return creator;
|
||||
}
|
||||
|
||||
public void setModify(String modify)
|
||||
{
|
||||
this.modify = modify;
|
||||
}
|
||||
|
||||
public String getModify()
|
||||
{
|
||||
return modify;
|
||||
}
|
||||
|
||||
public void setIsDel(Long isDel)
|
||||
{
|
||||
this.isDel = isDel;
|
||||
}
|
||||
|
||||
public Long getIsDel()
|
||||
{
|
||||
return isDel;
|
||||
}
|
||||
|
||||
public void setLabel(String label)
|
||||
{
|
||||
this.label = label;
|
||||
}
|
||||
|
||||
public String getLabel()
|
||||
{
|
||||
return label;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("musicId", getMusicId())
|
||||
.append("name", getName())
|
||||
.append("author", getAuthor())
|
||||
.append("vip", getVip())
|
||||
.append("shelf", getShelf())
|
||||
.append("imgAddr", getImgAddr())
|
||||
.append("musicAddr", getMusicAddr())
|
||||
.append("musicType", getMusicType())
|
||||
.append("creator", getCreator())
|
||||
.append("modify", getModify())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("isDel", getIsDel())
|
||||
.append("label", getLabel())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
package com.ruoyi.common.core.domain.entity;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】对象 music_recommend
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-07-15
|
||||
*/
|
||||
public class MusicRecommend extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** id */
|
||||
private String id;
|
||||
|
||||
/** 推荐id */
|
||||
@Excel(name = "推荐id")
|
||||
private Long recommendId;
|
||||
|
||||
/** 音乐id */
|
||||
@Excel(name = "音乐id")
|
||||
private Long musicId;
|
||||
|
||||
public void setId(String id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setRecommendId(Long recommendId)
|
||||
{
|
||||
this.recommendId = recommendId;
|
||||
}
|
||||
|
||||
public Long getRecommendId()
|
||||
{
|
||||
return recommendId;
|
||||
}
|
||||
|
||||
public void setMusicId(Long musicId)
|
||||
{
|
||||
this.musicId = musicId;
|
||||
}
|
||||
|
||||
public Long getMusicId()
|
||||
{
|
||||
return musicId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("recommendId", getRecommendId())
|
||||
.append("musicId", getMusicId())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,129 @@
|
||||
package com.ruoyi.common.core.domain.entity;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】对象 music_scene
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-07-15
|
||||
*/
|
||||
public class MusicScene extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** id */
|
||||
private String id;
|
||||
|
||||
/** 场景id */
|
||||
@Excel(name = "场景id")
|
||||
private Long sceneId;
|
||||
|
||||
/** 场景 */
|
||||
@Excel(name = "场景")
|
||||
private String scene;
|
||||
|
||||
/** 音乐地址 */
|
||||
@Excel(name = "音乐地址")
|
||||
private String musicAddr;
|
||||
|
||||
/** 创建人 */
|
||||
@Excel(name = "创建人")
|
||||
private String creator;
|
||||
|
||||
/** 修改人 */
|
||||
@Excel(name = "修改人")
|
||||
private String modify;
|
||||
|
||||
/** 1删除 */
|
||||
@Excel(name = "1删除")
|
||||
private Long isDel;
|
||||
|
||||
public void setId(String id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setSceneId(Long sceneId)
|
||||
{
|
||||
this.sceneId = sceneId;
|
||||
}
|
||||
|
||||
public Long getSceneId()
|
||||
{
|
||||
return sceneId;
|
||||
}
|
||||
|
||||
public void setScene(String scene)
|
||||
{
|
||||
this.scene = scene;
|
||||
}
|
||||
|
||||
public String getScene()
|
||||
{
|
||||
return scene;
|
||||
}
|
||||
|
||||
public void setMusicAddr(String musicAddr)
|
||||
{
|
||||
this.musicAddr = musicAddr;
|
||||
}
|
||||
|
||||
public String getMusicAddr()
|
||||
{
|
||||
return musicAddr;
|
||||
}
|
||||
|
||||
public void setCreator(String creator)
|
||||
{
|
||||
this.creator = creator;
|
||||
}
|
||||
|
||||
public String getCreator()
|
||||
{
|
||||
return creator;
|
||||
}
|
||||
|
||||
public void setModify(String modify)
|
||||
{
|
||||
this.modify = modify;
|
||||
}
|
||||
|
||||
public String getModify()
|
||||
{
|
||||
return modify;
|
||||
}
|
||||
|
||||
public void setIsDel(Long isDel)
|
||||
{
|
||||
this.isDel = isDel;
|
||||
}
|
||||
|
||||
public Long getIsDel()
|
||||
{
|
||||
return isDel;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("sceneId", getSceneId())
|
||||
.append("scene", getScene())
|
||||
.append("musicAddr", getMusicAddr())
|
||||
.append("creator", getCreator())
|
||||
.append("modify", getModify())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("isDel", getIsDel())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
package com.ruoyi.common.core.domain.entity;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】对象 music_scene_relate
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-07-15
|
||||
*/
|
||||
public class MusicSceneRelate extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** id */
|
||||
private String id;
|
||||
|
||||
/** 音乐id */
|
||||
@Excel(name = "音乐id")
|
||||
private Long musicId;
|
||||
|
||||
/** 场景id */
|
||||
@Excel(name = "场景id")
|
||||
private Long sceneId;
|
||||
|
||||
public void setId(String id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setMusicId(Long musicId)
|
||||
{
|
||||
this.musicId = musicId;
|
||||
}
|
||||
|
||||
public Long getMusicId()
|
||||
{
|
||||
return musicId;
|
||||
}
|
||||
|
||||
public void setSceneId(Long sceneId)
|
||||
{
|
||||
this.sceneId = sceneId;
|
||||
}
|
||||
|
||||
public Long getSceneId()
|
||||
{
|
||||
return sceneId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("musicId", getMusicId())
|
||||
.append("sceneId", getSceneId())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,114 @@
|
||||
package com.ruoyi.common.core.domain.entity;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 推荐对象 recommend_info
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-07-15
|
||||
*/
|
||||
public class RecommendInfo extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** id */
|
||||
private Long id;
|
||||
|
||||
/** 推荐名称 */
|
||||
@Excel(name = "推荐名称")
|
||||
private String name;
|
||||
|
||||
/** 创建人 */
|
||||
@Excel(name = "创建人")
|
||||
private String creator;
|
||||
|
||||
/** 修改人 */
|
||||
@Excel(name = "修改人")
|
||||
private String modify;
|
||||
|
||||
/** 1 删除 */
|
||||
@Excel(name = "1 删除")
|
||||
private Long isDel;
|
||||
|
||||
/** 描述 */
|
||||
@Excel(name = "描述")
|
||||
private String desc;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setCreator(String creator)
|
||||
{
|
||||
this.creator = creator;
|
||||
}
|
||||
|
||||
public String getCreator()
|
||||
{
|
||||
return creator;
|
||||
}
|
||||
|
||||
public void setModify(String modify)
|
||||
{
|
||||
this.modify = modify;
|
||||
}
|
||||
|
||||
public String getModify()
|
||||
{
|
||||
return modify;
|
||||
}
|
||||
|
||||
public void setIsDel(Long isDel)
|
||||
{
|
||||
this.isDel = isDel;
|
||||
}
|
||||
|
||||
public Long getIsDel()
|
||||
{
|
||||
return isDel;
|
||||
}
|
||||
|
||||
public void setDesc(String desc)
|
||||
{
|
||||
this.desc = desc;
|
||||
}
|
||||
|
||||
public String getDesc()
|
||||
{
|
||||
return desc;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("name", getName())
|
||||
.append("creator", getCreator())
|
||||
.append("modify", getModify())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("isDel", getIsDel())
|
||||
.append("desc", getDesc())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,13 @@
|
||||
package com.ruoyi.common.core.domain.entity;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import lombok.Data;
|
||||
import lombok.Getter;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
public class ShopUser {
|
||||
/**
|
||||
@@ -15,13 +19,64 @@ public class ShopUser {
|
||||
|
||||
private String password;
|
||||
|
||||
private String phone;
|
||||
|
||||
private Long userId;
|
||||
|
||||
private String uMtoken;
|
||||
|
||||
private String code;
|
||||
|
||||
private String msg;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
|
||||
private Date updateTime;
|
||||
|
||||
/** 主键 */
|
||||
private String id;
|
||||
|
||||
/** 用户id */
|
||||
@Excel(name = "用户id")
|
||||
private Long userId;
|
||||
|
||||
|
||||
/** 手机号 */
|
||||
@Excel(name = "手机号")
|
||||
private String phone;
|
||||
|
||||
/** 昵称 */
|
||||
@Excel(name = "昵称")
|
||||
private String nickname;
|
||||
|
||||
/** 1 男 2 女 */
|
||||
@Excel(name = "1 男 2 女")
|
||||
private Long sex;
|
||||
|
||||
/** 生日 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "生日", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date birthday;
|
||||
|
||||
/** 城市 */
|
||||
@Excel(name = "城市")
|
||||
private String addr;
|
||||
|
||||
/** 注册时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "注册时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date registerTime;
|
||||
|
||||
/** 状态 1 正常 2 黑名单 */
|
||||
@Excel(name = "状态 1 正常 2 黑名单")
|
||||
private Long status;
|
||||
|
||||
/** 1 vip 2 非vip */
|
||||
@Excel(name = "1 vip 2 非vip")
|
||||
private Long vip;
|
||||
|
||||
/** 在线时长 小时 */
|
||||
@Excel(name = "在线时长 小时")
|
||||
private String online;
|
||||
|
||||
/** 1 删除 */
|
||||
@Excel(name = "1 删除")
|
||||
private Long isDel;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,99 @@
|
||||
package com.ruoyi.common.core.domain.entity;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 用户收藏音乐对象 user_collect
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-07-15
|
||||
*/
|
||||
public class UserCollect extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** id */
|
||||
private Long id;
|
||||
|
||||
/** 用户id */
|
||||
@Excel(name = "用户id")
|
||||
private Long userId;
|
||||
|
||||
/** 音乐id */
|
||||
@Excel(name = "音乐id")
|
||||
private Long musicId;
|
||||
|
||||
/** 收藏名称 */
|
||||
@Excel(name = "收藏名称")
|
||||
private String collectName;
|
||||
|
||||
/** 歌单类型 音乐类型 ordinary 混音mixing */
|
||||
@Excel(name = "歌单类型 音乐类型 ordinary 混音mixing")
|
||||
private String collectType;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setUserId(Long userId)
|
||||
{
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public Long getUserId()
|
||||
{
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setMusicId(Long musicId)
|
||||
{
|
||||
this.musicId = musicId;
|
||||
}
|
||||
|
||||
public Long getMusicId()
|
||||
{
|
||||
return musicId;
|
||||
}
|
||||
|
||||
public void setCollectName(String collectName)
|
||||
{
|
||||
this.collectName = collectName;
|
||||
}
|
||||
|
||||
public String getCollectName()
|
||||
{
|
||||
return collectName;
|
||||
}
|
||||
|
||||
public void setCollectType(String collectType)
|
||||
{
|
||||
this.collectType = collectType;
|
||||
}
|
||||
|
||||
public String getCollectType()
|
||||
{
|
||||
return collectType;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("userId", getUserId())
|
||||
.append("musicId", getMusicId())
|
||||
.append("collectName", getCollectName())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("collectType", getCollectType())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
package com.ruoyi.common.core.domain.entity;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 用户播放历史对象 user_history
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-07-15
|
||||
*/
|
||||
public class UserHistory extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** id */
|
||||
private String id;
|
||||
|
||||
/** 用户id */
|
||||
@Excel(name = "用户id")
|
||||
private Long userId;
|
||||
|
||||
/** 音乐id */
|
||||
@Excel(name = "音乐id")
|
||||
private Long musicId;
|
||||
|
||||
public void setId(String id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setUserId(Long userId)
|
||||
{
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public Long getUserId()
|
||||
{
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setMusicId(Long musicId)
|
||||
{
|
||||
this.musicId = musicId;
|
||||
}
|
||||
|
||||
public Long getMusicId()
|
||||
{
|
||||
return musicId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("userId", getUserId())
|
||||
.append("musicId", getMusicId())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
package com.ruoyi.common.core.domain.entity;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】对象 user_like_music
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-07-15
|
||||
*/
|
||||
public class UserLikeMusic extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** id */
|
||||
private String id;
|
||||
|
||||
/** 音乐 */
|
||||
@Excel(name = "音乐")
|
||||
private Long musicId;
|
||||
|
||||
/** 用户id */
|
||||
@Excel(name = "用户id")
|
||||
private Long userId;
|
||||
|
||||
public void setId(String id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setMusicId(Long musicId)
|
||||
{
|
||||
this.musicId = musicId;
|
||||
}
|
||||
|
||||
public Long getMusicId()
|
||||
{
|
||||
return musicId;
|
||||
}
|
||||
|
||||
public void setUserId(Long userId)
|
||||
{
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public Long getUserId()
|
||||
{
|
||||
return userId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("musicId", getMusicId())
|
||||
.append("userId", getUserId())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user