dataLists(new LhCoinLists()); } /** * @notes 添加量化货币 * @return \think\response\Json * @author BD * @date 2024/05/19 21:13 */ public function add() { $params = (new LhCoinValidate())->post()->goCheck('add'); $result = LhCoinLogic::add($params); if (true === $result) { return $this->success('添加成功', [], 1, 1); } return $this->fail(LhCoinLogic::getError()); } /** * @notes 编辑量化货币 * @return \think\response\Json * @author BD * @date 2024/05/19 21:13 */ public function edit() { $params = (new LhCoinValidate())->post()->goCheck('edit'); $result = LhCoinLogic::edit($params); if (true === $result) { return $this->success('编辑成功', [], 1, 1); } return $this->fail(LhCoinLogic::getError()); } /** * @notes 删除量化货币 * @return \think\response\Json * @author BD * @date 2024/05/19 21:13 */ public function delete() { $params = (new LhCoinValidate())->post()->goCheck('delete'); LhCoinLogic::delete($params); return $this->success('删除成功', [], 1, 1); } /** * @notes 获取量化货币详情 * @return \think\response\Json * @author BD * @date 2024/05/19 21:13 */ public function detail() { $params = (new LhCoinValidate())->goCheck('detail'); $result = LhCoinLogic::detail($params); return $this->data($result); } }