初始化

This commit is contained in:
2022-06-21 20:47:46 +08:00
parent b666a24a98
commit 59da3376c1
1246 changed files with 129600 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
package com.njcn.gateway.enums;
import lombok.Getter;
/**
* @author hongawen
* @version 1.0.0
* @date 2021年06月04日 11:17
*/
@Getter
public enum GateWayEnum {
/**
* A0200 ~ A0249 作用于网关业务枚举
* 网关业务枚举响应
*/
NO_AUTHORIZATION("A0201", "访问未授权"),
//特殊的code与common中的code保持一致
TOKEN_EXPIRE_JWT("A0024", "token已过期"),
ACCESS_TOKEN_EXPIRE_JWT("A0202", "access_token已过期"),
TOKEN_FORBIDDEN_JWT("A0203", "token已被禁止访问");
private final String code;
private final String message;
GateWayEnum(String code, String message) {
this.code = code;
this.message = message;
}
}