17 lines
705 B
Go
17 lines
705 B
Go
package service
|
|
|
|
import (
|
|
"apskel-pos-be/internal/models"
|
|
"context"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
type IngredientProcessor interface {
|
|
CreateIngredient(ctx context.Context, req *models.CreateIngredientRequest) (*models.IngredientResponse, error)
|
|
UpdateIngredient(ctx context.Context, id uuid.UUID, req *models.UpdateIngredientRequest) (*models.IngredientResponse, error)
|
|
DeleteIngredient(ctx context.Context, id uuid.UUID) error
|
|
GetIngredientByID(ctx context.Context, id uuid.UUID) (*models.IngredientResponse, error)
|
|
ListIngredients(ctx context.Context, organizationID uuid.UUID, outletID *uuid.UUID, page, limit int, search string) (*models.PaginatedResponse[models.IngredientResponse], error)
|
|
}
|