fix: template

This commit is contained in:
2025-03-15 20:47:17 +07:00
parent 8e7b0ab472
commit 56ffba1883
2 changed files with 2 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ const GetByIdRawTemplate = `func (service *{{.ServiceName}}) GetById(id uint) (*
const UpdateRawTemplate = `func (service *{{.ServiceName}}) Update(item {{.EntityType}}) ({{.EntityType}}, error) {
utils.ReplaceEmptySlicesWithNil(&item)
_, err := dal.Author.Updates(&item)
_, err := dal.{{.EntityType}}.Updates(&item)
if err != nil {
return item, err
}