新增:

1.用户登录时判断租户是否过期,在登录时赋予 token有效期为当前租户到期时间和当前日期的差值;
2.实现租户名查 租户 Id 接口
This commit is contained in:
2025-06-20 15:58:42 +08:00
parent 7ca3394fd9
commit 440776cfac
10 changed files with 295 additions and 3 deletions

View File

@@ -10,7 +10,11 @@ import com.yupi.springbootinit.model.entity.SystemUsers;
public interface SystemUsersService extends IService<SystemUsers> {
SystemUsers getUserByUserName(String username);
SystemUsers getUserByUserName(String username,Long tenantId);
boolean isPasswordMatch(String rawPassWord, String encodedPassword);
boolean isExpired(Long tendId);
Long getTenantExpiredTime(Long tenantId);
}