refatorando a arquitetura

This commit is contained in:
2026-07-15 18:47:19 -03:00
parent e57de50bc2
commit 9d1d75f3af
12 changed files with 374 additions and 307 deletions
@@ -0,0 +1,11 @@
package repository
import "controle-de-estoque/internal/model"
type InventoryRepository interface {
Create(p *model.ProductInput) *model.Product
FindByID(id int) (*model.Product, error)
FindAll() map[int]*model.Product
Update(p *model.Product) error
Delete(id int) error
}