其余文件
This commit is contained in:
33
app/shop/controller/user/User.php
Normal file
33
app/shop/controller/user/User.php
Normal file
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
namespace app\shop\controller\user;
|
||||
|
||||
use app\common\basics\ShopBase;
|
||||
use app\common\enum\ClientEnum;
|
||||
use app\common\server\JsonServer;
|
||||
use app\shop\logic\user\UserLogic;
|
||||
|
||||
class User extends ShopBase
|
||||
{
|
||||
public function lists()
|
||||
{
|
||||
if($this->request->isAjax()) {
|
||||
$get = $this->request->get();
|
||||
$get['shop_id'] = $this->shop_id;
|
||||
$data = UserLogic::lists($get);
|
||||
return JsonServer::success('', $data);
|
||||
}
|
||||
|
||||
return view('', [
|
||||
'client_list' => ClientEnum::getClient(true)
|
||||
]);
|
||||
}
|
||||
|
||||
public function info()
|
||||
{
|
||||
$id = $this->request->get('id', '', 'intval');
|
||||
$detail = UserLogic::getInfo($id);
|
||||
return view('', [
|
||||
'detail' => $detail
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user