Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
91f65064ff | ||
![]() |
06d888e8de |
18
log/log.go
18
log/log.go
@@ -36,7 +36,7 @@ const (
|
||||
)
|
||||
|
||||
type Operator struct {
|
||||
ID int // 系统ID设置0
|
||||
ID int `json:"id"` // 系统ID设置0
|
||||
OperatorType OperatorType `json:"operator_type"`
|
||||
}
|
||||
|
||||
@@ -49,14 +49,18 @@ type LogInfo struct {
|
||||
Result interface{} `json:"result,omitempty"` // 结果,返回值,传指针,如果是报错,传err
|
||||
}
|
||||
|
||||
type param struct {
|
||||
Type string `json:"type"`
|
||||
Value interface{} `json:"value"`
|
||||
type TempGLog struct {
|
||||
Time string `json:"Time"`
|
||||
TraceId string `json:"TraceId"`
|
||||
Level string `json:"Level"`
|
||||
Content string `json:"Content"`
|
||||
}
|
||||
|
||||
type result struct {
|
||||
Type string `json:"type"`
|
||||
Value interface{} `json:"value"`
|
||||
type GLog struct {
|
||||
Time string `json:"Time"`
|
||||
TraceId string `json:"TraceId"`
|
||||
Level string `json:"Level"`
|
||||
Content *LogInfo `json:"Content"`
|
||||
}
|
||||
|
||||
func ZapDebug(logger *zap.Logger, log *LogInfo) {
|
||||
|
Reference in New Issue
Block a user