dataLists(); } /** * @notes 添加文章/帮助分类 * @return \think\response\Json * @author Tab * @date 2021/7/13 14:06 */ public function add() { $params = (new ArticleCategoryValidate())->post()->goCheck('add'); ArticleCategoryLogic::add($params); return $this->success('添加成功',[],1,1); } /** * @notes 查看文章/帮助详情 * @return \think\response\Json * @author Tab * @date 2021/7/13 14:07 */ public function detail() { $params = (new ArticleCategoryValidate())->goCheck('detail'); $result = ArticleCategoryLogic::detail($params); return $this->data($result); } /** * @notes 编辑文章/帮助分类 * @return \think\response\Json * @author Tab * @date 2021/7/13 14:11 */ public function edit() { $params = (new ArticleCategoryValidate())->post()->goCheck('edit'); ArticleCategoryLogic::edit($params); return $this->success('编辑成功',[],1,1); } /** * @notes 删除文章/帮助分类 * @return \think\response\Json * @author Tab * @date 2021/7/13 14:20 */ public function delete() { $params = (new ArticleCategoryValidate())->post()->goCheck('delete'); ArticleCategoryLogic::delete($params); return $this->success('删除成功',[],1,1); } /** * @notes 修改是否显示状态 * @return \think\response\Json * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException * @author Tab * @date 2021/7/14 11:36 */ public function isShow() { $params = (new ArticleCategoryValidate())->post()->goCheck('show'); ArticleCategoryLogic::isShow($params); return $this->success('修改成功',[],1,1); } }