mirror of
https://github.com/Weasley-J/chinaport-data-signature.git
synced 2026-10-19 16:15:47 +00:00
refactor(data-model): groupId 迁移至 io.github.julxxy,版本升至 1.0.9,GUID 标识段改为 CEBSIGN
- GUIDUtil 中间固定段由人名改为 CEBSIGN,格式与 36 位总长不变 - data-model pom groupId 改为 io.github.julxxy,版本 1.0.8 -> 1.0.9 - webapp 依赖及 smart-doc include 同步切换到新坐标 - 两处 README 的 Maven Central 徽章/链接指向新坐标,补充 groupId 迁移说明 - TODO 增加发布 1.0.9 到中央仓库的待办
This commit is contained in:
@@ -1,26 +0,0 @@
|
||||
# Getting Started
|
||||
|
||||
### Reference Documentation
|
||||
|
||||
For further reference, please consider the following sections:
|
||||
|
||||
* [Official Apache Maven documentation](https://maven.apache.org/guides/index.html)
|
||||
* [Spring Boot Maven Plugin Reference Guide](https://docs.spring.io/spring-boot/docs/3.0.0-M1/maven-plugin/reference/html/)
|
||||
* [Create an OCI image](https://docs.spring.io/spring-boot/docs/3.0.0-M1/maven-plugin/reference/html/#build-image)
|
||||
* [Spring Web](https://docs.spring.io/spring-boot/docs/2.6.3/reference/htmlsingle/#boot-features-developing-web-applications)
|
||||
* [Cloud Bootstrap](https://spring.io/projects/spring-cloud-commons)
|
||||
* [Validation](https://docs.spring.io/spring-boot/docs/2.6.3/reference/htmlsingle/#boot-features-validation)
|
||||
* [Spring Configuration Processor](https://docs.spring.io/spring-boot/docs/2.6.3/reference/htmlsingle/#configuration-metadata-annotation-processor)
|
||||
* [WebSocket](https://docs.spring.io/spring-boot/docs/2.6.3/reference/htmlsingle/#boot-features-websockets)
|
||||
* [Cloud LoadBalancer](https://docs.spring.io/spring-cloud-commons/docs/current/reference/html/#spring-cloud-loadbalancer)
|
||||
|
||||
### Guides
|
||||
|
||||
The following guides illustrate how to use some features concretely:
|
||||
|
||||
* [Building a RESTful Web Service](https://spring.io/guides/gs/rest-service/)
|
||||
* [Serving Web Content with Spring MVC](https://spring.io/guides/gs/serving-web-content/)
|
||||
* [Building REST services with Spring](https://spring.io/guides/tutorials/bookmarks/)
|
||||
* [Using WebSocket to build an interactive web application](https://spring.io/guides/gs/messaging-stomp-websocket/)
|
||||
* [Client-side load-balancing with Spring Cloud LoadBalancer](https://spring.io/guides/gs/spring-cloud-loadbalancer/)
|
||||
|
||||
@@ -12,7 +12,7 @@ _A free, open-source end-to-end signature solution for Chinese E-Port CEBXxxMess
|
||||
[](https://hub.docker.com/r/weasleyj/chinaport-data-signature)
|
||||
[](https://hub.docker.com/r/weasleyj/chinaport-data-signature)
|
||||
[](https://hub.docker.com/r/weasleyj/chinaport-data-signature/tags)
|
||||
[](https://search.maven.org/artifact/io.github.weasley-j/chinaport-data-signature-data-model)
|
||||
[](https://central.sonatype.com/artifact/io.github.julxxy/chinaport-data-signature-data-model)
|
||||
|
||||
[](https://openjdk.org/)
|
||||
[](https://spring.io/projects/spring-boot)
|
||||
@@ -60,14 +60,15 @@ _A free, open-source end-to-end signature solution for Chinese E-Port CEBXxxMess
|
||||
- 单体应用:直接下载 [Releases](https://github.com/julxxy/chinaport-data-signature/releases)
|
||||
- 微服务:切换 [feature_microservice](https://github.com/julxxy/chinaport-data-signature/tree/feature_microservice) 分支
|
||||
- Docker 镜像:[Docker Hub](https://hub.docker.com/repository/docker/weasleyj/chinaport-data-signature)
|
||||
- Java项目集成:使用 [Maven 数据模型](https://central.sonatype.com/artifact/io.github.weasley-j/chinaport-data-signature-data-model), Maven Integration
|
||||
- Java项目集成:使用 [Maven 数据模型](https://central.sonatype.com/artifact/io.github.julxxy/chinaport-data-signature-data-model), Maven Integration
|
||||
```xml
|
||||
<dependency>
|
||||
<groupId>io.github.weasley-j</groupId>
|
||||
<groupId>io.github.julxxy</groupId>
|
||||
<artifactId>chinaport-data-signature-data-model</artifactId>
|
||||
<version>Latest Version</version>
|
||||
</dependency>
|
||||
```
|
||||
> `1.0.9` 起 `groupId` 由 `io.github.weasley-j` 迁移为 `io.github.julxxy`,旧坐标不再更新
|
||||
|
||||
> 建议 Windows 平台用 [Git Bash](https://gitforwindows.org/) 启动(终端日志不乱码)
|
||||
|
||||
|
||||
@@ -1,9 +1,22 @@
|
||||
# 中国电子口岸加签服务的数据模型
|
||||
|
||||
[](https://search.maven.org/artifact/io.github.weasley-j/chinaport-data-signature-data-model)
|
||||
[](https://central.sonatype.com/artifact/io.github.julxxy/chinaport-data-signature-data-model)
|
||||
|
||||
> 海关报文加签的数据模型,方便各方引入依赖。
|
||||
|
||||
## 0 引入依赖
|
||||
|
||||
```xml
|
||||
<dependency>
|
||||
<groupId>io.github.julxxy</groupId>
|
||||
<artifactId>chinaport-data-signature-data-model</artifactId>
|
||||
<version>1.0.9</version>
|
||||
</dependency>
|
||||
```
|
||||
|
||||
> 自 `1.0.9` 起 `groupId` 由 `io.github.weasley-j` 迁移为 `io.github.julxxy`,`artifactId` 与 Java 包名不变。
|
||||
> 历史版本(`<= 1.0.8`)仍可通过 [io.github.weasley-j](https://central.sonatype.com/artifact/io.github.weasley-j/chinaport-data-signature-data-model) 获取,但不再更新。
|
||||
|
||||
## 1 目前已实现的数据模型
|
||||
|
||||
### 1.1 海关 179 数据抓取报文
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<groupId>io.github.weasley-j</groupId>
|
||||
<groupId>io.github.julxxy</groupId>
|
||||
<artifactId>chinaport-data-signature-data-model</artifactId>
|
||||
<version>1.0.8</version>
|
||||
<version>1.0.9</version>
|
||||
<packaging>jar</packaging>
|
||||
<name>chinaport-data-signature-data-model</name>
|
||||
<description>中国电子口岸加签服务数据模型: 1. 海关 179 数据抓取; 2. 海关总署xml报文</description>
|
||||
|
||||
+7
-1
@@ -17,6 +17,10 @@ public final class GUIDUtil {
|
||||
"J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V",
|
||||
"W", "X", "Y", "Z"
|
||||
};
|
||||
/**
|
||||
* 报文 GUID 中间的固定标识段(7 位),用于标识报文由本项目生成
|
||||
*/
|
||||
private static final String TAG = "CEBSIGN";
|
||||
|
||||
private static String shortUUID(int length) {
|
||||
if (length <= 0) {
|
||||
@@ -34,12 +38,14 @@ public final class GUIDUtil {
|
||||
|
||||
/**
|
||||
* 获取GUID
|
||||
* <p>
|
||||
* 格式: {@code XXXXXX-CEBSIGN-yyyyMMddHHmmss-XXXXXX},总长 36 位,与标准 UUID 等长
|
||||
*
|
||||
* @return GUID
|
||||
*/
|
||||
public static String getGuid() {
|
||||
String first = shortUUID(6).toUpperCase();
|
||||
String second = "WEASLEY";
|
||||
String second = TAG;
|
||||
String third = LocalDateTime.now().format(FORMATTER);
|
||||
String forth = shortUUID(6).toUpperCase();
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
<java.version>17</java.version>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||
<signature-data-model.version>1.0.8</signature-data-model.version>
|
||||
<signature-data-model.version>1.0.9</signature-data-model.version>
|
||||
<spring-cloud.version>2025.0.0</spring-cloud.version>
|
||||
<maven-compiler-plugin.version>3.14.0</maven-compiler-plugin.version>
|
||||
<maven-source-plugin.version>3.3.1</maven-source-plugin.version>
|
||||
@@ -55,7 +55,7 @@
|
||||
<dependencies>
|
||||
<!-- 数据模型 -->
|
||||
<dependency>
|
||||
<groupId>io.github.weasley-j</groupId>
|
||||
<groupId>io.github.julxxy</groupId>
|
||||
<artifactId>chinaport-data-signature-data-model</artifactId>
|
||||
<version>${signature-data-model.version}</version>
|
||||
</dependency>
|
||||
@@ -354,7 +354,7 @@
|
||||
<exclude>com.alibaba:fastjson</exclude>
|
||||
</excludes>
|
||||
<includes>
|
||||
<include>io.github.weasley-j:chinaport-data-signature-data-model</include>
|
||||
<include>io.github.julxxy:chinaport-data-signature-data-model</include>
|
||||
</includes>
|
||||
</configuration>
|
||||
<executions>
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -49,6 +49,12 @@ api[0].list[1].list.push({
|
||||
url: 'http://localhost:8080/rpc/eport/result/ceb622msg',
|
||||
desc: '查询621进口单申报结果',
|
||||
});
|
||||
api[0].list[1].list.push({
|
||||
order: '3',
|
||||
deprecated: 'false',
|
||||
url: 'http://localhost:8080/rpc/eport/result/ceb900msg',
|
||||
desc: '查询报错信息',
|
||||
});
|
||||
api[0].list.push({
|
||||
alias: 'UkeyHealthController',
|
||||
order: '3',
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
# TODO
|
||||
|
||||
- [ ] 待验证华讯导出证书和系统导出证书之间的差异
|
||||
- [ ] 发布 `chinaport-data-signature-data-model` 1.0.9 到 Maven 中央仓库(groupId 已迁移为 `io.github.julxxy`,需先在 Central Portal 完成该 namespace 校验,再 `mvn clean deploy -pl chinaport-data-signature-data-model`)
|
||||
|
||||
Reference in New Issue
Block a user