package usecase import ( "context" "github.com/example/scopedemo/internal/domain" "github.com/example/scopedemo/internal/scope" "github.com/example/scopedemo/internal/service" "github.com/google/uuid" ) type UserUsecase struct { svc *service.UserService } func NewUserUsecase(svc *service.UserService) *UserUsecase { return &UserUsecase{svc: svc} } func (u *UserUsecase) ListUsers(ctx context.Context, s scope.Scope, role *string) ([]domain.User, error) { // Business logic could go here (validation, enrichment, etc.) return u.svc.ListUsers(ctx, s, role) } func (u *UserUsecase) GetUserByID(ctx context.Context, s scope.Scope, id uuid.UUID) (*domain.User, error) { return u.svc.GetUserByID(ctx, s, id) } func (u *UserUsecase) ListAllUsers(ctx context.Context, s scope.SystemScope) ([]domain.User, error) { return u.svc.ListAllUsers(ctx, s) }