refatoração de tipagem go

This commit is contained in:
Luiz Silva 2026-01-01 20:03:47 -03:00
parent 6f78511946
commit 0c41ed4279
12 changed files with 175 additions and 117 deletions

View file

@ -4,6 +4,8 @@ import (
"html/template"
"log/slog"
"net/http"
"e-li.nps/internal/contratos"
)
type TemplateRenderer struct {
@ -23,8 +25,5 @@ func (r *TemplateRenderer) Render(w http.ResponseWriter, name string, data any)
}
}
type FormPageData struct {
Produto string
ID string
Reg Registro
}
// Alias para manter as chamadas concisas dentro do pacote elinps.
type FormPageData = contratos.FormPageData