添加中间件
This commit is contained in:
11
internal/middleware/response.go
Normal file
11
internal/middleware/response.go
Normal file
@ -0,0 +1,11 @@
|
||||
package middleware
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/net/ghttp"
|
||||
)
|
||||
|
||||
// Response 统一响应中间件
|
||||
func Response(r *ghttp.Request) {
|
||||
r.Middleware.Next()
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user