uuid generator supports generating more than 1 uuid in one time

This commit is contained in:
MaysWind
2023-03-26 23:58:30 +08:00
parent 1d6dbf63c0
commit 7443e8a532
5 changed files with 170 additions and 16 deletions
+1
View File
@@ -3,4 +3,5 @@ package uuid
// UuidGenerator is common uuid generator interface
type UuidGenerator interface {
GenerateUuid(uuidType UuidType) int64
GenerateUuids(uuidType UuidType, count uint8) []int64
}