feat : site

This commit is contained in:
2025-02-27 17:21:21 +08:00
parent a76d360b77
commit 3be21ed1b6
6 changed files with 305 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ use App\Controller\AbstractController;
use App\Middleware\Api\JwtAuthMiddleware;
use App\Request\Api\UserRequest;
use App\Service\Api\User\BindPhoneByWxService;
use App\Service\Api\User\SiteService;
use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\Middlewares;
use Hyperf\HttpServer\Annotation\RequestMapping;
@@ -33,4 +34,38 @@ class UserController extends AbstractController
{
return (new BindPhoneByWxService)->handle();
}
/**
* @return array
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
#[RequestMapping(path: 'site/list',methods: 'post')]
#[Scene(scene: 'site_list')]
public function userSiteList()
{
return (new SiteService)->handle();
}
/**
* @return array
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
#[RequestMapping(path: 'site/add',methods: 'post')]
#[Scene(scene: 'add_site')]
public function addSite()
{
return (new SiteService)->add();
}
/**
* @return array
*/
#[RequestMapping(path: 'site/del',methods: 'post')]
#[Scene(scene: 'del_site')]
public function delSite()
{
return (new SiteService)->del();
}
}