first commit
This commit is contained in:
298
app/adminapi/controller/user/UserController.php
Normal file
298
app/adminapi/controller/user/UserController.php
Normal file
@@ -0,0 +1,298 @@
|
||||
<?php
|
||||
namespace app\adminapi\controller\user;
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\user\{UserLists,UserAgentLists};
|
||||
use app\adminapi\logic\user\UserLogic;
|
||||
use app\adminapi\validate\user\{AdjustUserMoney,AddUserValidate,UserValidate};
|
||||
use app\api\validate\RegisterValidate;
|
||||
/**
|
||||
* 用户控制器
|
||||
* Class UserController
|
||||
* @package app\adminapi\controller\user
|
||||
*/
|
||||
class UserController extends BaseAdminController
|
||||
{
|
||||
|
||||
/**
|
||||
* @notes 用户列表
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2023/9/22 16:16
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new UserLists());
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 代理用户列表
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2023/9/22 16:16
|
||||
*/
|
||||
public function agentLists()
|
||||
{
|
||||
return $this->dataLists(new UserAgentLists());
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 添加用户
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2023/9/22 16:34
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new AddUserValidate())->post()->goCheck('add');
|
||||
$res = UserLogic::add($params);
|
||||
if (true === $res) {
|
||||
return $this->success('操作成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail($res);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 修改用户密码
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2023/9/22 16:34
|
||||
*/
|
||||
public function changePwd()
|
||||
{
|
||||
$params = (new UserValidate())->post()->goCheck('changePwd');
|
||||
UserLogic::changePwd($params);
|
||||
return $this->success('操作成功', [], 1, 1);
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 重置支付密码
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2023/9/22 16:34
|
||||
*/
|
||||
public function resetPayPwd()
|
||||
{
|
||||
$params = $this->request->post();
|
||||
UserLogic::resetPayPwd($params);
|
||||
return $this->success('操作成功', [], 1, 1);
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 修改邮箱
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2023/9/22 16:34
|
||||
*/
|
||||
public function changeEmail()
|
||||
{
|
||||
$params = (new UserValidate())->post()->goCheck('changeEmail');
|
||||
UserLogic::changeEmail($params);
|
||||
return $this->success('操作成功', [], 1, 1);
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 重置邮箱验证
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2023/9/22 16:34
|
||||
*/
|
||||
public function resetEmail()
|
||||
{
|
||||
$params = $this->request->post();
|
||||
UserLogic::resetEmail($params);
|
||||
return $this->success('操作成功', [], 1, 1);
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 重置谷歌验证
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2023/9/22 16:34
|
||||
*/
|
||||
public function resetGoogle()
|
||||
{
|
||||
$params = $this->request->post();
|
||||
UserLogic::resetGoogle($params);
|
||||
return $this->success('操作成功', [], 1, 1);
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 调整用户余额
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2023/2/23 14:33
|
||||
*/
|
||||
public function adjustMoney()
|
||||
{
|
||||
$params = (new AdjustUserMoney())->post()->goCheck();
|
||||
$res = UserLogic::adjustUserMoney($params);
|
||||
if (true === $res) {
|
||||
return $this->success('操作成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail($res);
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 更改状态
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2323/2/22 10:18
|
||||
*/
|
||||
public function updateMemberStatus()
|
||||
{
|
||||
$params = $this->request->post();
|
||||
$result = UserLogic::updateMemberStatus($params);
|
||||
if (true === $result) {
|
||||
return $this->success('修改成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(UserLogic::getError());
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 更改状态
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2323/2/22 10:18
|
||||
*/
|
||||
public function updateLhStatus()
|
||||
{
|
||||
$params = $this->request->post();
|
||||
$result = UserLogic::updateLhStatus($params);
|
||||
if (true === $result) {
|
||||
return $this->success('修改成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(UserLogic::getError());
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 更改状态
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2323/2/22 10:18
|
||||
*/
|
||||
public function updateTransferStatus()
|
||||
{
|
||||
$params = $this->request->post();
|
||||
$result = UserLogic::updateTransferStatus($params);
|
||||
if (true === $result) {
|
||||
return $this->success('修改成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(UserLogic::getError());
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 更改状态
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2323/2/22 10:18
|
||||
*/
|
||||
public function updateSnStatus()
|
||||
{
|
||||
$params = $this->request->post();
|
||||
$result = UserLogic::updateSnStatus($params);
|
||||
if (true === $result) {
|
||||
return $this->success('修改成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(UserLogic::getError());
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 更改状态
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2323/2/22 10:18
|
||||
*/
|
||||
public function updateOpenStatus()
|
||||
{
|
||||
$params = $this->request->post();
|
||||
$result = UserLogic::updateOpenStatus($params);
|
||||
if (true === $result) {
|
||||
return $this->success('修改成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(UserLogic::getError());
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 更改状态
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2323/2/22 10:18
|
||||
*/
|
||||
public function updateAgentStatus()
|
||||
{
|
||||
$params = $this->request->post();
|
||||
$result = UserLogic::updateAgentStatus($params);
|
||||
if (true === $result) {
|
||||
return $this->success('修改成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail($result);
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 修改代理名称
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2023/9/22 16:34
|
||||
*/
|
||||
public function changeAgentName()
|
||||
{
|
||||
$params = $this->request->post();
|
||||
$result = UserLogic::changeAgentName($params);
|
||||
if (true === $result) {
|
||||
return $this->success('修改成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail($result);
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 发送站内信
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2323/2/22 10:18
|
||||
*/
|
||||
public function sendNotice()
|
||||
{
|
||||
$params = $this->request->post();
|
||||
$res = UserLogic::sendNotice($params);
|
||||
if (true === $res) {
|
||||
return $this->success('发送成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail($res);
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 彩金赠送
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2323/2/22 10:18
|
||||
*/
|
||||
public function caijin()
|
||||
{
|
||||
$params = $this->request->post();
|
||||
$res = UserLogic::caijin($params);
|
||||
if (true === $res) {
|
||||
return $this->success('赠送成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail($res);
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 备注
|
||||
* @return \think\response\Json
|
||||
* @author bd
|
||||
* @date 2024/01/31 14:07
|
||||
*/
|
||||
public function remark()
|
||||
{
|
||||
$params = $this->request->post();
|
||||
$params['admin_id'] = $this->adminId;
|
||||
$result = UserLogic::remark($params);
|
||||
if (true === $result) {
|
||||
return $this->success('备注成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(UserLogic::getError());
|
||||
}
|
||||
|
||||
}
|
||||
110
app/adminapi/controller/user/UserGroupController.php
Normal file
110
app/adminapi/controller/user/UserGroupController.php
Normal file
@@ -0,0 +1,110 @@
|
||||
<?php
|
||||
namespace app\adminapi\controller\user;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\user\UserGroupLists;
|
||||
use app\adminapi\logic\user\UserGroupLogic;
|
||||
use app\adminapi\validate\user\UserGroupValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 用户分组控制器
|
||||
* Class UserGroupController
|
||||
* @package app\adminapi\controller\user
|
||||
*/
|
||||
class UserGroupController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取用户分组列表
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2024/04/25 01:04
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new UserGroupLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加用户分组
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2024/04/25 01:04
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new UserGroupValidate())->post()->goCheck('add');
|
||||
$result = UserGroupLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(UserGroupLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑用户分组
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2024/04/25 01:04
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new UserGroupValidate())->post()->goCheck('edit');
|
||||
$result = UserGroupLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(UserGroupLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除用户分组
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2024/04/25 01:04
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new UserGroupValidate())->post()->goCheck('delete');
|
||||
UserGroupLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取用户分组详情
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2024/04/25 01:04
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new UserGroupValidate())->goCheck('detail');
|
||||
$result = UserGroupLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 用户分组
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2024/03/19 02:29
|
||||
*/
|
||||
public function setUserGroup()
|
||||
{
|
||||
$params = $this->request->post();
|
||||
$result = UserGroupLogic::setUserGroup($params);
|
||||
if (true === $result) {
|
||||
return $this->success('分组成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(UserGroupLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
94
app/adminapi/controller/user/UserGroupRuleController.php
Normal file
94
app/adminapi/controller/user/UserGroupRuleController.php
Normal file
@@ -0,0 +1,94 @@
|
||||
<?php
|
||||
namespace app\adminapi\controller\user;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\user\UserGroupRuleLists;
|
||||
use app\adminapi\logic\user\UserGroupRuleLogic;
|
||||
use app\adminapi\validate\user\UserGroupRuleValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 分组规则控制器
|
||||
* Class UserGroupRuleController
|
||||
* @package app\adminapi\controller\user
|
||||
*/
|
||||
class UserGroupRuleController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取分组规则列表
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2024/04/25 01:30
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new UserGroupRuleLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加分组规则
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2024/04/25 01:30
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new UserGroupRuleValidate())->post()->goCheck('add');
|
||||
$result = UserGroupRuleLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(UserGroupRuleLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑分组规则
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2024/04/25 01:30
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new UserGroupRuleValidate())->post()->goCheck('edit');
|
||||
$result = UserGroupRuleLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(UserGroupRuleLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除分组规则
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2024/04/25 01:30
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new UserGroupRuleValidate())->post()->goCheck('delete');
|
||||
UserGroupRuleLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取分组规则详情
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2024/04/25 01:30
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new UserGroupRuleValidate())->goCheck('detail');
|
||||
$result = UserGroupRuleLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
62
app/adminapi/controller/user/UserInfoController.php
Normal file
62
app/adminapi/controller/user/UserInfoController.php
Normal file
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
namespace app\adminapi\controller\user;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\user\UserInfoLists;
|
||||
use app\adminapi\logic\user\UserInfoLogic;
|
||||
use app\adminapi\validate\user\UserInfoValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 用户信息控制器
|
||||
* Class UserInfoController
|
||||
* @package app\adminapi\controller\user
|
||||
*/
|
||||
class UserInfoController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取用户信息列表
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2024/06/08 17:51
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new UserInfoLists());
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 同意实名
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2024/06/08 17:51
|
||||
*/
|
||||
public function agree()
|
||||
{
|
||||
$params = $this->request->post();
|
||||
$result = UserInfoLogic::agree($params);
|
||||
if (true === $result) {
|
||||
return $this->success('同意成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(UserInfoLogic::getError());
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 拒绝实名
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2024/06/08 17:51
|
||||
*/
|
||||
public function refuse()
|
||||
{
|
||||
$params = $this->request->post();
|
||||
$result = UserInfoLogic::refuse($params);
|
||||
if (true === $result) {
|
||||
return $this->success('拒绝成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(UserInfoLogic::getError());
|
||||
}
|
||||
}
|
||||
94
app/adminapi/controller/user/UserKadanController.php
Normal file
94
app/adminapi/controller/user/UserKadanController.php
Normal file
@@ -0,0 +1,94 @@
|
||||
<?php
|
||||
namespace app\adminapi\controller\user;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\user\UserKadanLists;
|
||||
use app\adminapi\logic\user\UserKadanLogic;
|
||||
use app\adminapi\validate\user\UserKadanValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 卡单规则控制器
|
||||
* Class UserKadanController
|
||||
* @package app\adminapi\controller\user
|
||||
*/
|
||||
class UserKadanController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取卡单规则列表
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2024/04/24 17:00
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new UserKadanLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加卡单规则
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2024/04/24 17:00
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new UserKadanValidate())->post()->goCheck('add');
|
||||
$result = UserKadanLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(UserKadanLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑卡单规则
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2024/04/24 17:00
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new UserKadanValidate())->post()->goCheck('edit');
|
||||
$result = UserKadanLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(UserKadanLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除卡单规则
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2024/04/24 17:00
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new UserKadanValidate())->post()->goCheck('delete');
|
||||
UserKadanLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取卡单规则详情
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2024/04/24 17:00
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new UserKadanValidate())->goCheck('detail');
|
||||
$result = UserKadanLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
94
app/adminapi/controller/user/UserMineRecordController.php
Normal file
94
app/adminapi/controller/user/UserMineRecordController.php
Normal file
@@ -0,0 +1,94 @@
|
||||
<?php
|
||||
namespace app\adminapi\controller\user;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\user\UserMineRecordLists;
|
||||
use app\adminapi\logic\user\UserMineRecordLogic;
|
||||
use app\adminapi\validate\user\UserMineRecordValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 挖矿记录控制器
|
||||
* Class UserMineRecordController
|
||||
* @package app\adminapi\controller\user
|
||||
*/
|
||||
class UserMineRecordController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取挖矿记录列表
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2025/01/01 15:47
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new UserMineRecordLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加挖矿记录
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2025/01/01 15:47
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new UserMineRecordValidate())->post()->goCheck('add');
|
||||
$result = UserMineRecordLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(UserMineRecordLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑挖矿记录
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2025/01/01 15:47
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new UserMineRecordValidate())->post()->goCheck('edit');
|
||||
$result = UserMineRecordLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(UserMineRecordLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除挖矿记录
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2025/01/01 15:47
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new UserMineRecordValidate())->post()->goCheck('delete');
|
||||
UserMineRecordLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取挖矿记录详情
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2025/01/01 15:47
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new UserMineRecordValidate())->goCheck('detail');
|
||||
$result = UserMineRecordLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
94
app/adminapi/controller/user/UserNoticeController.php
Normal file
94
app/adminapi/controller/user/UserNoticeController.php
Normal file
@@ -0,0 +1,94 @@
|
||||
<?php
|
||||
namespace app\adminapi\controller\user;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\user\UserNoticeLists;
|
||||
use app\adminapi\logic\user\UserNoticeLogic;
|
||||
use app\adminapi\validate\user\UserNoticeValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 用户消息控制器
|
||||
* Class UserNoticeController
|
||||
* @package app\adminapi\controller\user
|
||||
*/
|
||||
class UserNoticeController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取用户消息列表
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2024/05/26 00:36
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new UserNoticeLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加用户消息
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2024/05/26 00:36
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new UserNoticeValidate())->post()->goCheck('add');
|
||||
$result = UserNoticeLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(UserNoticeLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑用户消息
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2024/05/26 00:36
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new UserNoticeValidate())->post()->goCheck('edit');
|
||||
$result = UserNoticeLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(UserNoticeLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除用户消息
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2024/05/26 00:36
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new UserNoticeValidate())->post()->goCheck('delete');
|
||||
UserNoticeLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取用户消息详情
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2024/05/26 00:36
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new UserNoticeValidate())->goCheck('detail');
|
||||
$result = UserNoticeLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
30
app/adminapi/controller/user/UserRelationController.php
Normal file
30
app/adminapi/controller/user/UserRelationController.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
namespace app\adminapi\controller\user;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\user\UserRelationLists;
|
||||
use app\adminapi\logic\user\UserRelationLogic;
|
||||
use app\adminapi\validate\user\UserRelationValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 用户关系控制器
|
||||
* Class UserRelationController
|
||||
* @package app\adminapi\controller\user
|
||||
*/
|
||||
class UserRelationController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取用户关系列表
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2024/01/12 17:21
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new UserRelationLists());
|
||||
}
|
||||
}
|
||||
150
app/adminapi/controller/user/UserTronController.php
Normal file
150
app/adminapi/controller/user/UserTronController.php
Normal file
@@ -0,0 +1,150 @@
|
||||
<?php
|
||||
namespace app\adminapi\controller\user;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\user\UserTronLists;
|
||||
use app\adminapi\logic\user\UserTronLogic;
|
||||
use app\adminapi\validate\user\UserTronValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 波场钱包控制器
|
||||
* Class UserTronController
|
||||
* @package app\adminapi\controller\user
|
||||
*/
|
||||
class UserTronController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取波场钱包列表
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2024/05/04 23:38
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new UserTronLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 创建波场钱包
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2024/05/04 23:38
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$result = UserTronLogic::add();
|
||||
if (true === $result) {
|
||||
return $this->success('创建成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(UserTronLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑波场钱包
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2024/05/04 23:38
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new UserTronValidate())->post()->goCheck('edit');
|
||||
$result = UserTronLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(UserTronLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除波场钱包
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2024/05/04 23:38
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new UserTronValidate())->post()->goCheck('delete');
|
||||
UserTronLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取波场钱包详情
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2024/05/04 23:38
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new UserTronValidate())->goCheck('detail');
|
||||
$result = UserTronLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 更新排序
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2024/05/04 23:38
|
||||
*/
|
||||
public function updateSort()
|
||||
{
|
||||
$params = $this->request->post();
|
||||
UserTronLogic::updateSort($params);
|
||||
return $this->success('更新成功', [], 1, 1);
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 更新金额
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2024/05/04 23:38
|
||||
*/
|
||||
public function updateMoney()
|
||||
{
|
||||
$params = $this->request->post();
|
||||
UserTronLogic::updateMoney($params);
|
||||
return $this->success('更新成功', [], 1, 1);
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 转账
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2024/05/04 23:38
|
||||
*/
|
||||
public function tran()
|
||||
{
|
||||
$params = (new UserTronValidate())->post()->goCheck('tran');
|
||||
$res = UserTronLogic::tran($params);
|
||||
if (true === $res) {
|
||||
return $this->success('转账成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail($res);
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 资金归集
|
||||
* @return \think\response\Json
|
||||
* @author BD
|
||||
* @date 2024/05/04 23:38
|
||||
*/
|
||||
public function tranAll()
|
||||
{
|
||||
$params = (new UserTronValidate())->post()->goCheck('tranAll');
|
||||
$res = UserTronLogic::tranAll($params);
|
||||
if (true === $res) {
|
||||
return $this->success('归集完成', [], 1, 1);
|
||||
}
|
||||
return $this->fail($res);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user