feat: add component_codes management functionality
This commit is contained in:
@@ -15,6 +15,7 @@ type Querier interface {
|
||||
CountUsersByRoleID(ctx context.Context, roleID uuid.UUID) (int64, 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)
|
||||
CreateComponentType(ctx context.Context, arg CreateComponentTypeParams) (ComponentType, error)
|
||||
CreateContainer(ctx context.Context, arg CreateContainerParams) (Container, error)
|
||||
CreateRole(ctx context.Context, arg CreateRoleParams) (Role, error)
|
||||
@@ -24,6 +25,7 @@ type Querier interface {
|
||||
CreateWarehouse(ctx context.Context, arg CreateWarehouseParams) (Warehouse, 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)
|
||||
DeleteComponentType(ctx context.Context, id int64) (int64, error)
|
||||
DeleteContainer(ctx context.Context, id int64) (int64, error)
|
||||
DeleteRole(ctx context.Context, id uuid.UUID) (int64, error)
|
||||
@@ -32,6 +34,7 @@ type Querier interface {
|
||||
DeleteWarehouse(ctx context.Context, id int64) (int64, 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)
|
||||
GetComponentTypeByID(ctx context.Context, id int64) (ComponentType, error)
|
||||
GetContainerByID(ctx context.Context, id int64) (Container, error)
|
||||
GetRoleByID(ctx context.Context, id uuid.UUID) (Role, error)
|
||||
@@ -45,6 +48,7 @@ type Querier interface {
|
||||
GetUserRolesByUserID(ctx context.Context, userID uuid.UUID) ([]GetUserRolesByUserIDRow, error)
|
||||
GetWarehouseByID(ctx context.Context, id int64) (Warehouse, error)
|
||||
ListCabinets(ctx context.Context) ([]Cabinet, error)
|
||||
ListComponentCodes(ctx context.Context) ([]ComponentCode, error)
|
||||
ListComponentTypes(ctx context.Context) ([]ComponentType, error)
|
||||
ListComponents(ctx context.Context) ([]Component, error)
|
||||
ListContainers(ctx context.Context) ([]Container, error)
|
||||
@@ -56,6 +60,7 @@ type Querier interface {
|
||||
RemoveRoleFromUser(ctx context.Context, arg RemoveRoleFromUserParams) 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)
|
||||
UpdateComponentType(ctx context.Context, arg UpdateComponentTypeParams) (ComponentType, error)
|
||||
UpdateContainer(ctx context.Context, arg UpdateContainerParams) (Container, error)
|
||||
UpdateRole(ctx context.Context, arg UpdateRoleParams) (Role, error)
|
||||
|
||||
Reference in New Issue
Block a user