feat : sts

This commit is contained in:
2025-04-15 10:54:31 +08:00
parent f3589ed994
commit 39be37f9a5
10 changed files with 249 additions and 16 deletions

View File

@@ -189,10 +189,26 @@ class GoodController extends AbstractController
return (new CategoryService)->add();
}
/**
* 添加特惠
* @return array
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
#[RequestMapping(path: "add_favorable", methods: "POST")]
#[Scene(scene: "add_favorable")]
public function addFavorable()
{
//todo
return (new FavorableService())->handle();
}
/**
* @return array
*/
#[RequestMapping(path: "list_favorable", methods: "GET")]
#[Scene(scene: "list_favorable")]
public function listFavorable(): array
{
return (new FavorableService)->list();
}
}