Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
hengwei-test committed Apr 28, 2024
1 parent ff2ddd4 commit bdcca67
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/gobatis/goparser2/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bdcca67

Please sign in to comment.