code: public function addMenu($data)
      {
          $data['menu_flag'] = $this->processMenuFlag($data['menu_url'], $data['menu_build']);
          return $this->model->add($data);
      }
docs: 新增菜单
  
  @param array $data
  @return number