|
@@ -6,8 +6,8 @@
|
|
|
package org.eco.vip.auth.service.auth;
|
|
|
|
|
|
|
|
|
-import org.eco.vip.auth.domain.auth.vo.AuthParam;
|
|
|
-import org.eco.vip.auth.domain.auth.vo.AuthResponse;
|
|
|
+import org.eco.vip.auth.domain.auth.vo.AuthQuery;
|
|
|
+import org.eco.vip.auth.domain.auth.vo.AuthVO;
|
|
|
import org.eco.vip.orm.exception.BusinessException;
|
|
|
import org.eco.vip.orm.utils.SpringUtils;
|
|
|
|
|
@@ -23,25 +23,25 @@ public interface IAuthStrategy {
|
|
|
/**
|
|
|
* 登录
|
|
|
*
|
|
|
- * @param authParam 登录对象
|
|
|
+ * @param authQuery 登录对象
|
|
|
* @param grantType 授权类型
|
|
|
* @return 登录验证信息
|
|
|
*/
|
|
|
- static AuthResponse login(AuthParam authParam, String grantType) {
|
|
|
+ static AuthVO login(AuthQuery authQuery, String grantType) {
|
|
|
// 授权类型和客户端id
|
|
|
String beanName = grantType + BASE_NAME;
|
|
|
if (!SpringUtils.containsBean(beanName)) {
|
|
|
throw new BusinessException("授权类型不正确!");
|
|
|
}
|
|
|
IAuthStrategy instance = SpringUtils.getBean(beanName);
|
|
|
- return instance.login(authParam);
|
|
|
+ return instance.login(authQuery);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 登录
|
|
|
*
|
|
|
- * @param authParam 登录对象
|
|
|
+ * @param authQuery 登录对象
|
|
|
* @return 登录验证信息
|
|
|
*/
|
|
|
- AuthResponse login(AuthParam authParam);
|
|
|
+ AuthVO login(AuthQuery authQuery);
|
|
|
}
|