// runtime/base-classes/base-read-use-cases.ts
var BaseFindByIdUseCase = class {
  constructor(service) {
    this.service = service;
  }
  service;
  /**
   * Find a single entity by its primary key.
   * Returns null if not found.
   */
  execute(id) {
    return this.service.findById(id);
  }
};
var BaseListUseCase = class {
  constructor(service) {
    this.service = service;
  }
  service;
  /**
   * List all entities (no filters).
   * Controllers that need filtered lists should use a dedicated use case.
   */
  execute() {
    return this.service.list();
  }
};

export {
  BaseFindByIdUseCase,
  BaseListUseCase
};
//# sourceMappingURL=chunk-EXVDJMIY.js.map