refactor: 调整自增 ID 为分布式 ID

使用 CosId 提供的雪花算法实现
This commit is contained in:
2024-02-13 22:06:34 +08:00
parent 56f67d9089
commit 4779887751
7 changed files with 84 additions and 25 deletions

View File

@@ -13,6 +13,16 @@
<description>公共模块(存放公共工具类,公共配置等)</description>
<dependencies>
<!-- CosId通用、灵活、高性能的分布式 ID 生成器) -->
<dependency>
<groupId>me.ahoo.cosid</groupId>
<artifactId>cosid-spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>me.ahoo.cosid</groupId>
<artifactId>cosid-spring-redis</artifactId>
</dependency>
<!-- SMS4J短信聚合框架轻松集成多家短信服务解决接入多个短信 SDK 的繁琐流程) -->
<dependency>
<groupId>org.dromara.sms4j</groupId>