update package name

This commit is contained in:
Francis Dong
2020-09-04 19:43:19 +08:00
parent 0ba26d2874
commit 96db02e173
83 changed files with 220 additions and 219 deletions

1
.gitignore vendored
View File

@@ -4,3 +4,4 @@
.project
.classpath
.factorypath
.idea

View File

@@ -64,6 +64,6 @@ jar启动:
1. 网关核心项目fizz-gateway-community社区版本以GNU v3的方式进行的开放可以免费使用。
2. 管理后台项目(fizz-manager-professional和fizz-admin-professional)作为商业版本仅开放二进制包的免费下载,而商业项目请联系我们(ewing.lin@wehotelglobal.com进行授权。
2. 管理后台项目(fizz-manager-professional和fizz-admin-professional)作为商业版本仅开放二进制包的免费下载,而商业项目请联系我们(524423586@qq.com进行授权。

View File

@@ -8,7 +8,7 @@
<version>2.2.9.RELEASE</version>
<relativePath/>
</parent>
<groupId>com.wehotel</groupId>
<groupId>we</groupId>
<artifactId>fizz-gateway-community</artifactId>
<version>1.0.0</version>
<name>fizz-gateway</name>

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel;
package we;
import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig;
import org.springframework.boot.SpringApplication;

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.apollo;
package we.apollo;
import com.ctrip.framework.apollo.Config;
import com.ctrip.framework.apollo.ConfigChangeListener;

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.config;
package we.config;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.config;
package we.config;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.config;
package we.config;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.config;
package we.config;
import io.lettuce.core.ClientOptions;
import io.lettuce.core.resource.ClientResources;

View File

@@ -15,10 +15,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.config;
package we.config;
import com.wehotel.util.Constants;
import com.wehotel.util.Utils;
import we.util.Constants;
import we.util.Utils;
/**
* @author lancer

View File

@@ -15,16 +15,16 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.config;
package we.config;
import com.ctrip.framework.apollo.model.ConfigChange;
import com.ctrip.framework.apollo.model.ConfigChangeEvent;
import com.ctrip.framework.apollo.spring.annotation.ApolloConfigChangeListener;
import com.wehotel.plugin.auth.GatewayGroup;
import com.wehotel.util.Constants;
import com.wehotel.util.JacksonUtils;
import com.wehotel.util.NetworkUtils;
import com.wehotel.util.WebUtils;
import we.plugin.auth.GatewayGroup;
import we.util.Constants;
import we.util.JacksonUtils;
import we.util.NetworkUtils;
import we.util.WebUtils;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.config;
package we.config;
import io.netty.buffer.PooledByteBufAllocator;
import io.netty.buffer.UnpooledByteBufAllocator;

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.config;
package we.config;
import io.netty.buffer.PooledByteBufAllocator;
import io.netty.buffer.UnpooledByteBufAllocator;

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.constants;
package we.constants;
/**
* @author unknown

View File

@@ -15,10 +15,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.controller;
package we.controller;
import com.wehotel.fizz.ConfigLoader;
import com.wehotel.util.ScriptUtils;
import we.fizz.ConfigLoader;
import we.util.ScriptUtils;
import org.apache.commons.io.FileUtils;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;

View File

@@ -15,13 +15,13 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.controller;
package we.controller;
import java.util.Date;
import com.wehotel.plugin.auth.ApiConfigService;
import com.wehotel.plugin.auth.AppService;
import com.wehotel.util.JacksonUtils;
import we.plugin.auth.ApiConfigService;
import we.plugin.auth.AppService;
import we.util.JacksonUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.server.ServerWebExchange;

View File

@@ -15,14 +15,14 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.controller;
package we.controller;
import com.wehotel.controller.req.BaseManagerConfigReq;
import com.wehotel.controller.req.GetConfigStrReq;
import com.wehotel.controller.req.GetConfigReq;
import com.wehotel.controller.resp.ConfigStrResp;
import com.wehotel.controller.resp.ConfigResp;
import com.wehotel.fizz.ConfigLoader;
import we.controller.req.BaseManagerConfigReq;
import we.controller.req.GetConfigStrReq;
import we.controller.req.GetConfigReq;
import we.controller.resp.ConfigStrResp;
import we.controller.resp.ConfigResp;
import we.fizz.ConfigLoader;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.PostMapping;

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.controller.req;
package we.controller.req;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.controller.req;
package we.controller.req;
import org.springframework.util.DigestUtils;

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.controller.req;
package we.controller.req;
import org.springframework.util.DigestUtils;

View File

@@ -15,9 +15,9 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.controller.resp;
package we.controller.resp;
import com.wehotel.fizz.ConfigLoader;
import we.fizz.ConfigLoader;
import java.io.Serializable;
import java.util.List;

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.controller.resp;
package we.controller.resp;
import java.io.Serializable;
import java.util.Objects;

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.exception;
package we.exception;
/**
* @author unknown

View File

@@ -15,9 +15,9 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.filter;
package we.filter;
import com.wehotel.config.SystemConfig;
import we.config.SystemConfig;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.Ordered;

View File

@@ -15,10 +15,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.filter;
package we.filter;
import com.wehotel.exception.StopAndResponseException;
import com.wehotel.util.WebUtils;
import we.exception.StopAndResponseException;
import we.util.WebUtils;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.annotation.Order;

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.filter;
package we.filter;
import java.util.Map;

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.filter;
package we.filter;
import java.nio.charset.StandardCharsets;
import java.util.HashMap;
@@ -38,16 +38,16 @@ import org.springframework.web.server.WebFilter;
import org.springframework.web.server.WebFilterChain;
import com.alibaba.fastjson.JSON;
import com.wehotel.flume.clients.log4j2appender.LogService;
import com.wehotel.constants.CommonConstants;
import com.wehotel.fizz.AggregateResource;
import com.wehotel.fizz.AggregateResult;
import com.wehotel.fizz.ConfigLoader;
import com.wehotel.fizz.Pipeline;
import com.wehotel.fizz.input.Input;
import com.wehotel.util.Constants;
import com.wehotel.util.MapUtil;
import com.wehotel.util.WebUtils;
import we.flume.clients.log4j2appender.LogService;
import we.constants.CommonConstants;
import we.fizz.AggregateResource;
import we.fizz.AggregateResult;
import we.fizz.ConfigLoader;
import we.fizz.Pipeline;
import we.fizz.input.Input;
import we.util.Constants;
import we.util.MapUtil;
import we.util.WebUtils;
import io.netty.buffer.UnpooledByteBufAllocator;
import reactor.core.publisher.Flux;

View File

@@ -15,10 +15,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.filter;
package we.filter;
import com.wehotel.flume.clients.log4j2appender.LogService;
import com.wehotel.util.WebUtils;
import we.flume.clients.log4j2appender.LogService;
import we.util.WebUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.core.annotation.Order;

View File

@@ -15,17 +15,17 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.filter;
package we.filter;
import com.wehotel.config.SystemConfig;
import com.wehotel.plugin.FixedPluginFilter;
import com.wehotel.plugin.PluginConfig;
import com.wehotel.plugin.PluginFilter;
import com.wehotel.plugin.auth.*;
import com.wehotel.plugin.stat.StatPluginFilter;
import com.wehotel.util.Constants;
import com.wehotel.util.ReactorUtils;
import com.wehotel.util.WebUtils;
import we.config.SystemConfig;
import we.plugin.FixedPluginFilter;
import we.plugin.PluginConfig;
import we.plugin.PluginFilter;
import we.plugin.auth.*;
import we.plugin.stat.StatPluginFilter;
import we.util.Constants;
import we.util.ReactorUtils;
import we.util.WebUtils;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

View File

@@ -15,9 +15,9 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.filter;
package we.filter;
import com.wehotel.util.WebUtils;
import we.util.WebUtils;
import org.springframework.web.server.ServerWebExchange;
import org.springframework.web.server.WebFilter;
import org.springframework.web.server.WebFilterChain;

View File

@@ -15,13 +15,13 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.filter;
package we.filter;
import com.wehotel.flume.clients.log4j2appender.LogService;
import com.wehotel.legacy.RespEntity;
import com.wehotel.proxy.FizzWebClient;
import com.wehotel.util.ThreadContext;
import com.wehotel.util.WebUtils;
import we.flume.clients.log4j2appender.LogService;
import we.legacy.RespEntity;
import we.proxy.FizzWebClient;
import we.util.ThreadContext;
import we.util.WebUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.core.Ordered;

View File

@@ -14,9 +14,9 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.fizz;
package we.fizz;
import com.wehotel.fizz.input.Input;
import we.fizz.input.Input;
/**
*

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.fizz;
package we.fizz;
import java.util.Map;

View File

@@ -15,14 +15,14 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.fizz;
package we.fizz;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.wehotel.config.AppConfigProperties;
import com.wehotel.fizz.input.ClientInputConfig;
import com.wehotel.fizz.input.Input;
import com.wehotel.fizz.input.InputType;
import we.config.AppConfigProperties;
import we.fizz.input.ClientInputConfig;
import we.fizz.input.Input;
import we.fizz.input.InputType;
import org.apache.commons.io.FileUtils;
import org.noear.snack.ONode;
import org.springframework.beans.factory.annotation.Value;
@@ -42,8 +42,8 @@ import java.util.Map;
import java.util.Objects;
import java.util.concurrent.ConcurrentHashMap;
import static com.wehotel.listener.AggregateRedisConfig.AGGREGATE_REACTIVE_REDIS_TEMPLATE;
import static com.wehotel.util.Constants.Symbol.FORWARD_SLASH;
import static we.listener.AggregateRedisConfig.AGGREGATE_REACTIVE_REDIS_TEMPLATE;
import static we.util.Constants.Symbol.FORWARD_SLASH;
/**
*
* @author francis

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.fizz;
package we.fizz;
import java.util.HashMap;
import java.util.LinkedList;
@@ -25,10 +25,10 @@ import java.util.Map;
import javax.script.ScriptException;
import com.wehotel.fizz.input.ClientInputConfig;
import com.wehotel.fizz.input.InputConfig;
import com.wehotel.schema.util.I18nUtils;
import com.wehotel.util.JsonSchemaUtils;
import we.fizz.input.ClientInputConfig;
import we.fizz.input.InputConfig;
import we.schema.util.I18nUtils;
import we.util.JsonSchemaUtils;
import org.noear.snack.ONode;
import org.slf4j.Logger;
@@ -37,11 +37,11 @@ import org.springframework.util.CollectionUtils;
import org.springframework.util.StringUtils;
import com.alibaba.fastjson.JSON;
import com.wehotel.flume.clients.log4j2appender.LogService;
import com.wehotel.fizz.input.Input;
import com.wehotel.fizz.input.PathMapping;
import com.wehotel.fizz.input.ScriptHelper;
import com.wehotel.util.MapUtil;
import we.flume.clients.log4j2appender.LogService;
import we.fizz.input.Input;
import we.fizz.input.PathMapping;
import we.fizz.input.ScriptHelper;
import we.util.MapUtil;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.fizz;
package we.fizz;
import java.util.ArrayList;
import java.util.HashMap;
@@ -30,11 +30,11 @@ import org.springframework.web.reactive.function.BodyInserters;
import org.springframework.web.reactive.function.client.WebClient;
import com.alibaba.fastjson.JSON;
import com.wehotel.fizz.input.Input;
import com.wehotel.fizz.input.InputConfig;
import com.wehotel.fizz.input.InputContext;
import com.wehotel.fizz.input.InputFactory;
import com.wehotel.fizz.input.InputType;
import we.fizz.input.Input;
import we.fizz.input.InputConfig;
import we.fizz.input.InputContext;
import we.fizz.input.InputFactory;
import we.fizz.input.InputType;
import reactor.core.publisher.Mono;

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.fizz;
package we.fizz;
import java.util.ArrayList;
import java.util.HashMap;
@@ -23,7 +23,7 @@ import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import com.wehotel.constants.CommonConstants;
import we.constants.CommonConstants;
/**
*

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.fizz;
package we.fizz;
import java.util.HashMap;
import java.util.Map;

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.fizz.input;
package we.fizz.input;
import java.util.HashMap;
import java.util.Map;

View File

@@ -14,13 +14,13 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.fizz.input;
package we.fizz.input;
import java.util.HashMap;
import java.util.Map;
import com.wehotel.fizz.StepContext;
import com.wehotel.fizz.StepResponse;
import we.fizz.StepContext;
import we.fizz.StepResponse;
import reactor.core.publisher.Mono;

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.fizz.input;
package we.fizz.input;
import java.util.Map;

View File

@@ -16,13 +16,13 @@
*/
package com.wehotel.fizz.input;
package we.fizz.input;
import java.util.HashMap;
import java.util.Map;
import com.wehotel.fizz.StepContext;
import com.wehotel.fizz.StepResponse;
import we.fizz.StepContext;
import we.fizz.StepResponse;
/**
*

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.fizz.input;
package we.fizz.input;
import java.util.Map;

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.fizz.input;
package we.fizz.input;
/**
*

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.fizz.input;
package we.fizz.input;
/**
*

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.fizz.input;
package we.fizz.input;
import java.util.Map;

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.fizz.input;
package we.fizz.input;
import java.util.Arrays;
import java.util.Collection;
@@ -28,8 +28,8 @@ import java.util.stream.Collectors;
import org.noear.snack.ONode;
import org.springframework.util.CollectionUtils;
import com.wehotel.constants.CommonConstants;
import com.wehotel.fizz.StepContext;
import we.constants.CommonConstants;
import we.fizz.StepContext;
/**
*

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.fizz.input;
package we.fizz.input;
import java.util.HashMap;
import java.util.Map;
@@ -34,13 +34,13 @@ import org.springframework.web.util.UriComponents;
import org.springframework.web.util.UriComponentsBuilder;
import com.alibaba.fastjson.JSON;
import com.wehotel.flume.clients.log4j2appender.LogService;
import com.wehotel.FizzGatewayApplication;
import com.wehotel.constants.CommonConstants;
import com.wehotel.fizz.StepContext;
import com.wehotel.fizz.StepResponse;
import com.wehotel.proxy.FizzWebClient;
import com.wehotel.util.MapUtil;
import we.flume.clients.log4j2appender.LogService;
import we.FizzGatewayApplication;
import we.constants.CommonConstants;
import we.fizz.StepContext;
import we.fizz.StepResponse;
import we.proxy.FizzWebClient;
import we.util.MapUtil;
import reactor.core.publisher.Mono;

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.fizz.input;
package we.fizz.input;
import java.net.MalformedURLException;
import java.net.URL;

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.fizz.input;
package we.fizz.input;
import java.util.Collection;
import java.util.HashMap;
@@ -30,11 +30,11 @@ import org.slf4j.LoggerFactory;
import com.alibaba.fastjson.JSON;
import com.ctrip.framework.apollo.core.utils.StringUtils;
import com.wehotel.constants.CommonConstants;
import com.wehotel.exception.StopAndResponseException;
import com.wehotel.fizz.StepContext;
import com.wehotel.util.Script;
import com.wehotel.util.ScriptUtils;
import we.constants.CommonConstants;
import we.exception.StopAndResponseException;
import we.fizz.StepContext;
import we.util.Script;
import we.util.ScriptUtils;
/**
*

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.flume.clients.log4j2appender;
package we.flume.clients.log4j2appender;
/**
* @author lancer

View File

@@ -15,10 +15,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.legacy;
package we.legacy;
import com.wehotel.util.Constants;
import com.wehotel.util.ThreadContext;
import we.util.Constants;
import we.util.ThreadContext;
import org.springframework.lang.Nullable;
/**

View File

@@ -15,11 +15,11 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.listener;
package we.listener;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.TypeReference;
import com.wehotel.fizz.ConfigLoader;
import we.fizz.ConfigLoader;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Qualifier;
@@ -37,7 +37,7 @@ import javax.annotation.PreDestroy;
import java.net.InetAddress;
import java.util.List;
import static com.wehotel.listener.AggregateRedisConfig.AGGREGATE_REACTIVE_REDIS_MESSAGE_LISTENER_CONTAINER;
import static we.listener.AggregateRedisConfig.AGGREGATE_REACTIVE_REDIS_MESSAGE_LISTENER_CONTAINER;
/**
* 聚合Channel监听器

View File

@@ -15,10 +15,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.listener;
package we.listener;
import com.wehotel.config.RedisReactiveConfig;
import com.wehotel.config.RedisReactiveProperties;
import we.config.RedisReactiveConfig;
import we.config.RedisReactiveProperties;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;

View File

@@ -14,9 +14,9 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.plugin;
package we.plugin;
import com.wehotel.FizzGatewayApplication;
import we.FizzGatewayApplication;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

View File

@@ -14,10 +14,10 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.plugin;
package we.plugin;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.wehotel.util.JacksonUtils;
import we.util.JacksonUtils;
import org.apache.commons.lang3.StringUtils;
import java.util.Collections;

View File

@@ -14,12 +14,12 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.plugin;
package we.plugin;
import com.wehotel.flume.clients.log4j2appender.LogService;
import com.wehotel.filter.FilterResult;
import com.wehotel.legacy.RespEntity;
import com.wehotel.util.WebUtils;
import we.flume.clients.log4j2appender.LogService;
import we.filter.FilterResult;
import we.legacy.RespEntity;
import we.util.WebUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpStatus;

View File

@@ -14,11 +14,11 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.plugin.auth;
package we.plugin.auth;
import com.wehotel.plugin.PluginConfig;
import com.wehotel.util.Constants;
import com.wehotel.util.JacksonUtils;
import we.plugin.PluginConfig;
import we.util.Constants;
import we.util.JacksonUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.http.HttpMethod;

View File

@@ -14,15 +14,15 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.plugin.auth;
package we.plugin.auth;
import com.ctrip.framework.apollo.model.ConfigChange;
import com.ctrip.framework.apollo.model.ConfigChangeEvent;
import com.ctrip.framework.apollo.spring.annotation.ApolloConfigChangeListener;
import com.wehotel.flume.clients.log4j2appender.LogService;
import com.wehotel.config.SystemConfig;
import com.wehotel.listener.AggregateRedisConfig;
import com.wehotel.util.*;
import we.flume.clients.log4j2appender.LogService;
import we.config.SystemConfig;
import we.listener.AggregateRedisConfig;
import we.util.*;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

View File

@@ -14,9 +14,9 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.plugin.auth;
package we.plugin.auth;
import com.wehotel.util.JacksonUtils;
import we.util.JacksonUtils;
import org.apache.commons.lang3.StringUtils;
import java.util.Arrays;

View File

@@ -14,13 +14,13 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.plugin.auth;
package we.plugin.auth;
import com.wehotel.flume.clients.log4j2appender.LogService;
import com.wehotel.listener.AggregateRedisConfig;
import com.wehotel.util.Constants;
import com.wehotel.util.JacksonUtils;
import com.wehotel.util.ReactorUtils;
import we.flume.clients.log4j2appender.LogService;
import we.listener.AggregateRedisConfig;
import we.util.Constants;
import we.util.JacksonUtils;
import we.util.ReactorUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.data.redis.core.ReactiveStringRedisTemplate;

View File

@@ -14,11 +14,11 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.plugin.auth;
package we.plugin.auth;
import com.wehotel.flume.clients.log4j2appender.LogService;
import com.wehotel.plugin.PluginFilter;
import com.wehotel.util.WebUtils;
import we.flume.clients.log4j2appender.LogService;
import we.plugin.PluginFilter;
import we.util.WebUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

View File

@@ -14,7 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.plugin.auth;
package we.plugin.auth;
import org.springframework.web.server.ServerWebExchange;
import reactor.core.publisher.Mono;

View File

@@ -14,7 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.plugin.auth;
package we.plugin.auth;
import com.fasterxml.jackson.annotation.JsonIgnore;
import org.slf4j.Logger;

View File

@@ -14,10 +14,10 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.plugin.auth;
package we.plugin.auth;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.wehotel.util.Constants;
import we.util.Constants;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpMethod;

View File

@@ -14,13 +14,13 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.plugin.stat;
package we.plugin.stat;
import com.wehotel.flume.clients.log4j2appender.LogService;
import com.wehotel.plugin.PluginFilter;
import com.wehotel.util.Constants;
import com.wehotel.util.ThreadContext;
import com.wehotel.util.WebUtils;
import we.flume.clients.log4j2appender.LogService;
import we.plugin.PluginFilter;
import we.util.Constants;
import we.util.ThreadContext;
import we.util.WebUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;

View File

@@ -14,7 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.proxy;
package we.proxy;
/**
* @author lancer

View File

@@ -14,17 +14,17 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.proxy;
package we.proxy;
import com.netflix.appinfo.InstanceInfo;
import com.netflix.discovery.EurekaClient;
import com.netflix.discovery.shared.Applications;
import com.wehotel.flume.clients.log4j2appender.LogService;
import com.wehotel.config.AggrWebClientConfig;
import com.wehotel.config.ProxyWebClientConfig;
import com.wehotel.util.Constants;
import com.wehotel.util.ThreadContext;
import com.wehotel.util.WebUtils;
import we.flume.clients.log4j2appender.LogService;
import we.config.AggrWebClientConfig;
import we.config.ProxyWebClientConfig;
import we.util.Constants;
import we.util.ThreadContext;
import we.util.WebUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;

View File

@@ -18,7 +18,7 @@
* @author lancer
*
* 设想的包结构
* com.wehotel.fizz
* we.fizz
* .config
* .filter
* .util
@@ -27,4 +27,4 @@
* .route 路由逻辑
* .legacy
*/
package com.wehotel.proxy;
package we.proxy;

View File

@@ -14,7 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.util;
package we.util;
import org.apache.commons.lang3.SystemUtils;

View File

@@ -14,9 +14,9 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.util;
package we.util;
import com.wehotel.util.Constants.DatetimePattern;
import we.util.Constants.DatetimePattern;
import java.time.*;
import java.time.format.DateTimeFormatter;

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.util;
package we.util;
import org.apache.commons.codec.binary.Hex;

View File

@@ -14,7 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.util;
package we.util;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.core.JsonFactory;
@@ -23,8 +23,8 @@ import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.*;
import com.fasterxml.jackson.databind.module.SimpleModule;
import com.wehotel.plugin.auth.ApiConfig;
import com.wehotel.util.Constants.DatetimePattern;
import we.plugin.auth.ApiConfig;
import we.util.Constants.DatetimePattern;
import java.io.IOException;
import java.time.LocalDate;

View File

@@ -14,7 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.util;
package we.util;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;

View File

@@ -14,7 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.util;
package we.util;
import java.util.ArrayList;
import java.util.HashMap;

View File

@@ -14,7 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.util;
package we.util;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

View File

@@ -14,7 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.util;
package we.util;
import reactor.core.publisher.Mono;

View File

@@ -14,7 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.util;
package we.util;
/**
* @author lancer

View File

@@ -14,7 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.util;
package we.util;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.apache.commons.lang3.StringUtils;

View File

@@ -14,7 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.util;
package we.util;
import java.text.SimpleDateFormat;
import java.util.HashMap;

View File

@@ -14,7 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.util;
package we.util;
import org.apache.commons.lang3.StringUtils;

View File

@@ -14,11 +14,11 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wehotel.util;
package we.util;
import com.wehotel.flume.clients.log4j2appender.LogService;
import com.wehotel.filter.FilterResult;
import com.wehotel.legacy.RespEntity;
import we.flume.clients.log4j2appender.LogService;
import we.filter.FilterResult;
import we.legacy.RespEntity;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

View File

@@ -1,4 +1,4 @@
package com.wehotel;
package we;
import org.junit.jupiter.api.Test;