mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
网关可校验token
This commit is contained in:
@@ -1,15 +1,13 @@
|
||||
package com.gitee.sop.gateway.entity;
|
||||
|
||||
import com.gitee.fastmybatis.core.annotation.LogicDelete;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
import java.util.Date;
|
||||
|
||||
|
||||
/**
|
||||
@@ -63,6 +61,9 @@ public class ConfigServiceRoute {
|
||||
/** 是否需要授权才能访问, 数据库字段:permission */
|
||||
private Byte permission;
|
||||
|
||||
/** 是否需要token, 数据库字段:need_token */
|
||||
private Byte needToken;
|
||||
|
||||
/** 数据库字段:gmt_create */
|
||||
private Date gmtCreate;
|
||||
|
||||
|
@@ -54,6 +54,7 @@ public class DbRoutesProcessor implements RoutesProcessor {
|
||||
configServiceRoute.setStatus((byte) routeDefinition.getStatus());
|
||||
configServiceRoute.setPermission((byte) routeDefinition.getPermission());
|
||||
configServiceRoute.setOrder(routeDefinition.getOrder());
|
||||
configServiceRoute.setNeedToken((byte)routeDefinition.getNeedToken());
|
||||
configServiceRoute.setServiceId(serviceId);
|
||||
return configServiceRoute;
|
||||
})
|
||||
|
Reference in New Issue
Block a user