post()->gocheck('add'); (new GoodsSupplierCategoryLogic())->add($params); return $this->success('供应商分类添加成功',[],1,1); } /** * @notes 查看供应商分类列表 * @return \think\response\Json * @author ljj * @date 2021/7/16 6:16 */ public function lists() { return $this->dataLists(new GoodsSupplierCategoryLists()); } /** * @notes 删除供应商分类 * @return \think\response\Json * @author ljj * @date 2021/7/16 6:57 */ public function del() { $params = (new GoodsSupplierCategoryValidate())->post()->gocheck('del'); (new GoodsSupplierCategoryLogic())->del($params); return $this->success('供应商分类删除成功',[],1,1); } /** * @notes 编辑供应商分类 * @return \think\response\Json * @author ljj * @date 2021/7/16 7:18 */ public function edit() { $params = (new GoodsSupplierCategoryValidate())->post()->goCheck('edit'); (new GoodsSupplierCategoryLogic())->edit($params); return $this->success('供应商分类修改成功',[],1,1); } /** * @notes 查看供应商分类详情 * @return \think\response\Json * @author ljj * @date 2021/7/19 4:49 下午 */ public function detail() { $params = (new GoodsSupplierCategoryValidate())->goCheck('detail'); $result = (new GoodsSupplierCategoryLogic())->detail($params); return $this->success('供应商分类详情获取成功',$result,1,0); } }