update func name
This commit is contained in:
parent
cc6975ec98
commit
d94d4b0e9f
@ -85,12 +85,12 @@ func getLogResponseHeader(ctx *gin.Context, cfg *AccessConfig) map[string][]stri
|
||||
return responseHeaderTable
|
||||
}
|
||||
|
||||
// Access 记录请求日志
|
||||
// LogRequest 记录请求日志
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 10:55 2022/7/14
|
||||
func Access(cfg *AccessConfig) gin.HandlerFunc {
|
||||
func LogRequest(cfg *AccessConfig) gin.HandlerFunc {
|
||||
fillCfg(cfg)
|
||||
return func(ctx *gin.Context) {
|
||||
// 未传入配置或者未传入日志实例
|
||||
|
Loading…
Reference in New Issue
Block a user