提交 0e24f060 编写于 作者: 智布道's avatar 智布道 👁

💡 修改注释,提到中央仓库中

上级 eb200c7f
......@@ -8,8 +8,6 @@ import lombok.NoArgsConstructor;
/**
* @author yadong.zhang (yadong.zhang0415(a)gmail.com)
* @version 1.0
* @website https://www.zhyd.me
* @date 2019/1/31 14:03
* @since 1.8
*/
@Getter
......
......@@ -8,8 +8,6 @@ import me.zhyd.oauth.request.ResponseStatus;
*
* @author yadong.zhang (yadong.zhang0415(a)gmail.com)
* @version 1.0
* @website https://www.zhyd.me
* @date 2019/2/24 21:20
* @since 1.0
*/
public enum ApiUrl {
......
......@@ -5,8 +5,6 @@ import me.zhyd.oauth.request.ResponseStatus;
/**
* @author yadong.zhang (yadong.zhang0415(a)gmail.com)
* @version 1.0
* @website https://www.zhyd.me
* @date 2019/1/31 16:05
* @since 1.8
*/
public class AuthException extends RuntimeException {
......
......@@ -5,8 +5,6 @@ import me.zhyd.oauth.utils.StringUtils;
/**
* @author yadong.zhang (yadong.zhang0415(a)gmail.com)
* @version 1.0
* @website https://www.zhyd.me
* @date 2019/2/19 19:13
* @since 1.8
*/
public enum AuthBaiduErrorCode {
......
......@@ -3,8 +3,6 @@ package me.zhyd.oauth.model;
/**
* @author yadong.zhang (yadong.zhang0415(a)gmail.com)
* @version 1.0
* @website https://www.zhyd.me
* @date 2019/2/19 9:42
* @since 1.8
*/
public enum AuthDingTalkErrorCode {
......
......@@ -7,8 +7,6 @@ import me.zhyd.oauth.request.ResponseStatus;
/**
* @author yadong.zhang (yadong.zhang0415(a)gmail.com)
* @version 1.0
* @website https://www.zhyd.me
* @date 2019/1/31 15:43
* @since 1.8
*/
@Builder
......
......@@ -3,8 +3,6 @@ package me.zhyd.oauth.model;
/**
* @author yadong.zhang (yadong.zhang0415(a)gmail.com)
* @version 1.0
* @website https://www.zhyd.me
* @date 2019/1/31 13:52
* @since 1.8
*/
public enum AuthSource {
......
......@@ -6,8 +6,6 @@ import lombok.Data;
/**
* @author yadong.zhang (yadong.zhang0415(a)gmail.com)
* @version 1.0
* @website https://www.zhyd.me
* @date 2019/1/31 15:43
* @since 1.8
*/
@Data
......
......@@ -6,8 +6,6 @@ import lombok.Data;
/**
* @author yadong.zhang (yadong.zhang0415(a)gmail.com)
* @version 1.0
* @website https://www.zhyd.me
* @date 2019/1/31 13:47
* @since 1.8
*/
@Builder
......
......@@ -3,8 +3,6 @@ package me.zhyd.oauth.model;
/**
* @author yadong.zhang (yadong.zhang0415(a)gmail.com)
* @version 1.0
* @website https://www.zhyd.me
* @date 2019/1/31 17:24
* @since 1.8
*/
public enum AuthUserGender {
......
......@@ -18,8 +18,6 @@ import me.zhyd.oauth.utils.StringUtils;
/**
* @author yadong.zhang (yadong.zhang0415(a)gmail.com)
* @version 1.0
* @website https://www.zhyd.me
* @date 2019/3/25 22:48
* @since 1.8
*/
public class AuthAlipayRequest extends BaseAuthRequest {
......
......@@ -11,8 +11,6 @@ import me.zhyd.oauth.utils.UrlBuilder;
/**
* @author yadong.zhang (yadong.zhang0415(a)gmail.com)
* @version 1.0
* @website https://www.zhyd.me
* @date 2019/2/19 18:43
* @since 1.8
*/
public class AuthBaiduRequest extends BaseAuthRequest {
......
......@@ -13,8 +13,6 @@ import me.zhyd.oauth.utils.UrlBuilder;
/**
* @author yadong.zhang (yadong.zhang0415(a)gmail.com)
* @version 1.0
* @website https://www.zhyd.me
* @date 2019/2/23 15:48
* @since 1.8
*/
public class AuthCodingRequest extends BaseAuthRequest {
......
......@@ -12,8 +12,6 @@ import me.zhyd.oauth.utils.UrlBuilder;
/**
* @author yadong.zhang (yadong.zhang0415(a)gmail.com)
* @version 1.0
* @website https://www.zhyd.me
* @date 2019/2/23 15:00
* @since 1.8
*/
public class AuthCsdnRequest extends BaseAuthRequest {
......
......@@ -17,8 +17,6 @@ import java.util.Objects;
/**
* @author yadong.zhang (yadong.zhang0415(a)gmail.com)
* @version 1.0
* @website https://www.zhyd.me
* @date 2019/2/18 18:43
* @since 1.8
*/
public class AuthDingTalkRequest extends BaseAuthRequest {
......
......@@ -12,8 +12,6 @@ import me.zhyd.oauth.utils.UrlBuilder;
/**
* @author yadong.zhang (yadong.zhang0415(a)gmail.com)
* @version 1.0
* @website https://www.zhyd.me
* @date 2019/1/31 16:31
* @since 1.8
*/
public class AuthGiteeRequest extends BaseAuthRequest {
......
......@@ -15,8 +15,6 @@ import java.util.Map;
/**
* @author yadong.zhang (yadong.zhang0415(a)gmail.com)
* @version 1.0
* @website https://www.zhyd.me
* @date 2019/1/31 16:31
* @since 1.8
*/
public class AuthGithubRequest extends BaseAuthRequest {
......
......@@ -13,8 +13,6 @@ import me.zhyd.oauth.utils.UrlBuilder;
/**
* @author yadong.zhang (yadong.zhang0415(a)gmail.com)
* @version 1.0
* @website https://www.zhyd.me
* @date 2019/2/23 15:48
* @since 1.8
*/
public class AuthOschinaRequest extends BaseAuthRequest {
......
......@@ -6,14 +6,14 @@ import me.zhyd.oauth.model.AuthResponse;
/**
* @author yadong.zhang (yadong.zhang0415(a)gmail.com)
* @version 1.0
* @website https://www.zhyd.me
* @date 2019/1/31 15:45
* @since 1.8
*/
public interface AuthRequest {
/**
* 返回认证url,可自行跳转页面
*
* @return 返回授权地址
*/
default String authorize() {
throw new AuthException(ResponseStatus.NOT_IMPLEMENTED);
......@@ -33,6 +33,7 @@ public interface AuthRequest {
* 撤销授权
*
* @param accessToken 登录成功后返回的accessToken
* @return AuthResponse
*/
default AuthResponse revoke(String accessToken) {
throw new AuthException(ResponseStatus.NOT_IMPLEMENTED);
......@@ -42,6 +43,7 @@ public interface AuthRequest {
* 刷新access token (续期)
*
* @param accessToken 登录成功后返回的accessToken
* @return AuthResponse
*/
default AuthResponse refresh(String accessToken) {
throw new AuthException(ResponseStatus.NOT_IMPLEMENTED);
......
......@@ -13,8 +13,6 @@ import me.zhyd.oauth.utils.UrlBuilder;
/**
* @author yadong.zhang (yadong.zhang0415(a)gmail.com)
* @version 1.0
* @website https://www.zhyd.me
* @date 2019/2/23 15:48
* @since 1.8
*/
public class AuthTencentCloudRequest extends BaseAuthRequest {
......
......@@ -17,8 +17,6 @@ import me.zhyd.oauth.utils.UrlBuilder;
/**
* @author yadong.zhang (yadong.zhang0415(a)gmail.com)
* @version 1.0
* @website https://www.zhyd.me
* @date 2019/1/31 16:31
* @since 1.8
*/
public class AuthWeiboRequest extends BaseAuthRequest {
......
......@@ -12,8 +12,6 @@ import me.zhyd.oauth.utils.UrlBuilder;
/**
* @author yadong.zhang (yadong.zhang0415(a)gmail.com)
* @version 1.0
* @website https://www.zhyd.me
* @date 2019/2/18 13:11
* @since 1.8
*/
@Data
......
......@@ -3,8 +3,6 @@ package me.zhyd.oauth.request;
/**
* @author yadong.zhang (yadong.zhang0415(a)gmail.com)
* @version 1.0
* @website https://www.zhyd.me
* @date 2019/1/31 16:37
* @since 1.8
*/
public enum ResponseStatus {
......
......@@ -5,8 +5,6 @@ import me.zhyd.oauth.config.AuthConfig;
/**
* @author yadong.zhang (yadong.zhang0415(a)gmail.com)
* @version 1.0
* @website https://www.zhyd.me
* @date 2019/1/31 15:46
* @since 1.8
*/
public class AuthConfigChecker {
......@@ -14,6 +12,7 @@ public class AuthConfigChecker {
/**
* 是否支持第三方登录
*
* @param config config
* @return true or false
*/
public static boolean isSupportedAuth(AuthConfig config) {
......
......@@ -8,8 +8,6 @@ import java.net.UnknownHostException;
*
* @author yadong.zhang (yadong.zhang0415(a)gmail.com)
* @version 1.0
* @website https://www.zhyd.me
* @date 2019/1/31 16:31
* @since 1.0
*/
public class IpUtils {
......
......@@ -3,8 +3,6 @@ package me.zhyd.oauth.utils;
/**
* @author yadong.zhang (yadong.zhang0415(a)gmail.com)
* @version 1.0
* @website https://www.zhyd.me
* @date 2019/1/31 15:48
* @since 1.8
*/
public class StringUtils {
......
......@@ -9,8 +9,6 @@ import java.text.MessageFormat;
*
* @author yadong.zhang (yadong.zhang0415(a)gmail.com)
* @version 1.0
* @website https://www.zhyd.me
* @date 2019/1/31 12:26
* @since 1.0
*/
public class UrlBuilder {
......
......@@ -7,8 +7,6 @@ import org.junit.Test;
/**
* @author yadong.zhang (yadong.zhang0415(a)gmail.com)
* @version 1.0
* @website https://www.zhyd.me
* @date 2019/2/18 13:10
* @since 1.8
*/
public class AuthRequestTest {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册