post()->goCheck('add'); (new GoodsSupplierLogic())->add($params); return $this->success('供应商添加成功',[],1,1); } /** * @notes 查看供应商列表 * @return \think\response\Json * @author ljj * @date 2021/7/17 2:11 */ public function lists() { return $this->dataLists(new GoodsSupplierLists()); } /** * @notes 删除供应商 * @return \think\response\Json * @author ljj * @date 2021/7/17 2:46 */ public function del() { $params = (new GoodsSupplierValidate())->post()->goCheck('del'); (new GoodsSupplierLogic())->del($params); return $this->success('供应商删除成功',[],1,1); } /** * @notes 编辑供应商 * @return \think\response\Json * @author ljj * @date 2021/7/17 3:18 下午 */ public function edit() { $params = (new GoodsSupplierValidate())->post()->goCheck('edit'); (new GoodsSupplierLogic())->edit($params); return $this->success('供应商修改成功',[],1,1); } /** * @notes 查看供应商详情 * @return \think\response\Json * @author ljj * @date 2021/7/19 4:56 下午 */ public function detail() { $params = (new GoodsSupplierValidate())->goCheck('detail'); $result = (new GoodsSupplierLogic())->detail($params); return $this->success('供应商详情获取成功',$result,1,0); } }