feat:depot_recycle
This commit is contained in:
@@ -168,4 +168,55 @@ class DepotController
|
||||
{
|
||||
return (new DepotService)->saleList();
|
||||
}
|
||||
|
||||
/**
|
||||
* 回收
|
||||
* @param DepotRequest $request
|
||||
* @return array
|
||||
* @throws Exception
|
||||
*/
|
||||
#[RequestMapping(path: "depot_recycle", methods: "POST")]
|
||||
#[Scene(scene: "recycle")]
|
||||
public function depotRecycle(DepotRequest $request): array
|
||||
{
|
||||
return (new DepotService)->recycle();
|
||||
}
|
||||
|
||||
/**
|
||||
* 回收修改数量
|
||||
* @param DepotRequest $request
|
||||
* @return array
|
||||
* @throws Exception
|
||||
*/
|
||||
#[RequestMapping(path: "recycle_update", methods: "POST")]
|
||||
#[Scene(scene: "recycle_update")]
|
||||
public function recycleUpdate(DepotRequest $request): array
|
||||
{
|
||||
return (new DepotService)->recycleUpdate();
|
||||
}
|
||||
|
||||
/**
|
||||
* 回收删除
|
||||
* @param DepotRequest $request
|
||||
* @return array
|
||||
* @throws Exception
|
||||
*/
|
||||
#[RequestMapping(path: "recycle_delete", methods: "POST")]
|
||||
#[Scene(scene: "recycle_delete")]
|
||||
public function recycleDelete(DepotRequest $request): array
|
||||
{
|
||||
return (new DepotService)->recycleDelete();
|
||||
}
|
||||
|
||||
/**
|
||||
* 回收列表
|
||||
* @param DepotRequest $request
|
||||
* @return array
|
||||
*/
|
||||
#[RequestMapping(path: "recycle_list", methods: "GET")]
|
||||
#[Scene(scene: "recycle_list")]
|
||||
public function recycleList(DepotRequest $request): array
|
||||
{
|
||||
return (new DepotService)->recycleList();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user