[ // 搜索疾病分类 'disease_class_name', ] ]; /** * 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 [ 'disease_class_name' => 'required', ]; } /** * 获取已定义验证规则的错误消息. */ public function messages(): array { return [ 'disease_class_name.required' => HttpEnumCode::getMessage(HttpEnumCode::CLIENT_HTTP_ERROR), ]; } }