mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-18 00:34:28 +08:00
uuid generator supports generating more than 1 uuid in one time
This commit is contained in:
@@ -31,3 +31,8 @@ func InitializeUuidGenerator(config *settings.Config) error {
|
||||
func (u *UuidContainer) GenerateUuid(uuidType UuidType) int64 {
|
||||
return u.Current.GenerateUuid(uuidType)
|
||||
}
|
||||
|
||||
// GenerateUuids returns new uuids by the current uuid generator
|
||||
func (u *UuidContainer) GenerateUuids(uuidType UuidType, count uint8) []int64 {
|
||||
return u.Current.GenerateUuids(uuidType, count)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user