This commit is contained in:
zhaoxiaorong
2025-02-07 13:01:38 +08:00
parent ebcdfe1ee8
commit 57a0d8ae81
52 changed files with 3313 additions and 0 deletions

10
utils/identity.go Normal file
View File

@@ -0,0 +1,10 @@
package utils
import (
ulid "github.com/oklog/ulid/v2"
)
// remove nanoid,uuid,replace to ulid
func ULID() string {
return ulid.Make().String()
}