完善功能

This commit is contained in:
menxipeng
2025-08-02 23:10:35 +08:00
parent 7be046e8f5
commit 58e70a009d
32 changed files with 224 additions and 82 deletions

View File

@@ -0,0 +1,17 @@
package com.ruoyi.common.core.domain.entity;
import lombok.Data;
import lombok.EqualsAndHashCode;
@EqualsAndHashCode(callSuper = true)
@Data
public class MusicMaxReq extends MusicInfo{
private String sceneIds;
private String sceneJson;
private String sourceMusicId;
}

View File

@@ -42,6 +42,9 @@ public class RecommendInfo extends BaseEntity
@Excel(name = "描述")
private String desc;
private String backImg;
private List<MusicInfo> musics;
public void setId(Long id)

View File

@@ -112,8 +112,8 @@ public class LoginUser implements UserDetails
public Long getUserId()
{
if (userId != null){
return userId;
if (user != null){
return user.getUserId();
}else if(shopUser != null){
return shopUser.getUserId();
}

View File

@@ -32,6 +32,7 @@ public class SecurityUtils
}
catch (Exception e)
{
e.printStackTrace();
throw new ServiceException("获取用户ID异常", HttpStatus.UNAUTHORIZED);
}
}