Add POST /produce endpoint

This commit is contained in:
2021-06-20 20:41:00 -04:00
parent 8eee652b9e
commit 95839c459a
8 changed files with 247 additions and 6 deletions
+10
View File
@@ -0,0 +1,10 @@
package http
import "github.com/davidlick/supermarket-api/internal/produce"
type ProduceService interface {
Add(items []produce.Item) error
Remove(item produce.Item) error
Get(produceCode string) (item produce.Item, err error)
All() (items []produce.Item, err error)
}