This commit is contained in:
tanghc
2020-08-20 16:09:35 +08:00
parent 34519ee280
commit 4fad0d67ef
2 changed files with 0 additions and 115 deletions

View File

@@ -1,89 +0,0 @@
package com.gitee.sop.adminserver.bean;
import com.alibaba.fastjson.annotation.JSONField;
import com.gitee.easyopen.doc.annotation.ApiDocField;
import lombok.Data;
import java.util.ArrayList;
import java.util.List;
/**
* @author tanghc
*/
@Data
public class RouteDefinition {
/**
* 路由的Id
*/
@ApiDocField(description = "路由id")
private String id = "";
/**
* 接口名
*/
private String name;
/**
* 版本号
*/
private String version;
/**
* 路由断言集合配置
*/
@JSONField(serialize = false)
private List<GatewayPredicateDefinition> predicates = new ArrayList<>();
/**
* 路由过滤器集合配置
*/
@JSONField(serialize = false)
private List<GatewayFilterDefinition> filters = new ArrayList<>();
/**
* 路由规则转发的目标uri
*/
@ApiDocField(description = "uri")
private String uri;
/**
* uri后面跟的path
*/
@ApiDocField(description = "path")
private String path;
/**
* 路由执行的顺序
*/
private int order = 0;
/**
* 是否忽略验证,业务参数验证除外
*/
@ApiDocField(description = "是否忽略验证业务参数验证除外1忽略0不忽略")
private int ignoreValidate;
/**
* 状态0待审核1启用2禁用
*/
@ApiDocField(description = "状态0待审核1启用2禁用")
private int status = 1;
/**
* 合并结果,统一格式输出
*/
@ApiDocField(description = "合并结果统一格式输出1合并0不合并")
private int mergeResult = 1;
/**
* 是否需要授权才能访问
*/
@ApiDocField(description = "是否需要授权才能访问10")
private int permission;
/**
* 是否是自定义路由
*/
@ApiDocField(description = "是否是自定义路由10")
private int custom;
}

View File

@@ -1,26 +0,0 @@
package com.gitee.sop.adminserver.bean;
import lombok.Data;
import java.util.Date;
import java.util.List;
/**
* @author tanghc
*/
@Data
public class ServiceRouteInfo {
/** 服务名称对应spring.application.name */
private String serviceId;
private Date createTime = new Date();
private Date updateTime = new Date();
private String description;
private List<RouteDefinition> routeDefinitionList;
/** 是否是自定义服务10否 */
private int custom;
}