pay_lihaink_cn/app/admin/controller/user/UserController.php
2023-10-09 13:42:49 +08:00

49 lines
1.0 KiB
PHP

<?php
namespace app\admin\controller\user;
use app\admin\controller\BaseAdminController;
use app\admin\lists\user\UserLists;
use app\admin\logic\user\UserLogic;
use app\admin\validate\user\UserValidate;
class UserController extends BaseAdminController
{
/**
* @notes 用户列表
* @author 乔峰
* @date 2022//22 16:16
*/
public function lists()
{
return $this->dataLists(new UserLists());
}
/**
* @notes 获取用户详情
* @author 乔峰
* @date 2022/9/22 16:34
*/
public function detail()
{
$params = (new UserValidate())->goCheck('detail');
$detail = UserLogic::detail($params['id']);
return $this->success('', $detail);
}
/**
* @notes 编辑用户信息
* @author 乔峰
* @date 2022/9/22 16:34
*/
public function edit()
{
$params = (new UserValidate())->post()->goCheck('setInfo');
UserLogic::setUserInfo($params);
return $this->success('操作成功', [], 1, 1);
}
}