Commit f4a74aed authored by chenweijian's avatar chenweijian

uuid

parent 91ba8c63
......@@ -5,6 +5,7 @@ import (
"fmt"
"git.hilo.cn/hilo-common/resource/config"
"git.hilo.cn/hilo-common/resource/mysql"
uuid "github.com/satori/go.uuid"
"strconv"
"strings"
"time"
......@@ -114,3 +115,7 @@ func Decimal(value float64) float64 {
}
return newValue
}
func GetUUID() string {
return strings.Replace(uuid.NewV4().String(), "-", "", -1)
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment