fx build fix
This commit is contained in:
15
api/server/internal/mutil/param/logger.go
Normal file
15
api/server/internal/mutil/param/logger.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package mutil
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
func PLog(ph ParamHelper, r *http.Request) zap.Field {
|
||||
return zap.String(ph.Name(), ph.GetID(r))
|
||||
}
|
||||
|
||||
func PLogType(ph ParamHelper) zap.Field {
|
||||
return zap.String("object", ph.Name())
|
||||
}
|
||||
Reference in New Issue
Block a user