Change Marca identifiers from string to uint

- Update Dockerfile.dev to use golang:1.27‑alpine and set go.mod go
  version to 1.27.
- Convert Marca fields in DTOs, builders, and controller to uint and use
  ObtenerPorID.
- Adjust RepositorioMarcas to use generic models.Marca and remove the
  obsolete ObtenerPorId method.
- Add SeAviso bool flag to the Factura model.
- Fix AltaRepuesto ID conversion from uint64 to uint.
- Add gorm.io/datatypes as a direct dependency in go.mod.
This commit is contained in:
fede committed 2026-10-22 19:43:08 -03:00
1 parent 2bbd8adbaf
commit a6823302d5
10 files changed
+16 -23

No files matched your search

+1 -1
View File
@@ -29,7 +29,7 @@ func NuevoRepositorioRepuesto(db *gorm.DB) RepositorioRepuesto {
// Revierte la baja de un producto
func (r repositorioRepuesto) AltaRepuesto(id uint, uid uint) (*models.Repuesto, error) {
rep := models.Repuesto{
ID: uint64(id),
ID: uint(id),
}
err := r.db.Transaction(func(tx *gorm.DB) error {