/**
  * 增加文章
  *
  * @auther yangyifan <*****@*****.**>
  */
 public function getAdd()
 {
     return $this->html_builder->builderTitle('增加文章')->builderFormSchema('title', '文章标题', $type = 'text', $default = '', $notice = '', $class = '', $rule = '*', $err_message = '', $option = '', $option_value_schema = '')->builderFormSchema('article_cat_id', '所属分类', 'select', $default = '', $notice = '', $class = '', $rule = '*', $err_message = '', ArticleCatModel::getAllForSchemaOption('cat_name'), 'cat_name')->builderFormSchema('keywords', '关键字')->builderFormSchema('description', '描述', 'textarea')->builderFormSchema('contents', '内容', 'ueditor')->builderFormSchema('thumb', '缩略图', 'image')->builderFormSchema('sort', '排序', 'text', 255)->builderFormSchema('status', '状态', 'radio', '', '', '', '', '', [1 => '开启', '2' => '关闭'], '1')->builderFormSchema('view', '点击量', 'text', mt_rand(100, 200))->builderConfirmBotton('确认', url('admin/article/add'), 'btn btn-success')->builderAdd();
 }
 /**
  * 增加文章分类
  *
  * @param  int  $id
  * @auther yangyifan <*****@*****.**>
  */
 public function getAdd()
 {
     return $this->html_builder->builderTitle('增加菜单')->builderFormSchema('cat_name', '分类名称')->builderFormSchema('keywords', '分类关键字')->builderFormSchema('description', '分类描述', 'textarea')->builderFormSchema('pid', '父级菜单', 'select', $default = '', $notice = '', $class = '', $rule = '*', $err_message = '', ArticleCatModel::getAllForSchemaOption('cat_name'), 'cat_name')->builderFormSchema('status', '状态', 'radio', '', '', '', '', '', [1 => '开启', '2' => '关闭'], '1')->builderFormSchema('sort', '菜单排序', 255)->builderConfirmBotton('确认', url('admin/article-cat/add'), 'btn btn-success')->builderAdd();
 }