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