Documentation ¶
Index ¶
Constants ¶
View Source
const ( SqlCountByEmployee = "SELECT COUNT(*) FROM inbound_orders WHERE employee_id=?;" SqlGetAllbyId = "SELECT id FROM inbound_orders WHERE employee_id=?;" SqlCreate = "" /* 131-byte string literal not displayed */ )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InboundOrder ¶
type Repository ¶
type Repository interface { Create(orderDate string, orderNumber string, employeeId int, productBatchId int, warehouseId int) (InboundOrder, error) GetCountByEmployee(id int) (count int) }
func NewRepository ¶
func NewRepository(db *sql.DB) Repository
type Services ¶
type Services interface { Create(orderDate, orderNumber string, employeeId, productBatchId, warehouseId int) (InboundOrder, error) GetCounterByEmployee(id int) (counter int) }
func NewService ¶
func NewService(r Repository) Services
Click to show internal directories.
Click to hide internal directories.