feat: add invoice and alternative_componen management functionality
This commit is contained in:
@@ -13,6 +13,7 @@ import (
|
||||
type Querier interface {
|
||||
AssignRoleToUser(ctx context.Context, arg AssignRoleToUserParams) (UserRole, error)
|
||||
CountUsersByRoleID(ctx context.Context, roleID uuid.UUID) (int64, error)
|
||||
CreateAlternativeComponent(ctx context.Context, arg CreateAlternativeComponentParams) (AlternativeComponent, error)
|
||||
CreateCabinet(ctx context.Context, arg CreateCabinetParams) (Cabinet, error)
|
||||
CreateComponent(ctx context.Context, arg CreateComponentParams) (Component, error)
|
||||
CreateComponentCode(ctx context.Context, arg CreateComponentCodeParams) (ComponentCode, error)
|
||||
@@ -20,6 +21,7 @@ type Querier interface {
|
||||
CreateComponentStatusHistory(ctx context.Context, arg CreateComponentStatusHistoryParams) (ComponentStatusHistory, error)
|
||||
CreateComponentType(ctx context.Context, arg CreateComponentTypeParams) (ComponentType, error)
|
||||
CreateContainer(ctx context.Context, arg CreateContainerParams) (Container, error)
|
||||
CreateInvoice(ctx context.Context, arg CreateInvoiceParams) (Invoice, error)
|
||||
CreateInvoiceConfig(ctx context.Context, arg CreateInvoiceConfigParams) (InvoiceConfig, error)
|
||||
CreateInvoiceConfigItem(ctx context.Context, arg CreateInvoiceConfigItemParams) (InvoiceConfigItem, error)
|
||||
CreateRole(ctx context.Context, arg CreateRoleParams) (Role, error)
|
||||
@@ -27,12 +29,14 @@ type Querier interface {
|
||||
CreateShelve(ctx context.Context, arg CreateShelveParams) (Shelf, error)
|
||||
CreateUser(ctx context.Context, arg CreateUserParams) (uuid.UUID, error)
|
||||
CreateWarehouse(ctx context.Context, arg CreateWarehouseParams) (Warehouse, error)
|
||||
DeleteAlternativeComponent(ctx context.Context, id int64) (int64, error)
|
||||
DeleteCabinet(ctx context.Context, id int64) (int64, error)
|
||||
DeleteComponent(ctx context.Context, id int64) (int64, error)
|
||||
DeleteComponentCode(ctx context.Context, id int64) (int64, error)
|
||||
DeleteComponentItem(ctx context.Context, id int64) (int64, error)
|
||||
DeleteComponentType(ctx context.Context, id int64) (int64, error)
|
||||
DeleteContainer(ctx context.Context, id int64) (int64, error)
|
||||
DeleteInvoice(ctx context.Context, id int64) (int64, error)
|
||||
DeleteInvoiceConfig(ctx context.Context, id int64) (int64, error)
|
||||
DeleteInvoiceConfigItem(ctx context.Context, id int64) (int64, error)
|
||||
DeleteRole(ctx context.Context, id uuid.UUID) (int64, error)
|
||||
@@ -40,6 +44,7 @@ type Querier interface {
|
||||
DeleteShelve(ctx context.Context, id int64) (int64, error)
|
||||
DeleteWarehouse(ctx context.Context, id int64) (int64, error)
|
||||
FindComponentItem(ctx context.Context, componentid int64) ([]FindComponentItemRow, error)
|
||||
GetAlternativeComponentByID(ctx context.Context, id int64) (AlternativeComponent, 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)
|
||||
@@ -47,6 +52,7 @@ type Querier interface {
|
||||
GetComponentItemByID(ctx context.Context, id int64) (ComponentItem, error)
|
||||
GetComponentTypeByID(ctx context.Context, id int64) (ComponentType, error)
|
||||
GetContainerByID(ctx context.Context, id int64) (Container, error)
|
||||
GetInvoiceByID(ctx context.Context, id int64) (Invoice, error)
|
||||
GetInvoiceConfigByID(ctx context.Context, id int64) (InvoiceConfig, error)
|
||||
GetInvoiceConfigItemByID(ctx context.Context, id int64) (InvoiceConfigItem, error)
|
||||
GetRoleByID(ctx context.Context, id uuid.UUID) (Role, error)
|
||||
@@ -59,6 +65,7 @@ type Querier interface {
|
||||
GetUserRolesByRoleID(ctx context.Context, roleID uuid.UUID) ([]GetUserRolesByRoleIDRow, error)
|
||||
GetUserRolesByUserID(ctx context.Context, userID uuid.UUID) ([]GetUserRolesByUserIDRow, error)
|
||||
GetWarehouseByID(ctx context.Context, id int64) (Warehouse, error)
|
||||
ListAlternativeComponents(ctx context.Context) ([]AlternativeComponent, error)
|
||||
ListCabinets(ctx context.Context) ([]Cabinet, error)
|
||||
ListComponentCodes(ctx context.Context) ([]ComponentCode, error)
|
||||
ListComponentItems(ctx context.Context) ([]ComponentItem, error)
|
||||
@@ -67,12 +74,14 @@ type Querier interface {
|
||||
ListContainers(ctx context.Context) ([]Container, error)
|
||||
ListInvoiceConfigItems(ctx context.Context) ([]InvoiceConfigItem, error)
|
||||
ListInvoiceConfigs(ctx context.Context) ([]InvoiceConfig, error)
|
||||
ListInvoices(ctx context.Context) ([]Invoice, error)
|
||||
ListRoles(ctx context.Context) ([]Role, error)
|
||||
ListRooms(ctx context.Context) ([]Room, error)
|
||||
ListShelves(ctx context.Context) ([]Shelf, error)
|
||||
ListWarehouses(ctx context.Context) ([]Warehouse, error)
|
||||
RemoveAllRolesFromUser(ctx context.Context, userID uuid.UUID) error
|
||||
RemoveRoleFromUser(ctx context.Context, arg RemoveRoleFromUserParams) error
|
||||
UpdateAlternativeComponent(ctx context.Context, arg UpdateAlternativeComponentParams) (AlternativeComponent, error)
|
||||
UpdateCabinet(ctx context.Context, arg UpdateCabinetParams) (Cabinet, error)
|
||||
UpdateComponent(ctx context.Context, arg UpdateComponentParams) (Component, error)
|
||||
UpdateComponentCode(ctx context.Context, arg UpdateComponentCodeParams) (ComponentCode, error)
|
||||
@@ -81,6 +90,7 @@ type Querier interface {
|
||||
UpdateComponentItemStatus(ctx context.Context, arg UpdateComponentItemStatusParams) (ComponentItem, error)
|
||||
UpdateComponentType(ctx context.Context, arg UpdateComponentTypeParams) (ComponentType, error)
|
||||
UpdateContainer(ctx context.Context, arg UpdateContainerParams) (Container, error)
|
||||
UpdateInvoice(ctx context.Context, arg UpdateInvoiceParams) (Invoice, error)
|
||||
UpdateInvoiceConfig(ctx context.Context, arg UpdateInvoiceConfigParams) (InvoiceConfig, error)
|
||||
UpdateInvoiceConfigItem(ctx context.Context, arg UpdateInvoiceConfigItemParams) (InvoiceConfigItem, error)
|
||||
UpdateRole(ctx context.Context, arg UpdateRoleParams) (Role, error)
|
||||
|
||||
Reference in New Issue
Block a user