refactor: 删掉过期的类

This commit is contained in:
valarchie 2023-04-08 17:48:35 +08:00
parent 1aebdb76ec
commit f2fad1c4f7
4 changed files with 1 additions and 47 deletions

View File

@ -26,12 +26,6 @@ public class Constants {
public static class Token {
/**
* 令牌
*/
@Deprecated
public static final String TOKEN_FIELD = "token";
/**
* 令牌前缀
*/

View File

@ -1,17 +0,0 @@
package com.agileboot.common.core.base;
import lombok.Data;
/**
* @author valarchie
*/
@Deprecated
@Data
public class BaseUser {
private Long userId;
private String username;
private Long deptId;
private Long roleId;
}

View File

@ -19,7 +19,7 @@ public class NoticeAddCommand {
protected String noticeType;
/**
* 想要支持富文本的话 请加上@JsonDeserialize(using = StringDeserializer.class) 注解
* 想要支持富文本的话, 避免Xss过滤的话 请加上@JsonDeserialize(using = StringDeserializer.class) 注解
*/
@NotBlank
@JsonDeserialize(using = StringDeserializer.class)

View File

@ -1,12 +1,7 @@
package com.agileboot.infrastructure.web.domain.login;
import cn.hutool.core.convert.Convert;
import cn.hutool.core.util.StrUtil;
import com.agileboot.orm.common.enums.DataScopeEnum;
import com.agileboot.orm.common.util.BasicEnumUtil;
import com.agileboot.orm.system.entity.SysRoleEntity;
import java.util.Set;
import java.util.stream.Collectors;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@ -39,24 +34,6 @@ public class RoleInfo {
}
@Deprecated
public RoleInfo(SysRoleEntity entity, String roleKey, Set<String> menuPermissions, Set<Long> menuIds) {
if (entity != null) {
this.roleId = entity.getRoleId();
this.roleName = entity.getRoleName();
this.dataScope = BasicEnumUtil.fromValue(DataScopeEnum.class, entity.getDataScope());
if(StrUtil.isNotEmpty(entity.getDeptIdSet())) {
this.deptIdSet = StrUtil.split(entity.getDeptIdSet(), ",").stream()
.map(Convert::toLong).collect( Collectors.toSet());
}
this.roleKey = roleKey;
this.menuPermissions = menuPermissions != null ? menuPermissions : SetUtils.emptySet();
this.menuIds = menuIds != null ? menuIds : SetUtils.emptySet();
}
}
private Long roleId;
private String roleName;
private DataScopeEnum dataScope;