fix: sourceip 64长度

This commit is contained in:
tbphp
2025-07-25 13:46:16 +08:00
parent adb5397473
commit 53cf5b0b7e

View File

@@ -80,7 +80,7 @@ type RequestLog struct {
GroupName string `gorm:"type:varchar(255);index" json:"group_name"`
KeyValue string `gorm:"type:varchar(1024)" json:"key_value"`
IsSuccess bool `gorm:"not null" json:"is_success"`
SourceIP string `gorm:"type:varchar(45)" json:"source_ip"`
SourceIP string `gorm:"type:varchar(64)" json:"source_ip"`
StatusCode int `gorm:"not null" json:"status_code"`
RequestPath string `gorm:"type:varchar(500)" json:"request_path"`
Duration int64 `gorm:"not null" json:"duration_ms"`