feat: criando a view do menu e as regras de cadastro e listagem de produtos
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user