This commit is contained in:
aozhiwei 2024-04-04 10:24:09 +08:00
parent ba7db1fa1f
commit 1a19949e64

9
app.go
View File

@ -17,7 +17,8 @@ import (
type App interface {
GetPkgName() string
NewUuid() int64
NewGlobalUuid() string
NewNodeUuid() int64
GetInstanceId() int32
GetNodeId() int32
GetZoneId() int32
@ -183,7 +184,11 @@ func (this *app) run() {
}
}
func (this *app) NewUuid() int64 {
func (this *app) NewGlobalUuid() string {
return q5.ToString(this.uuid.Generate())
}
func (this *app) NewNodeUuid() int64 {
return this.uuid.Generate()
}