调整整体架构写法
调整db用法 调整日志用法 调整模版
This commit is contained in:
1 parent
734a48dbb8
commit
e2952fa393
137 files changed
+3638
-3544
No files matched your search
+1
-1
@@ -6,7 +6,7 @@ import (
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
|
||||
"go-admin/common/log"
|
||||
log "github.com/go-admin-team/go-admin-core/logger"
|
||||
"go-admin/tools"
|
||||
)
|
||||
|
||||
|
||||
@@ -1,13 +1,11 @@
|
||||
package config
|
||||
|
||||
type Logger struct {
|
||||
Path string
|
||||
Level string
|
||||
Stdout bool
|
||||
EnabledBUS bool
|
||||
EnabledREQ bool
|
||||
EnabledDB bool
|
||||
EnabledJOB bool `default:"false"`
|
||||
Type string
|
||||
Path string
|
||||
Level string
|
||||
Stdout string
|
||||
EnabledDB bool
|
||||
}
|
||||
|
||||
var LoggerConfig = new(Logger)
|
||||
+4
-1
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user