2024-12-14 16:08:57 +08:00
|
|
|
<?php
|
2024-12-14 16:24:38 +08:00
|
|
|
namespace app\localstore\controller\user;
|
2024-12-14 16:08:57 +08:00
|
|
|
|
|
|
|
|
use app\common\basics\ShopBase;
|
|
|
|
|
use app\common\enum\ClientEnum;
|
|
|
|
|
use app\common\server\JsonServer;
|
2024-12-14 16:24:38 +08:00
|
|
|
use app\localstore\logic\user\UserLogic;
|
2024-12-14 16:08:57 +08:00
|
|
|
|
|
|
|
|
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
|
|
|
|
|
]);
|
|
|
|
|
}
|
|
|
|
|
}
|