refactor(log): continew-starter-log-common => continew-starter-log-core

This commit is contained in:
2024-02-19 21:04:17 +08:00
parent 4ffc5dc1d4
commit 56a22c4bce
19 changed files with 34 additions and 34 deletions

View File

@@ -398,10 +398,10 @@
<version>${revision}</version>
</dependency>
<!-- 日志模块 - 公共模块 -->
<!-- 日志模块 - 核心模块 -->
<dependency>
<groupId>top.charles7c.continew</groupId>
<artifactId>continew-starter-log-common</artifactId>
<artifactId>continew-starter-log-core</artifactId>
<version>${revision}</version>
</dependency>

View File

@@ -9,6 +9,6 @@
<version>${revision}</version>
</parent>
<artifactId>continew-starter-log-common</artifactId>
<description>ContiNew Starter 日志模块 - 公共模块</description>
<artifactId>continew-starter-log-core</artifactId>
<description>ContiNew Starter 日志模块 - 核心模块</description>
</project>

View File

@@ -14,9 +14,9 @@
* limitations under the License.
*/
package top.charles7c.continew.starter.log.common.annotation;
package top.charles7c.continew.starter.log.core.annotation;
import top.charles7c.continew.starter.log.common.enums.Include;
import top.charles7c.continew.starter.log.core.enums.Include;
import java.lang.annotation.*;

View File

@@ -14,9 +14,9 @@
* limitations under the License.
*/
package top.charles7c.continew.starter.log.common.dao;
package top.charles7c.continew.starter.log.core.dao;
import top.charles7c.continew.starter.log.common.model.LogRecord;
import top.charles7c.continew.starter.log.core.model.LogRecord;
import java.util.Collections;
import java.util.List;

View File

@@ -14,10 +14,10 @@
* limitations under the License.
*/
package top.charles7c.continew.starter.log.common.dao.impl;
package top.charles7c.continew.starter.log.core.dao.impl;
import top.charles7c.continew.starter.log.common.dao.LogDao;
import top.charles7c.continew.starter.log.common.model.LogRecord;
import top.charles7c.continew.starter.log.core.dao.LogDao;
import top.charles7c.continew.starter.log.core.model.LogRecord;
import java.util.LinkedList;
import java.util.List;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package top.charles7c.continew.starter.log.common.enums;
package top.charles7c.continew.starter.log.core.enums;
import java.util.Collections;
import java.util.LinkedHashSet;

View File

@@ -14,9 +14,9 @@
* limitations under the License.
*/
package top.charles7c.continew.starter.log.common.model;
package top.charles7c.continew.starter.log.core.model;
import top.charles7c.continew.starter.log.common.enums.Include;
import top.charles7c.continew.starter.log.core.enums.Include;
import java.time.Clock;
import java.time.Duration;

View File

@@ -14,12 +14,12 @@
* limitations under the License.
*/
package top.charles7c.continew.starter.log.common.model;
package top.charles7c.continew.starter.log.core.model;
import cn.hutool.core.text.CharSequenceUtil;
import org.springframework.http.HttpHeaders;
import top.charles7c.continew.starter.core.util.IpUtils;
import top.charles7c.continew.starter.log.common.enums.Include;
import top.charles7c.continew.starter.log.core.enums.Include;
import top.charles7c.continew.starter.web.util.ServletUtils;
import java.net.URI;

View File

@@ -14,9 +14,9 @@
* limitations under the License.
*/
package top.charles7c.continew.starter.log.common.model;
package top.charles7c.continew.starter.log.core.model;
import top.charles7c.continew.starter.log.common.enums.Include;
import top.charles7c.continew.starter.log.core.enums.Include;
import java.util.*;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package top.charles7c.continew.starter.log.common.model;
package top.charles7c.continew.starter.log.core.model;
import java.net.URI;
import java.util.Map;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package top.charles7c.continew.starter.log.common.model;
package top.charles7c.continew.starter.log.core.model;
import java.util.Map;

View File

