1. 新增完整的后台玩家管理CRUD接口,包括列表、创建、详情、更新、删除 2. 新增转账订单冲正和人工处理功能,支持待对账订单状态变更 3. 扩展钱包流水和转账订单的状态支持,新增reversed、manually_processed等状态 4. 新增玩家API数据统一输出类,标准化玩家信息返回格式
18 lines
434 B
PHP
18 lines
434 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Api\V1\Admin\Player;
|
|
|
|
use App\Models\Player;
|
|
use App\Support\ApiResponse;
|
|
use Illuminate\Http\JsonResponse;
|
|
use App\Http\Controllers\Controller;
|
|
|
|
/** GET /api/v1/admin/players/{player} */
|
|
final class AdminPlayerShowController extends Controller
|
|
{
|
|
public function __invoke(Player $player): JsonResponse
|
|
{
|
|
return ApiResponse::success(PlayerApiPresenter::listItem($player));
|
|
}
|
|
}
|