From f4a74aedc4df619863ceb8172f7ce342de325aa4 Mon Sep 17 00:00:00 2001 From: chenweijian <820961417@qq.com> Date: Thu, 3 Aug 2023 14:38:06 +0800 Subject: [PATCH] uuid --- utils/utils.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/utils/utils.go b/utils/utils.go index 791d774..90b2249 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -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) +} -- 2.22.0