dataLists(new ContractNegotiationLists()); } /** * @notes 添加合同洽商 * @return \think\response\Json * @author likeadmin * @date 2023/12/04 21:26 */ public function add() { $params = (new ContractNegotiationValidate())->post()->goCheck('add'); $result = ContractNegotiationLogic::add($params,$this->adminId); if (true === $result) { return $this->success('添加成功', [], 1, 1); } return $this->fail(ContractNegotiationLogic::getError()); } /** * @notes 编辑合同洽商 * @return \think\response\Json * @author likeadmin * @date 2023/12/04 21:26 */ public function edit() { $params = (new ContractNegotiationValidate())->post()->goCheck('edit'); $result = ContractNegotiationLogic::edit($params); if (true === $result) { return $this->success('编辑成功', [], 1, 1); } return $this->fail(ContractNegotiationLogic::getError()); } /** * @notes 删除合同洽商 * @return \think\response\Json * @author likeadmin * @date 2023/12/04 21:26 */ public function delete() { $params = (new ContractNegotiationValidate())->post()->goCheck('delete'); ContractNegotiationLogic::delete($params); return $this->success('删除成功', [], 1, 1); } /** * @notes 获取合同洽商详情 * @return \think\response\Json * @author likeadmin * @date 2023/12/04 21:26 */ public function detail() { $params = (new ContractNegotiationValidate())->goCheck('detail'); $result = ContractNegotiationLogic::detail($params); return $this->data($result); } }