dataLists(new ManageMeteredPaymentLists()); } /** * @notes 添加项目管理--计量支付 * @return \think\response\Json * @author likeadmin * @date 2024/03/07 14:27 */ public function add() { $params = (new ManageMeteredPaymentValidate())->post()->goCheck('add'); $result = ManageMeteredPaymentLogic::add($params); if (true === $result) { return $this->success('添加成功', [], 1, 1); } return $this->fail(ManageMeteredPaymentLogic::getError()); } /** * @notes 编辑项目管理--计量支付 * @return \think\response\Json * @author likeadmin * @date 2024/03/07 14:27 */ public function edit() { $params = (new ManageMeteredPaymentValidate())->post()->goCheck('edit'); $result = ManageMeteredPaymentLogic::edit($params); if (true === $result) { return $this->success('编辑成功', [], 1, 1); } return $this->fail(ManageMeteredPaymentLogic::getError()); } /** * @notes 删除项目管理--计量支付 * @return \think\response\Json * @author likeadmin * @date 2024/03/07 14:27 */ public function delete() { $params = (new ManageMeteredPaymentValidate())->post()->goCheck('delete'); ManageMeteredPaymentLogic::delete($params); return $this->success('删除成功', [], 1, 1); } /** * @notes 获取项目管理--计量支付详情 * @return \think\response\Json * @author likeadmin * @date 2024/03/07 14:27 */ public function detail() { $params = (new ManageMeteredPaymentValidate())->goCheck('detail'); $result = ManageMeteredPaymentLogic::detail($params); return $this->data($result); } }