package com.uas.sso.entity.login; import com.uas.sso.AccountConfig; import com.uas.sso.core.Const; import org.springframework.util.StringUtils; /** * @author wangmh * @create 2018-08-09 13:47 * @desc 登录实体基类 **/ public abstract class BaseLogin { /** * 应用id(默认sso) */ private String appId = AccountConfig.ACCOUNT_CENTER; /** * 登录后跳转地址(默认优软云) */ private String returnUrl = Const.HOME_PAGE; /** * 基本登录接口 */ private String baseUrl; /** * 是否登录全部 */ private Boolean loginAll = true; /** * cookie有效期 */ private Integer maxage; public String getAppId() { return appId; } public void setAppId(String appId) { if (StringUtils.isEmpty(appId)) { appId = AccountConfig.ACCOUNT_CENTER; } this.appId = appId; } public String getReturnUrl() { return returnUrl; } public void setReturnUrl(String returnUrl) { if (StringUtils.isEmpty(appId)) { appId = Const.HOME_PAGE; } this.returnUrl = returnUrl; } public String getBaseUrl() { return baseUrl; } public void setBaseUrl(String baseUrl) { this.baseUrl = baseUrl; } public Boolean isLoginAll() { return loginAll; } public void setLoginAll(Boolean loginAll) { if (loginAll == null) { loginAll = true; } this.loginAll = loginAll; } public Integer getMaxage() { return maxage; } public void setMaxage(Integer maxage) { this.maxage = maxage; } }