inboundorders

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: 3 Imported by: 0

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 InboundOrder struct {
	ID             int    `json:"id"`
	OrderDate      string `json:"order_date"`
	OrderNumber    string `json:"order_number"`
	EmployeeId     int    `json:"employee_id"`
	ProductBatchId int    `json:"product_batch_id"`
	WarehouseId    int    `json:"warehouse_id"`
}

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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