调整整体架构写法

调整db用法
调整日志用法
调整模版
This commit is contained in:
linwenxiang committed 2021-03-04 23:45:16 +08:00
1 parent 734a48dbb8
commit e2952fa393
137 files changed
+3638 -3544

No files matched your search

+4 -1
View File
@@ -13,7 +13,10 @@ import (
"gorm.io/gorm"
)
const TrafficKey = "X-Request-Id"
const (
TrafficKey = "X-Request-Id"
LoggerKey = "_go-admin-logger-request"
)
func CompareHashAndPassword(e string, p string) (bool, error) {
err := bcrypt.CompareHashAndPassword([]byte(e), []byte(p))