feat:depot_recycle

This commit is contained in:
LAPTOP-7SGDREK0\shiweijun
2025-02-08 17:57:37 +08:00
parent 0c34080d92
commit 22dd466254
7 changed files with 300 additions and 4 deletions

View File

@@ -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();
}
}