refatoração de tipagem go
This commit is contained in:
parent
6f78511946
commit
0c41ed4279
12 changed files with 175 additions and 117 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue