
club.zhcs.auth.AuthService Maven / Gradle / Ivy
package club.zhcs.auth;
import java.util.List;
import io.swagger.annotations.ApiModelProperty;
/**
* @author Kerbores( [email protected])
*/
public interface AuthService {
public static class LoginDto {
@ApiModelProperty(value = "用户名", required = true)
String name;
@ApiModelProperty(value = "密码", required = true)
String password;
@ApiModelProperty("是否记住我")
boolean rememberMe;
public boolean isRememberMe() {
return rememberMe;
}
public void setRememberMe(boolean rememberMe) {
this.rememberMe = rememberMe;
}
public LoginDto() {
super();
}
/**
* @param name
* 用户名
* @param password
* 密码
*/
public LoginDto(String name, String password) {
super();
this.name = name;
this.password = password;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
}
public List roles();
public List permissions();
public AuthUser user();
public String token();
public String userName();
public AuthUser login(LoginDto loginDto);
public boolean skip();
/**
* 认证检查
*
* @param withoutAuthenticationUrlRegulars
* 不需要检查的url正则表达式
* @return 认证检查通过状态
*/
public boolean authentication(List withoutAuthenticationUrlRegulars);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy