fix : site

This commit is contained in:
2025-03-31 15:20:51 +08:00
parent 003613a918
commit d84ffd4c9e
5 changed files with 81 additions and 6 deletions

View File

@@ -83,6 +83,28 @@ class UserController extends AbstractController
return (new SiteService)->del();
}
/**
* @return array
*/
#[RequestMapping(path: 'site/set_default',methods: 'post')]
#[Scene(scene: 'set_default_site')]
public function setDefaultSite()
{
return (new SiteService)->setDefault();
}
/**
* @return array
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
#[RequestMapping(path: 'site/get_default',methods: 'GET')]
#[Scene(scene: 'get_default_site')]
public function getDefaultSite()
{
return (new SiteService)->getDefault();
}
/**
* @return array
*/
@@ -117,6 +139,6 @@ class UserController extends AbstractController
public function updateProfile()
{
}
}