fix: delete kethod skipped

This commit is contained in:
2025-01-05 23:48:37 +07:00
parent 3075503a3b
commit 86e4b9e977

View File

@@ -228,7 +228,7 @@ func ImplementCrudMethods(modelName string, serviceName string, file *ast.File,
EntityPlural: ToPlural(modelName),
}
for _, methodName := range []string{CreateMethod, GetAllMethod, GetByIdMethod, UpdateMethod, CountMethod} {
for _, methodName := range []string{CreateMethod, GetAllMethod, GetByIdMethod, UpdateMethod, DeleteMethod, CountMethod} {
methodCode := GenerateCrudMethodCode(methodName, templateContext)
methodDecl, err := MethodCodeToDeclaration(methodCode)
if err != nil {