26 lines
641 B
PHP
26 lines
641 B
PHP
|
<?php
|
||
|
|
||
|
namespace app\adminapi\controller\user;
|
||
|
|
||
|
use app\adminapi\controller\BaseAdminController;
|
||
|
use app\adminapi\lists\user\UserLists;
|
||
|
use app\adminapi\logic\user\UserLogic;
|
||
|
use app\common\validate\user\UserValidate;
|
||
|
use think\response\Json;
|
||
|
|
||
|
class UserController extends BaseAdminController
|
||
|
{
|
||
|
// 用户列表
|
||
|
public function lists(): Json
|
||
|
{
|
||
|
return $this->dataLists(new UserLists());
|
||
|
}
|
||
|
|
||
|
// 获取用户详情
|
||
|
public function detail(): Json
|
||
|
{
|
||
|
$params = (new UserValidate())->goCheck('detail');
|
||
|
$detail = UserLogic::detail($params['id']);
|
||
|
return $this->success('', $detail);
|
||
|
}
|
||
|
}
|