1
0
mirror of synced 2025-12-25 14:37:57 +08:00

auto commit

This commit is contained in:
zhouzj
2021-03-25 00:41:06 +08:00
parent 60de761e14
commit 3a2013982f
5 changed files with 14 additions and 5 deletions

View File

@@ -8,7 +8,7 @@ package contract
type IdGeneratorOptions struct {
Method uint16 // 雪花计算方法,1-漂移算法|2-传统算法默认1
BaseTime int64 // 基础时间,不能超过当前系统时间
BaseTime int64 // 基础时间ms单位,不能超过当前系统时间
WorkerId uint16 // 机器码,与 WorkerIdBitLength 有关系
WorkerIdBitLength byte // 机器码位长范围1-21要求序列数位长+机器码位长不超过22
SeqBitLength byte // 序列数位长范围2-21要求序列数位长+机器码位长不超过22