From bdcca67c95f84dc4ce0da59f0b5fe3bcc2e80620 Mon Sep 17 00:00:00 2001 From: mfk Date: Sun, 28 Apr 2024 23:21:47 +0800 Subject: [PATCH] fix bugs --- cmd/gobatis/goparser2/parse.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/gobatis/goparser2/parse.go b/cmd/gobatis/goparser2/parse.go index efafe15..55dfeb2 100644 --- a/cmd/gobatis/goparser2/parse.go +++ b/cmd/gobatis/goparser2/parse.go @@ -224,6 +224,9 @@ func convertClass(ctx *ParseContext, file *File, class *astutil.TypeSpec) (*Inte } for idx := range class.Interface.Methods { + if class.Interface.Methods[idx].Name == "WithDB" { + continue + } method, err := convertMethod(intf, class, &class.Interface.Methods[idx], ctx.AnnotationPrefix) if err != nil { return nil, err