perf:调整授权登录

This commit is contained in:
曾文豪
2023-01-11 15:46:02 +08:00
parent 82c8e3f474
commit 7d454e9c62
4 changed files with 51 additions and 26 deletions

View File

@@ -0,0 +1,42 @@
package com.tiesheng.login.pojos;
import cn.hutool.core.util.StrUtil;
public class LoginToInfo {
private String to;
/**
* 获取默认的去往目的地
*
* @param def
* @return
*/
public String getDefaultTo(String def) {
if (StrUtil.isEmpty(getTo())) {
return def;
}
return getTo();
}
/**
* 获取默认的去往目的地
*
* @return
*/
public String getDefaultTo() {
return getDefaultTo("mobile");
}
///////////////////////////////////////////////////////////////////////////
// setter\getter
///////////////////////////////////////////////////////////////////////////
public String getTo() {
return to;
}
public void setTo(String to) {
this.to = to;
}
}