From cfe2064fe3c9b1f85cd593014ed6d0de9a992c3a Mon Sep 17 00:00:00 2001 From: wsfuyibing Date: Thu, 15 Aug 2024 15:19:08 +0800 Subject: [PATCH] debug for service generator --- db/commands/templates/service.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/commands/templates/service.tpl b/db/commands/templates/service.tpl index 0870816..7b798dc 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}}{} -- Gitee