1
This commit is contained in:
parent
ba7db1fa1f
commit
1a19949e64
9
app.go
9
app.go
@ -17,7 +17,8 @@ import (
|
|||||||
|
|
||||||
type App interface {
|
type App interface {
|
||||||
GetPkgName() string
|
GetPkgName() string
|
||||||
NewUuid() int64
|
NewGlobalUuid() string
|
||||||
|
NewNodeUuid() int64
|
||||||
GetInstanceId() int32
|
GetInstanceId() int32
|
||||||
GetNodeId() int32
|
GetNodeId() int32
|
||||||
GetZoneId() 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()
|
return this.uuid.Generate()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user