feat : sts
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user