dlh_test_server/app/localstore/controller/user/User.php

33 lines
796 B
PHP
Raw Permalink Normal View History

2024-12-14 16:08:57 +08:00
<?php
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;
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
]);
}
}