update 更名 SaInterfaceImpl 为 SaPermissionImpl 完善相关注释

2.X
疯狂的狮子Li 3 years ago
parent d2c1c33d05
commit 20a8ee3e4d

@ -10,13 +10,16 @@ import java.util.ArrayList;
import java.util.List;
/**
*
* sa-token
*
* @author Lion Li
*/
@Component
public class SaInterfaceImpl implements StpInterface {
public class SaPermissionImpl implements StpInterface {
/**
*
*/
@Override
public List<String> getPermissionList(Object loginId, String loginType) {
LoginUser loginUser = LoginHelper.getLoginUser();
@ -24,11 +27,14 @@ public class SaInterfaceImpl implements StpInterface {
if (userType == UserType.SYS_USER) {
return new ArrayList<>(loginUser.getMenuPermission());
} else if (userType == UserType.APP_USER) {
// app端权限返回 自行根据业务编写
// 其他端 自行根据业务编写
}
return new ArrayList<>();
}
/**
*
*/
@Override
public List<String> getRoleList(Object loginId, String loginType) {
LoginUser loginUser = LoginHelper.getLoginUser();
@ -36,7 +42,7 @@ public class SaInterfaceImpl implements StpInterface {
if (userType == UserType.SYS_USER) {
return new ArrayList<>(loginUser.getRolePermission());
} else if (userType == UserType.APP_USER) {
// app端权限返回 自行根据业务编写
// 其他端 自行根据业务编写
}
return new ArrayList<>();
}
Loading…
Cancel
Save