MemberTopRequest.php
687 Bytes
<?php
namespace App\Http\Container\AppSection\Requests;
use Hikoon\LaravelApi\Support\ApiRequest;
class MemberTopRequest extends ApiRequest
{
public function rules(): array
{
return [
'member_id' => 'required|int',
'status' => 'required|integer|between:0,1',
];
}
public function messages(): array
{
return [
'member_id.required' => 'member_id为必填项。',
'member_id.int' => 'member_id数字类型',
'status.required' => 'status为必填项',
'status.integer' => 'status为数字类型',
'status.between' => 'status在0-1之间'
];
}
}