Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository interface { GetAll() []domain.Warehouse GetByID(id int) (domain.Warehouse, error) CreateWarehouse( code, address, tel string, localityID int) (domain.Warehouse, error) UpdatedWarehouseID(id int, code string) (domain.Warehouse, error) DeleteWarehouse(id int) error FindByWarehouseCode(code string) (domain.Warehouse, error) }
type Service ¶
type Service interface { GetAll() []domain.Warehouse GetByID(id int) (domain.Warehouse, error) CreateWarehouse( code, address, tel string, localityID int) (domain.Warehouse, error) UpdatedWarehouseID(id int, code string) (domain.Warehouse, error) DeleteWarehouse(id int) error }
func NewService ¶
func NewService(r Repository) Service
Click to show internal directories.
Click to hide internal directories.