add base operation record code

This commit is contained in:
Granty1
2020-06-28 22:04:54 +08:00
parent f6c951dd13
commit 33340c2eb8
5 changed files with 84 additions and 23 deletions
+2
View File
@@ -14,6 +14,8 @@ import (
func Routers() *gin.Engine {
var Router = gin.Default()
// 操作记录
Router.Use(middleware.RecordRequestBody(), middleware.OperationRecord())
// Router.Use(middleware.LoadTls()) // 打开就能玩https了
global.GVA_LOG.Debug("use middleware logger")
// 跨域