gorm升级到v2版本
This commit is contained in:
1 parent
93cfe443d6
commit
60c7496f7b
56 files changed
+630
-477
No files matched your search
+2
-5
@@ -23,7 +23,7 @@ func IsStringEmpty(str string) bool {
|
||||
|
||||
func GetUUID() string {
|
||||
u := uuid.NewV4()
|
||||
return strings.ReplaceAll(u.String(),"-","")
|
||||
return strings.ReplaceAll(u.String(), "-", "")
|
||||
}
|
||||
|
||||
func PathExists(path string) bool {
|
||||
@@ -76,9 +76,6 @@ func GetCurrentTimeStamp() int64 {
|
||||
return time.Now().UnixNano() / 1e6
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
//slice去重
|
||||
func RemoveRepByMap(slc []string) []string {
|
||||
result := []string{}
|
||||
@@ -91,4 +88,4 @@ func RemoveRepByMap(slc []string) []string {
|
||||
}
|
||||
}
|
||||
return result
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user