From 79e49306efdc477cebb853cb61b1075dd8f0dc6d Mon Sep 17 00:00:00 2001 From: bryanqiu Date: Fri, 2 Dec 2022 14:16:36 +0800 Subject: [PATCH] rename TXID to SIGNID --- model/t_uid/t_uid.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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()