@@ -25,10 +25,10 @@
<artifactId>transmittable-thread-local</artifactId>
</dependency>
<!-- 日志模块 - 公共模块 -->
<!-- 日志模块 - 核心模块 -->
<dependency>
<groupId>top.charles7c.continew</groupId>
<artifactId>continew-starter-log-common</artifactId>
<artifactId>continew-starter-log-core</artifactId>
</dependency>
</dependencies>
</project>

View File

@@ -26,8 +26,8 @@ import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import top.charles7c.continew.starter.log.common.dao.LogDao;
import top.charles7c.continew.starter.log.common.dao.impl.LogDaoDefaultImpl;
import top.charles7c.continew.starter.log.core.dao.LogDao;
import top.charles7c.continew.starter.log.core.dao.impl.LogDaoDefaultImpl;
import top.charles7c.continew.starter.log.httptracepro.handler.LogFilter;
import top.charles7c.continew.starter.log.httptracepro.handler.LogInterceptor;

View File

@@ -18,7 +18,7 @@ package top.charles7c.continew.starter.log.httptracepro.autoconfigure;
import org.springframework.boot.context.properties.ConfigurationProperties;
import top.charles7c.continew.starter.core.constant.PropertiesConstants;
import top.charles7c.continew.starter.log.common.enums.Include;
import top.charles7c.continew.starter.log.core.enums.Include;
import java.util.HashSet;
import java.util.Set;

View File

@@ -26,7 +26,7 @@ import org.springframework.web.filter.OncePerRequestFilter;
import org.springframework.web.util.ContentCachingRequestWrapper;
import org.springframework.web.util.ContentCachingResponseWrapper;
import org.springframework.web.util.WebUtils;
import top.charles7c.continew.starter.log.common.enums.Include;
import top.charles7c.continew.starter.log.core.enums.Include;
import top.charles7c.continew.starter.log.httptracepro.autoconfigure.LogProperties;
import java.io.IOException;

View File

@@ -30,11 +30,11 @@ import org.springframework.boot.autoconfigure.web.ServerProperties;
import org.springframework.lang.NonNull;
import org.springframework.web.method.HandlerMethod;
import org.springframework.web.servlet.HandlerInterceptor;
import top.charles7c.continew.starter.log.common.annotation.Log;
import top.charles7c.continew.starter.log.common.dao.LogDao;
import top.charles7c.continew.starter.log.common.enums.Include;
import top.charles7c.continew.starter.log.common.model.LogRecord;
import top.charles7c.continew.starter.log.common.model.LogResponse;
import top.charles7c.continew.starter.log.core.annotation.Log;
import top.charles7c.continew.starter.log.core.dao.LogDao;
import top.charles7c.continew.starter.log.core.enums.Include;
import top.charles7c.continew.starter.log.core.model.LogRecord;
import top.charles7c.continew.starter.log.core.model.LogResponse;
import top.charles7c.continew.starter.log.httptracepro.autoconfigure.LogProperties;
import java.time.Clock;

View File

@@ -25,7 +25,7 @@ import org.springframework.web.util.ContentCachingRequestWrapper;
import org.springframework.web.util.UriUtils;
import org.springframework.web.util.WebUtils;
import top.charles7c.continew.starter.core.constant.StringConstants;
import top.charles7c.continew.starter.log.common.model.RecordableHttpRequest;
import top.charles7c.continew.starter.log.core.model.RecordableHttpRequest;
import java.net.URI;
import java.net.URISyntaxException;

View File

@@ -23,7 +23,7 @@ import jakarta.servlet.http.HttpServletResponse;
import org.springframework.web.util.ContentCachingResponseWrapper;
import org.springframework.web.util.WebUtils;
import top.charles7c.continew.starter.core.constant.StringConstants;
import top.charles7c.continew.starter.log.common.model.RecordableHttpResponse;
import top.charles7c.continew.starter.log.core.model.RecordableHttpResponse;
import top.charles7c.continew.starter.web.util.ServletUtils;
import java.util.*;

View File

@@ -14,7 +14,7 @@
<description>ContiNew Starter 日志模块</description>
<modules>
<module>continew-starter-log-common</module>
<module>continew-starter-log-core</module>
<module>continew-starter-log-httptrace-pro</module>
</modules>