feat: add endpoints for retrieving stock alerts and anomaly items, including database queries and models
This commit is contained in:
@@ -51,6 +51,7 @@ type Querier interface {
|
||||
FindComponentItem(ctx context.Context, componentid int64) ([]FindComponentItemRow, error)
|
||||
GetAbnormalItemCounts(ctx context.Context, warehouseID pgtype.Int8) ([]GetAbnormalItemCountsRow, error)
|
||||
GetAlternativeComponentByID(ctx context.Context, id int64) (AlternativeComponent, error)
|
||||
GetAnomalyItems(ctx context.Context, warehouseID pgtype.Int8) ([]GetAnomalyItemsRow, error)
|
||||
GetCabinetByID(ctx context.Context, id int64) (Cabinet, error)
|
||||
GetComponentByID(ctx context.Context, id int64) (Component, error)
|
||||
GetComponentCodeByID(ctx context.Context, id int64) (ComponentCode, error)
|
||||
@@ -67,6 +68,7 @@ type Querier interface {
|
||||
GetRoleByID(ctx context.Context, id uuid.UUID) (Role, error)
|
||||
GetRoomByID(ctx context.Context, id int64) (Room, error)
|
||||
GetShelveByID(ctx context.Context, id int64) (Shelf, error)
|
||||
GetStockAlerts(ctx context.Context) ([]GetStockAlertsRow, error)
|
||||
GetTodayInvoiceCounts(ctx context.Context) ([]GetTodayInvoiceCountsRow, error)
|
||||
GetTotalComponentStats(ctx context.Context, warehouseID pgtype.Int8) (GetTotalComponentStatsRow, error)
|
||||
GetUserByEmail(ctx context.Context, email string) (User, error)
|
||||
|
||||
Reference in New Issue
Block a user