first commit

This commit is contained in:
Your Name
2026-01-19 14:19:22 +08:00
commit fe2d9c1868
4777 changed files with 665503 additions and 0 deletions

View File

@@ -0,0 +1,94 @@
<?php
namespace app\adminapi\controller\lh;
use app\adminapi\controller\BaseAdminController;
use app\adminapi\lists\lh\LhCoinLists;
use app\adminapi\logic\lh\LhCoinLogic;
use app\adminapi\validate\lh\LhCoinValidate;
/**
* 量化货币控制器
* Class LhCoinController
* @package app\adminapi\controller\lh
*/
class LhCoinController extends BaseAdminController
{
/**
* @notes 获取量化货币列表
* @return \think\response\Json
* @author BD
* @date 2024/05/19 21:13
*/
public function lists()
{
return $this->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);
}
}