feat: 添加结算功能,更新 TicketItem 模型以支持最新结算详情,增强 DrawTickService 以自动处理结算,更新 TicketWalletService 以支持派彩入账,扩展 API 路由以管理结算批次和奖池
This commit is contained in:
17
app/Services/Settlement/Contracts/SettlementPlayMatcher.php
Normal file
17
app/Services/Settlement/Contracts/SettlementPlayMatcher.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace App\Services\Settlement\Contracts;
|
||||
|
||||
use App\Models\TicketCombination;
|
||||
use App\Models\TicketItem;
|
||||
use App\Services\Settlement\PublishedDrawResultBoard;
|
||||
use Illuminate\Support\Collection;
|
||||
|
||||
interface SettlementPlayMatcher
|
||||
{
|
||||
/**
|
||||
* @param Collection<int, TicketCombination> $combinations
|
||||
* @return array{win_amount: int, matched_prize_tier: ?string, match_detail: array<string, mixed>}
|
||||
*/
|
||||
public function match(TicketItem $item, PublishedDrawResultBoard $board, Collection $combinations): array;
|
||||
}
|
||||
Reference in New Issue
Block a user