From 53cf5b0b7ef1011510e10cfc994a8dc5a3bc2dc2 Mon Sep 17 00:00:00 2001 From: tbphp Date: Fri, 25 Jul 2025 13:46:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20sourceip=2064=E9=95=BF=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/models/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/models/types.go b/internal/models/types.go index 460b10c..057e2ab 100644 --- a/internal/models/types.go +++ b/internal/models/types.go @@ -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"`