refactor: 重构SQL基础实体并集成雪花ID生成器

将主键ID类型从uint64改为int64,移除Bid和Deleter字段;在insertHook中集成Snowflake算法自动生成ID;更新ModuleAssetId为int64类型。
This commit is contained in:
2026-03-19 17:07:01 +08:00
parent 7714326db7
commit d1f80c3109
5 changed files with 22 additions and 23 deletions

1
go.mod
View File

@@ -4,6 +4,7 @@ go 1.25.5
require (
github.com/alibaba/sentinel-golang v1.0.4
github.com/bwmarrin/snowflake v0.3.0
github.com/cloudwego/eino v0.7.26
github.com/gogf/gf/contrib/registry/consul/v2 v2.9.5
github.com/gogf/gf/contrib/trace/otlphttp/v2 v2.9.5