From 6a5004538d960c895bd16af839824c72ae62b788 Mon Sep 17 00:00:00 2001 From: mfk Date: Thu, 10 Oct 2024 19:52:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=20deleted=5Fat=20=E8=AF=86=E5=88=AB?= =?UTF-8?q?=E4=B8=BA=E8=BD=AF=E5=88=A0=E9=99=A4=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- builder.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/builder.go b/builder.go index a5fd302..5c756b6 100644 --- a/builder.go +++ b/builder.go @@ -1282,6 +1282,9 @@ func findDeletedField(mapper *Mapper, rType reflect.Type) *FieldInfo { if structType.Index[idx].Name == "deleted" { return structType.Index[idx] } + if structType.Index[idx].Name == "deleted_at" { + return structType.Index[idx] + } } return nil }