File size: 573 Bytes
2986042
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package model

// DebugLogEntry 调试日志条目(记录上游请求/响应原始数据)
// LogID 与 logs.id 1:1 对应,直接作为 debug_logs 主键
type DebugLogEntry struct {
	LogID       int64  `json:"log_id"`
	CreatedAt   int64  `json:"created_at"`
	ReqMethod   string `json:"req_method"`
	ReqURL      string `json:"req_url"`
	ReqHeaders  string `json:"req_headers"` // JSON string
	ReqBody     []byte `json:"req_body"`
	RespStatus  int    `json:"resp_status"`
	RespHeaders string `json:"resp_headers"` // JSON string
	RespBody    []byte `json:"resp_body"`
}