推荐部分

This commit is contained in:
menxipeng
2025-07-16 23:01:27 +08:00
parent d4178f9043
commit fd19d6acd0
21 changed files with 268 additions and 25 deletions

View File

@@ -5,6 +5,8 @@ import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import java.util.List;
/**
* 推荐对象 recommend_info
*
@@ -38,6 +40,8 @@ public class RecommendInfo extends BaseEntity
@Excel(name = "描述")
private String desc;
private List<MusicInfo> musics;
public void setId(Long id)
{
this.id = id;

View File

@@ -156,9 +156,10 @@ public class LoginUser implements UserDetails
{
if (user != null){
return user.getUserName();
}else {
}else if (shopUser != null){
return shopUser.getUsername();
}
return null;
}
/**

View File

@@ -0,0 +1,19 @@
package com.ruoyi.common.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
@Getter
@AllArgsConstructor
public enum MusicType {
ORDINARY("ordinary","普通"),
MIXING("mixing","混音"),
;
//音乐类型 ordinary 混音mixing
public final String musicType;
public final String desc;
}

View File

@@ -62,7 +62,8 @@ public class SecurityUtils
}
catch (Exception e)
{
throw new ServiceException("获取用户账户异常", HttpStatus.UNAUTHORIZED);
//throw new ServiceException("获取用户账户异常", HttpStatus.UNAUTHORIZED);
return null;
}
}