|
|
@ -26,21 +26,25 @@ class EvaluateRequest extends FormRequest |
|
|
'c_service' => 'required|nonempty|integer', |
|
|
'c_service' => 'required|nonempty|integer', |
|
|
'c_quality' => 'required|nonempty|integer', |
|
|
'c_quality' => 'required|nonempty|integer', |
|
|
'content' => 'required|nonempty|between:15,150', |
|
|
'content' => 'required|nonempty|between:15,150', |
|
|
'user_id' => 'required|nonempty|integer', |
|
|
|
|
|
'service_personnel_id' => 'required|nonempty|integer', |
|
|
|
|
|
'market_id' => 'required|nonempty|integer', |
|
|
|
|
|
|
|
|
'user_id' => 'required|nonempty|integer|exists:ims_cjdc_user,id', |
|
|
|
|
|
'service_personnel_id' => 'required|nonempty|integer|exists:lanzu_service_personnel,id', |
|
|
|
|
|
'market_id' => 'required|nonempty|integer|exists:ims_cjdc_market,id', |
|
|
]; |
|
|
]; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public function messages(): array |
|
|
public function messages(): array |
|
|
{ |
|
|
{ |
|
|
return [ |
|
|
return [ |
|
|
|
|
|
'user_id.exists' => ':attribute不存在', |
|
|
|
|
|
'service_personnel_id.exists' => ':attribute不存在', |
|
|
|
|
|
'market_id.exists' => ':attribute不存在', |
|
|
'user_id.*' => ':attribute信息不正确', |
|
|
'user_id.*' => ':attribute信息不正确', |
|
|
'service_personnel_id.*' => ':attribute信息不正确', |
|
|
'service_personnel_id.*' => ':attribute信息不正确', |
|
|
'market_id.*' => ':attribute信息不正确', |
|
|
'market_id.*' => ':attribute信息不正确', |
|
|
'c_attitude.*' => ':attribute信息不正确', |
|
|
'c_attitude.*' => ':attribute信息不正确', |
|
|
'c_service.*' => ':attribute信息不正确', |
|
|
'c_service.*' => ':attribute信息不正确', |
|
|
'c_quality.*' => ':attribute信息不正确', |
|
|
'c_quality.*' => ':attribute信息不正确', |
|
|
|
|
|
'content.between' => ':attribute字数限制在:min~:max字', |
|
|
'content.*' => ':attribute信息不正确', |
|
|
'content.*' => ':attribute信息不正确', |
|
|
]; |
|
|
]; |
|
|
} |
|
|
} |
|
|
@ -54,7 +58,7 @@ class EvaluateRequest extends FormRequest |
|
|
'c_attitude' => '服务态度评分', |
|
|
'c_attitude' => '服务态度评分', |
|
|
'c_service' => '服务值评分', |
|
|
'c_service' => '服务值评分', |
|
|
'c_quality' => '服务质量评分', |
|
|
'c_quality' => '服务质量评分', |
|
|
'content' => '服务评价', |
|
|
|
|
|
|
|
|
'content' => '服务评价内容', |
|
|
]; |
|
|
]; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |