diff --git a/db/commands/templates/service.tpl b/db/commands/templates/service.tpl index 0870816e526816d4226effb2020b070d8a6a9658..7b798dcc618081ec875dad4754b93b8d326dafd5 100644 --- a/db/commands/templates/service.tpl +++ b/db/commands/templates/service.tpl @@ -74,7 +74,7 @@ func (o *{{.StructName}}) Add(ctx context.Context, req *{{.ModelPkg}}.{{.ModelNa // DelBy{{.PrimaryName}} // method is generated by console command. It's deletes a record by primary key. -func (o *RegistryService) DelBy{{.PrimaryName}}(ctx context.Context, val {{.PrimaryType}}) (affects int64, err error) { +func (o *{{.StructName}}) DelBy{{.PrimaryName}}(ctx context.Context, val {{.PrimaryType}}) (affects int64, err error) { var ( sess *db.Session model = &{{.ModelPkg}}.{{.ModelName}}{}