完善功能
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
}
|
||||
@@ -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)
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -32,6 +32,7 @@ public class SecurityUtils
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
e.printStackTrace();
|
||||
throw new ServiceException("获取用户ID异常", HttpStatus.UNAUTHORIZED);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user