feat: 添加 Laravel Reverb 支持,更新 .env.example 文件以配置 WebSocket,增强彩票调度功能,更新 API 路由以支持期号管理与结果发布
This commit is contained in:
16
app/Lottery/DrawResultBatchStatus.php
Normal file
16
app/Lottery/DrawResultBatchStatus.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Lottery;
|
||||
|
||||
/** 开奖批次状态 {@see draw_result_batches.status} */
|
||||
enum DrawResultBatchStatus: string
|
||||
{
|
||||
/** RNG/人工录入完成,等待审核 */
|
||||
case PendingReview = 'pending_review';
|
||||
|
||||
/** 已发布为当期有效结果 */
|
||||
case Published = 'published';
|
||||
|
||||
/** 审核驳回(本阶段仅占位) */
|
||||
case Rejected = 'rejected';
|
||||
}
|
||||
10
app/Lottery/DrawResultSourceType.php
Normal file
10
app/Lottery/DrawResultSourceType.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace App\Lottery;
|
||||
|
||||
enum DrawResultSourceType: string
|
||||
{
|
||||
case Rng = 'rng';
|
||||
|
||||
case Manual = 'manual';
|
||||
}
|
||||
39
app/Lottery/DrawStatus.php
Normal file
39
app/Lottery/DrawStatus.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
namespace App\Lottery;
|
||||
|
||||
/**
|
||||
* 期号状态 {@see draws.status} — 与《04-领域字典》draw_status、产品文档 §7.1 对齐。
|
||||
*/
|
||||
enum DrawStatus: string
|
||||
{
|
||||
/** pending — 未开始 */
|
||||
case Pending = 'pending';
|
||||
|
||||
/** open — 可下注 */
|
||||
case Open = 'open';
|
||||
|
||||
/** closing — 封盘中(已停止接受新注单,开奖时刻未到) */
|
||||
case Closing = 'closing';
|
||||
|
||||
/** closed — 已封盘待开奖(已到计划开奖时刻,等待 RNG/Lua 开奖) */
|
||||
case Closed = 'closed';
|
||||
|
||||
/** drawing — 开奖处理中(正在生成结果批次) */
|
||||
case Drawing = 'drawing';
|
||||
|
||||
/** review — 待人工审核(可配置 RNG 后直接发布则无此态) */
|
||||
case Review = 'review';
|
||||
|
||||
/** cooldown — 冷静期(结果已发布后的冻结窗口) */
|
||||
case Cooldown = 'cooldown';
|
||||
|
||||
/** settling — 结算处理中(派彩链路,阶段 4 推进) */
|
||||
case Settling = 'settling';
|
||||
|
||||
/** settled — 已结算 */
|
||||
case Settled = 'settled';
|
||||
|
||||
/** cancelled — 已取消 */
|
||||
case Cancelled = 'cancelled';
|
||||
}
|
||||
Reference in New Issue
Block a user