feat: 添加新的错误码以支持配置版本管理,更新彩票配置以启用手动审核,增强 API 路由以支持玩法和赔率版本化管理
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Api\V1\Admin\Config;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Models\PlayConfigVersion;
|
||||
use App\Support\AdminConfigPresenter;
|
||||
use App\Support\ApiResponse;
|
||||
use Illuminate\Http\JsonResponse;
|
||||
|
||||
/** GET /api/v1/admin/config/play-versions/{id} */
|
||||
final class PlayConfigVersionShowController extends Controller
|
||||
{
|
||||
public function __invoke(int $id): JsonResponse
|
||||
{
|
||||
/** @var PlayConfigVersion $v */
|
||||
$v = PlayConfigVersion::query()->with('items')->whereKey($id)->firstOrFail();
|
||||
|
||||
return ApiResponse::success(AdminConfigPresenter::playConfigVersionDetail($v));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user