Upgrade code generation supports drop-down box merging and dictionary usage

This commit is contained in:
zhangwenjian committed 2020-06-05 20:43:58 +08:00
1 parent c0b8199c36
commit 259dec9c94
11 files changed
+273 -177

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
package middleware
import (
"github.com/gin-gonic/gin"
)
func InitMiddleware(r *gin.Engine) {
// 日志处理
r.Use(LoggerToFile())
// 自定义错误处理
r.Use(CustomError)
// NoCache is a middleware function that appends headers
r.Use(NoCache)
// 跨域处理
r.Use(Options)
// Secure is a middleware function that appends security
r.Use(Secure)
// Set X-Request-Id header
r.Use(RequestId())
}