/**
  * 编辑文章分类
  *
  * @param  int  $id
  * @author yangyifan <*****@*****.**>
  */
 public function getEdit($id)
 {
     return $this->html_builder->builderTitle('编辑网址分类')->builderFormSchema('id', 'id', 'hidden')->builderFormSchema('cat_name', '分类名称')->builderFormSchema('keywords', '分类关键字')->builderFormSchema('description', '分类描述', 'textarea')->builderFormSchema('status', '状态', 'radio', '', '', '', '', '', [1 => '开启', '2' => '关闭'], '1')->builderFormSchema('sort', '菜单排序')->builderFormSchema('is_show_search', '是否显示到搜索页面', 'radio', '', '如果选是,则当前分类会显示到搜索页面', '', '', '', [1 => '是', '2' => '否'], '1')->builderConfirmBotton('确认', url('admin/site-cat/edit'), 'btn btn-success')->builderEditData(SiteCatModel::find($id))->builderEdit();
 }
 /**
  * 编辑文章分类
  *
  * @param  int  $id
  * @auther yangyifan <*****@*****.**>
  */
 public function getEdit($id)
 {
     return $this->html_builder->builderTitle('编辑网址分类')->builderFormSchema('id', 'id', 'hidden')->builderFormSchema('cat_name', '分类名称')->builderFormSchema('keywords', '分类关键字')->builderFormSchema('description', '分类描述', 'textarea')->builderFormSchema('pid', '父级菜单', 'select', $default = '', $notice = '', $class = '', $rule = '*', $err_message = '', SiteCatModel::getAllForSchemaOption('cat_name', $id), 'cat_name')->builderFormSchema('status', '状态', 'radio', '', '', '', '', '', [1 => '开启', '2' => '关闭'], '1')->builderFormSchema('sort', '菜单排序')->builderConfirmBotton('确认', url('admin/site-cat/edit'), 'btn btn-success')->builderEditData(SiteCatModel::find($id))->builderEdit();
 }