u
This commit is contained in:
1 parent
d04d22723b
commit
4ce951dd56
30 files changed
+982
-74
No files matched your search
@@ -0,0 +1,9 @@
|
||||
package config
|
||||
|
||||
import "allapp/utils/uniqueid"
|
||||
|
||||
// 初始化雪花id
|
||||
func initUniqueId() {
|
||||
options := uniqueid.NewIdGeneratorOptions(conf.UniqueID.WorkerID)
|
||||
uniqueid.SetIdGenerator(options)
|
||||
}
|
||||
Reference in new issue
Block a user