mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
5.0
This commit is contained in:
@@ -11,7 +11,7 @@ import java.util.Date;
|
||||
* 表名:config_gray
|
||||
* 备注:服务灰度配置
|
||||
*
|
||||
* @author tanghc
|
||||
* @author 六如
|
||||
*/
|
||||
@Table(name = "config_gray",pk = @Pk(name = "id"))
|
||||
@Data
|
||||
|
@@ -10,7 +10,7 @@ import java.util.Date;
|
||||
/**
|
||||
* 表名:config_gray_instance
|
||||
*
|
||||
* @author tanghc
|
||||
* @author 六如
|
||||
*/
|
||||
@Table(name = "config_gray_instance",pk = @Pk(name = "id"))
|
||||
@Data
|
||||
|
@@ -11,7 +11,7 @@ import java.util.Date;
|
||||
* 表名:config_limit
|
||||
* 备注:限流配置
|
||||
*
|
||||
* @author tanghc
|
||||
* @author 六如
|
||||
*/
|
||||
@Table(name = "config_limit",pk = @Pk(name = "id"))
|
||||
@Data
|
||||
|
@@ -10,7 +10,7 @@ import com.gitee.fastmybatis.annotation.Table;
|
||||
* 表名:config_route_base
|
||||
* 备注:路由配置表
|
||||
*
|
||||
* @author tanghc
|
||||
* @author 六如
|
||||
*/
|
||||
@Table(name = "config_route_base",pk = @Pk(name = "id"))
|
||||
@Data
|
||||
|
@@ -11,7 +11,7 @@ import java.util.Date;
|
||||
* 表名:config_service_route
|
||||
* 备注:路由配置
|
||||
*
|
||||
* @author tanghc
|
||||
* @author 六如
|
||||
*/
|
||||
@Table(name = "config_service_route",pk = @Pk(name = "id"))
|
||||
@Data
|
||||
|
@@ -3,7 +3,7 @@ package com.gitee.sop.gateway.entity;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author tanghc
|
||||
* @author 六如
|
||||
*/
|
||||
@Data
|
||||
public class IsvDetailDTO {
|
||||
|
@@ -11,7 +11,7 @@ import java.util.Date;
|
||||
* 表名:isv_info
|
||||
* 备注:isv信息表
|
||||
*
|
||||
* @author tanghc
|
||||
* @author 六如
|
||||
*/
|
||||
@Table(name = "isv_info",pk = @Pk(name = "id"))
|
||||
@Data
|
||||
|
@@ -12,7 +12,7 @@ import java.util.Date;
|
||||
* 表名:monitor_info
|
||||
* 备注:接口监控信息
|
||||
*
|
||||
* @author tanghc
|
||||
* @author 六如
|
||||
*/
|
||||
@Table(name = "monitor_info",pk = @Pk(name = "id"))
|
||||
@Data
|
||||
|
@@ -11,7 +11,7 @@ import java.util.Date;
|
||||
/**
|
||||
* 表名:monitor_info_error
|
||||
*
|
||||
* @author tanghc
|
||||
* @author 六如
|
||||
*/
|
||||
@Table(name = "monitor_info_error",pk = @Pk(name = "id"))
|
||||
@Data
|
||||
|
@@ -11,7 +11,7 @@ import java.util.Date;
|
||||
* 表名:perm_isv_role
|
||||
* 备注:isv角色
|
||||
*
|
||||
* @author tanghc
|
||||
* @author 六如
|
||||
*/
|
||||
@Table(name = "perm_isv_role",pk = @Pk(name = "id"))
|
||||
@Data
|
||||
|
@@ -11,7 +11,7 @@ import java.util.Date;
|
||||
* 表名:perm_role_permission
|
||||
* 备注:角色权限表
|
||||
*
|
||||
* @author tanghc
|
||||
* @author 六如
|
||||
*/
|
||||
@Table(name = "perm_role_permission",pk = @Pk(name = "id"))
|
||||
@Data
|
||||
|
@@ -11,7 +11,7 @@ import org.springframework.stereotype.Component;
|
||||
/**
|
||||
* 用于收集监控数据
|
||||
*
|
||||
* @author tanghc
|
||||
* @author 六如
|
||||
*/
|
||||
@Component
|
||||
@Slf4j
|
||||
|
@@ -25,7 +25,7 @@ import java.util.concurrent.TimeUnit;
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
|
||||
/**
|
||||
* @author tanghc
|
||||
* @author 六如
|
||||
*/
|
||||
@Service
|
||||
@Slf4j
|
||||
|
@@ -13,7 +13,7 @@ import java.net.URI;
|
||||
/**
|
||||
* 演示拦截器
|
||||
*
|
||||
* @author tanghc
|
||||
* @author 六如
|
||||
*/
|
||||
@Slf4j
|
||||
@Component
|
||||
|
@@ -28,7 +28,7 @@ import java.util.stream.Stream;
|
||||
/**
|
||||
* 存放用户key,这里放在本机内容,如果灰度发布保存的用户id数量偏多,可放在redis中
|
||||
*
|
||||
* @author tanghc
|
||||
* @author 六如
|
||||
*/
|
||||
@Slf4j
|
||||
@Service
|
||||
|
@@ -13,7 +13,7 @@ import java.util.List;
|
||||
/**
|
||||
* 限流配置管理
|
||||
*
|
||||
* @author tanghc
|
||||
* @author 六如
|
||||
*/
|
||||
@Slf4j
|
||||
@Service
|
||||
|
@@ -14,7 +14,7 @@ import org.springframework.stereotype.Service;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author tanghc
|
||||
* @author 六如
|
||||
*/
|
||||
@Slf4j
|
||||
@Service
|
||||
|
@@ -31,7 +31,7 @@ import static java.util.stream.Collectors.toList;
|
||||
/**
|
||||
* 从数据库中读取路由权限信息
|
||||
*
|
||||
* @author tanghc
|
||||
* @author 六如
|
||||
*/
|
||||
@Slf4j
|
||||
@Service
|
||||
|
@@ -14,7 +14,7 @@ import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* 限流配置管理
|
||||
* @author tanghc
|
||||
* @author 六如
|
||||
*/
|
||||
@Slf4j
|
||||
@Service
|
||||
|
@@ -16,7 +16,7 @@ import java.util.Objects;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* @author tanghc
|
||||
* @author 六如
|
||||
*/
|
||||
@Service
|
||||
public class DbMonitorInfoManager {
|
||||
|
@@ -13,7 +13,7 @@ import org.springframework.stereotype.Service;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author tanghc
|
||||
* @author 六如
|
||||
*/
|
||||
@Slf4j
|
||||
@Service
|
||||
|
@@ -20,7 +20,7 @@ import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* @author tanghc
|
||||
* @author 六如
|
||||
*/
|
||||
@Slf4j
|
||||
@Component
|
||||
|
@@ -5,7 +5,7 @@ import com.gitee.sop.gateway.entity.ConfigGrayInstance;
|
||||
|
||||
|
||||
/**
|
||||
* @author tanghc
|
||||
* @author 六如
|
||||
*/
|
||||
public interface ConfigGrayInstanceMapper extends CrudMapper<ConfigGrayInstance, Long> {
|
||||
}
|
||||
|
@@ -5,7 +5,7 @@ import com.gitee.sop.gateway.entity.ConfigGray;
|
||||
|
||||
|
||||
/**
|
||||
* @author tanghc
|
||||
* @author 六如
|
||||
*/
|
||||
public interface ConfigGrayMapper extends CrudMapper<ConfigGray, Long> {
|
||||
}
|
||||
|
@@ -5,7 +5,7 @@ import com.gitee.sop.gateway.entity.ConfigLimit;
|
||||
|
||||
|
||||
/**
|
||||
* @author tanghc
|
||||
* @author 六如
|
||||
*/
|
||||
public interface ConfigLimitMapper extends CrudMapper<ConfigLimit, Long> {
|
||||
}
|
||||
|
@@ -5,7 +5,7 @@ import com.gitee.sop.gateway.entity.ConfigRouteBase;
|
||||
|
||||
|
||||
/**
|
||||
* @author tanghc
|
||||
* @author 六如
|
||||
*/
|
||||
public interface ConfigRouteBaseMapper extends CrudMapper<ConfigRouteBase, Long> {
|
||||
|
||||
|
@@ -8,7 +8,7 @@ import org.apache.ibatis.annotations.Select;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author tanghc
|
||||
* @author 六如
|
||||
*/
|
||||
@Mapper
|
||||
public interface ConfigRouteMapper {
|
||||
|
@@ -5,7 +5,7 @@ import com.gitee.sop.gateway.entity.ConfigServiceRoute;
|
||||
|
||||
|
||||
/**
|
||||
* @author tanghc
|
||||
* @author 六如
|
||||
*/
|
||||
public interface ConfigServiceRouteMapper extends CrudMapper<ConfigServiceRoute, String> {
|
||||
}
|
||||
|
@@ -7,7 +7,7 @@ import java.util.List;
|
||||
|
||||
/**
|
||||
* IP黑名单
|
||||
* @author tanghc
|
||||
* @author 六如
|
||||
*/
|
||||
@Mapper
|
||||
public interface IPBlacklistMapper {
|
||||
|
@@ -9,7 +9,7 @@ import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* @author tanghc
|
||||
* @author 六如
|
||||
*/
|
||||
public interface IsvInfoMapper extends CrudMapper<IsvInfo, Long> {
|
||||
|
||||
|
@@ -12,7 +12,7 @@ import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* @author tanghc
|
||||
* @author 六如
|
||||
*/
|
||||
public interface MonitorInfoErrorMapper extends CrudMapper<MonitorInfoError, Long> {
|
||||
|
||||
|
@@ -10,7 +10,7 @@ import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* @author tanghc
|
||||
* @author 六如
|
||||
*/
|
||||
public interface MonitorInfoMapper extends CrudMapper<MonitorInfo, Long> {
|
||||
|
||||
|
@@ -5,7 +5,7 @@ import com.gitee.sop.gateway.entity.PermIsvRole;
|
||||
|
||||
|
||||
/**
|
||||
* @author tanghc
|
||||
* @author 六如
|
||||
*/
|
||||
public interface PermIsvRoleMapper extends CrudMapper<PermIsvRole, Long> {
|
||||
}
|
||||
|
@@ -5,7 +5,7 @@ import com.gitee.sop.gateway.entity.PermRolePermission;
|
||||
|
||||
|
||||
/**
|
||||
* @author tanghc
|
||||
* @author 六如
|
||||
*/
|
||||
public interface PermRolePermissionMapper extends CrudMapper<PermRolePermission, Long> {
|
||||
}
|
||||
|
@@ -7,7 +7,7 @@ import org.apache.ibatis.annotations.ResultType;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
/**
|
||||
* @author tanghc
|
||||
* @author 六如
|
||||
*/
|
||||
@Mapper
|
||||
public interface SystemLockMapper {
|
||||
|
@@ -4,7 +4,7 @@
|
||||
//import org.apache.commons.lang3.StringUtils;
|
||||
//
|
||||
///**
|
||||
// * @author tanghc
|
||||
// * @author 六如
|
||||
// */
|
||||
//public class ExcludeTest extends TestCase {
|
||||
// public void testRegex() {
|
||||
|
@@ -10,7 +10,7 @@ import java.util.List;
|
||||
/**
|
||||
* 轮询选择一台机器。
|
||||
*
|
||||
* @author tanghc
|
||||
* @author 六如
|
||||
*/
|
||||
public class RoundRobinTest extends TestCase {
|
||||
|
||||
|
@@ -6,7 +6,7 @@ import org.springframework.util.AntPathMatcher;
|
||||
import org.springframework.util.PathMatcher;
|
||||
|
||||
/**
|
||||
* @author tanghc
|
||||
* @author 六如
|
||||
*/
|
||||
public class UrlPatternTest extends TestCase {
|
||||
|
||||
|
Reference in New Issue
Block a user