| | |
| | | * @author Eva.Caesar Liu |
| | | * @date 2022/04/18 18:12 |
| | | */ |
| | | @Component |
| | | //@Component |
| | | public class ShiroToken extends UsernamePasswordToken { |
| | | |
| | | /** |
| | |
| | | */ |
| | | Integer companyId; |
| | | Boolean isDdLogin; |
| | | Boolean isWxLogin; |
| | | |
| | | public ShiroToken() { |
| | | } |
| | | public ShiroToken(Integer companyId,String username, String password,boolean isDdLogin) { |
| | | public ShiroToken(Integer companyId,String username, String password,boolean isDdLogin,boolean isWxLogin) { |
| | | super(username, password, false, (String)null); |
| | | this.companyId = companyId; |
| | | this.isDdLogin = isDdLogin; |
| | | this.isWxLogin = isWxLogin; |
| | | } |
| | | |
| | | public Boolean getDdLogin() { |
| | |
| | | isDdLogin = ddLogin; |
| | | } |
| | | |
| | | |
| | | public Boolean getWxLogin() { |
| | | return isWxLogin; |
| | | } |
| | | |
| | | public void setWxLogin(Boolean wxLogin) { |
| | | isWxLogin = wxLogin; |
| | | } |
| | | |
| | | public Integer getCompanyId() { |
| | | return companyId; |
| | | } |