diff --git a/model/t_uid/t_uid.go b/model/t_uid/t_uid.go index 48a196e..e9d0bc6 100644 --- a/model/t_uid/t_uid.go +++ b/model/t_uid/t_uid.go @@ -27,8 +27,8 @@ type typeInfo struct { var table string = "t_uid" // id range table name var typeSupported = map[string]typeInfo{ - "TXID": typeInfo{ - Name: "TXID", + "SIGNID": typeInfo{ + Name: "SIGNID", RangeLength: 3, }, "USERID": typeInfo{ @@ -76,6 +76,7 @@ func CreateIdRange(db *gorm.DB, typ, prefix string) (start int64, length int, er } selfid = "TODO" ) + log.Infof("start CreateIdRange...") // Step 2. get lastid && lock root(type+prefix) var tx = db.Begin()