[ 'name' => 'required', 'start_time' => 'required', 'end_time' => 'required', 'type' => 'required|integer', 'sort' => 'required|integer', 'status' => 'required|integer', ], ValidatorInterface::RULE_UPDATE => [ 'name' => 'required', 'start_time' => 'required', 'end_time' => 'required', 'type' => 'required|integer', 'sort' => 'required|integer', 'status' => 'required|integer', ], ]; }