mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 02:48:34 +08:00
16 lines
320 B
Go
16 lines
320 B
Go
package ginx
|
|
|
|
type LogInfo struct {
|
|
LogResp bool // 是否记录返回结果
|
|
Description string // 请求描述
|
|
}
|
|
|
|
func NewLogInfo(description string) *LogInfo {
|
|
return &LogInfo{Description: description, LogResp: false}
|
|
}
|
|
|
|
func (i *LogInfo) WithLogResp(logResp bool) *LogInfo {
|
|
i.LogResp = logResp
|
|
return i
|
|
}
|