feat: 新增玩家管理与转账对账相关功能
1. 新增完整的后台玩家管理CRUD接口,包括列表、创建、详情、更新、删除 2. 新增转账订单冲正和人工处理功能,支持待对账订单状态变更 3. 扩展钱包流水和转账订单的状态支持,新增reversed、manually_processed等状态 4. 新增玩家API数据统一输出类,标准化玩家信息返回格式
This commit is contained in:
28
app/Http/Requests/Admin/AdminPlayerUpdateRequest.php
Normal file
28
app/Http/Requests/Admin/AdminPlayerUpdateRequest.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests\Admin;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
use Illuminate\Validation\Rule;
|
||||
|
||||
/**
|
||||
* 玩家更新请求。
|
||||
*
|
||||
* @see AdminPlayerUpdateController
|
||||
*/
|
||||
final class AdminPlayerUpdateRequest extends FormRequest
|
||||
{
|
||||
public function authorize(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'username' => ['sometimes', 'string', 'max:128'],
|
||||
'nickname' => ['sometimes', 'nullable', 'string', 'max:128'],
|
||||
'status' => ['sometimes', 'integer', Rule::in([0, 1, 2])],
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user