Boost-Geschaeftslogik (Decision-Update 2.2)
Bezahlte Platzierung gruener, veroeffentlichter PMs ueber die Credit-Wallet: - boosts Tabelle (Zeitraum starts_at/ends_at, days, credits_charged) - BoostService: Gate (nur Published + Green), Preis nach Laufzeit (7/14/30 -> 12/20/35 Credits), Mehrfachkauf verlaengert vom laufenden Ende, Wallet-Belastung referenziert den Boost im Ledger - PressRelease::boosts()/isBoosted()/scopeBoosted() als Basis fuer die Featured-Platzierung (Frontend-Anbindung bleibt der Web-Strecke ueberlassen) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
3e8844245d
commit
c7a4c8bfd4
7 changed files with 355 additions and 0 deletions
17
app/Exceptions/BoostNotAllowedException.php
Normal file
17
app/Exceptions/BoostNotAllowedException.php
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
namespace App\Exceptions;
|
||||
|
||||
use RuntimeException;
|
||||
|
||||
/**
|
||||
* Wird geworfen, wenn eine PM nicht geboostet werden darf — nur
|
||||
* veröffentlichte, grün klassifizierte Meldungen sind boostbar (§2.2).
|
||||
*/
|
||||
class BoostNotAllowedException extends RuntimeException
|
||||
{
|
||||
public static function notBoostable(): self
|
||||
{
|
||||
return new self('Nur veröffentlichte, grün klassifizierte Pressemitteilungen sind boostbar.');
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue