GroupOutRequest.php
757 Bytes
<?php
namespace App\Http\Container\AppSection\Requests;
use Hikoon\LaravelApi\Support\ApiRequest;
class GroupOutRequest extends ApiRequest
{
public function rules(): array
{
return [
'user_id' => 'int',
'type' => 'required|integer|between:1,3',
'status'=>'integer|between:1,2',
];
}
public function messages(): array
{
return [
'user_id.int' => 'user_id为整数类型',
'type.required' => 'type为必填项。',
'type.integer' => 'type为整数类型',
'type.between' => 'type范围在1-3',
'status.integer' => 'status为整数类型',
'status.between' => 'status范围在1-2'
];
}
}