dataLists(new QualityDetectionLists()); } /** * @notes 添加质量检测 * @return \think\response\Json * @author likeadmin * @date 2023/12/21 16:14 */ public function add() { $params = (new QualityDetectionValidate())->post()->goCheck('add'); $result = QualityDetectionLogic::add($params,$this->adminId); if (true === $result) { return $this->success('添加成功', [], 1, 1); } return $this->fail(QualityDetectionLogic::getError()); } /** * @notes 编辑质量检测 * @return \think\response\Json * @author likeadmin * @date 2023/12/21 16:14 */ public function edit() { $params = (new QualityDetectionValidate())->post()->goCheck('edit'); $result = QualityDetectionLogic::edit($params,$this->adminId); if (true === $result) { return $this->success('编辑成功', [], 1, 1); } return $this->fail(QualityDetectionLogic::getError()); } /** * @notes 删除质量检测 * @return \think\response\Json * @author likeadmin * @date 2023/12/21 16:14 */ public function delete() { $params = (new QualityDetectionValidate())->post()->goCheck('delete'); QualityDetectionLogic::delete($params); return $this->success('删除成功', [], 1, 1); } /** * @notes 获取质量检测详情 * @return \think\response\Json * @author likeadmin * @date 2023/12/21 16:14 */ public function detail() { $params = (new QualityDetectionValidate())->goCheck('detail'); $result = QualityDetectionLogic::detail($params); return $this->data($result); } }