ingredient composition
This commit is contained in:
@@ -82,3 +82,12 @@ type UnitRepository interface {
|
||||
Update(ctx context.Context, unit *entities.Unit) error
|
||||
Delete(ctx context.Context, id, organizationID uuid.UUID) error
|
||||
}
|
||||
|
||||
type IngredientCompositionRepository interface {
|
||||
Create(ctx context.Context, composition *entities.IngredientComposition) error
|
||||
GetByID(ctx context.Context, id, organizationID uuid.UUID) (*entities.IngredientComposition, error)
|
||||
GetByParentIngredientID(ctx context.Context, parentIngredientID, organizationID uuid.UUID) ([]*entities.IngredientComposition, error)
|
||||
Update(ctx context.Context, composition *entities.IngredientComposition) error
|
||||
Delete(ctx context.Context, id, organizationID uuid.UUID) error
|
||||
DeleteByParentIngredientID(ctx context.Context, parentIngredientID, organizationID uuid.UUID) error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user