You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
<?php
declare(strict_types=1);
namespace App\Request;
use Hyperf\Validation\Request\FormRequest;
class EvaluateRequest extends FormRequest{ /** * Determine if the user is authorized to make this request. */ public function authorize(): bool { return true; }
/** * Get the validation rules that apply to the request. */ public function rules(): array { return [ 'c_attitude' => 'required|nonempty|integer', 'c_service' => 'required|nonempty|integer', 'c_quality' => 'required|nonempty|integer', 'content' => 'required|nonempty|between:15,150', 'user_id' => 'required|nonempty|integer', 'service_personnel_id' => 'required|nonempty|integer', 'market_id' => 'required|nonempty|integer', ]; }
public function messages(): array { return [ 'user_id.*' => ':attribute信息不正确', 'service_personnel_id.*' => ':attribute信息不正确', 'market_id.*' => ':attribute信息不正确', 'c_attitude.*' => ':attribute信息不正确', 'c_service.*' => ':attribute信息不正确', 'c_quality.*' => ':attribute信息不正确', 'content.*' => ':attribute信息不正确', ]; }
public function attributes(): array { return [ 'user_id' => '用户', 'service_personnel_id' => '服务专员', 'market_id' => '服务专员市场', 'c_attitude' => '服务态度评分', 'c_service' => '服务值评分', 'c_quality' => '服务质量评分', 'content' => '服务评价', ]; }}
|