This commit is contained in:
zt
2025-08-26 21:05:13 +08:00
parent 971101d5e8
commit 5772b5fc83
11 changed files with 137 additions and 17 deletions

View File

@ -21,15 +21,15 @@ public class SaPermissionImpl implements StpInterface {
*/
@Override
public List<String> getPermissionList(Object loginId, String loginType) {
// LoginUser loginUser = LoginHelper.getLoginUser();
// UserType userType = UserType.getUserType(loginUser.getUserType());
// if (userType == UserType.SYS_USER) {
// return new ArrayList<>(loginUser.getMenuPermission());
// } else if (userType == UserType.APP_USER) {
// // 其他端 自行根据业务编写
// }
// return new ArrayList<>();
return Collections.singletonList("*");
LoginUser loginUser = LoginHelper.getLoginUser();
UserType userType = UserType.getUserType(loginUser.getUserType());
if (userType == UserType.SYS_USER) {
return new ArrayList<>(loginUser.getMenuPermission());
} else if (userType == UserType.APP_USER) {
// 其他端 自行根据业务编写
}
return new ArrayList<>();
// return Collections.singletonList("*");
}
/**

View File

@ -14,10 +14,6 @@ import java.util.List;
@Data
public class SseMessageDto implements Serializable {
@Serial
private static final long serialVersionUID = 1L;
@ -37,8 +33,13 @@ public class SseMessageDto implements Serializable {
private String route;
/**
* 详情
* 项目id
*/
private Long projectId;
/**
* 是否记录
*/
private Boolean isRecord = true;
}