usecases

package
v0.0.0-...-e85e4ab Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

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

Directories

Path Synopsis
mock

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL