AuthResponseStatus.java 746 字节
Newer Older
智布道's avatar
智布道 已提交
1
package me.zhyd.oauth.model;
智布道's avatar
智布道 已提交
2

智布道's avatar
智布道 已提交
3 4 5
import lombok.AllArgsConstructor;
import lombok.Getter;

智布道's avatar
智布道 已提交
6 7 8 9
/**
 * @author yadong.zhang (yadong.zhang0415(a)gmail.com)
 * @since 1.8
 */
智布道's avatar
智布道 已提交
10 11
@Getter
@AllArgsConstructor
智布道's avatar
智布道 已提交
12
public enum AuthResponseStatus {
13
    SUCCESS(2000, "Success"),
智布道's avatar
智布道 已提交
14
    FAILURE(5000, "Failure"),
智布道's avatar
智布道 已提交
15
    NOT_IMPLEMENTED(5001, "Not Implemented"),
智布道's avatar
智布道 已提交
16 17
    PARAMETER_INCOMPLETE(5002, "Parameter incomplete"),
    UNSUPPORTED(5003, "Unsupported operation"),
18 19
    NO_AUTH_SOURCE(5004, "AuthSource cannot be null"),
    UNIDENTIFIED_PLATFORM(5005, "Unidentified platform"),
20
    ILLEGAL_REDIRECT_URI(5006, "Illegal redirect uri"),
21 22
    ILLEGAL_REQUEST(5007, "Illegal request"),
    ILLEGAL_CODE(5008, "Illegal code"),
智布道's avatar
智布道 已提交
23 24 25 26 27 28
    ;

    private int code;
    private String msg;
}