2026-07-14 20:16:10 -03:00
|
|
|
package controller
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"bufio"
|
|
|
|
|
"controle-de-estoque/model"
|
|
|
|
|
"controle-de-estoque/view"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type Controller struct {
|
|
|
|
|
inventory *model.Inventory
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func New(inventory *model.Inventory) *Controller {
|
|
|
|
|
return &Controller{inventory: inventory}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (c *Controller) CapturarComando(scanner *bufio.Scanner) {
|
|
|
|
|
view.ExibirMenu()
|
|
|
|
|
|
|
|
|
|
// scanner.Scan()
|
|
|
|
|
}
|