feat : coupon

This commit is contained in:
2025-03-21 09:46:14 +08:00
parent 636fe765ef
commit e85b9095ab

View File

@@ -17,6 +17,8 @@ use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\Middlewares;
use Hyperf\HttpServer\Annotation\RequestMapping;
use Hyperf\Validation\Annotation\Scene;
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\NotFoundExceptionInterface;
#[Controller(prefix: "admin/good")]
#[Middlewares([
@@ -89,6 +91,8 @@ class GoodController extends AbstractController
* sku 添加
* @param GoodRequest $request
* @return array
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
#[RequestMapping(path: "add_sku", methods: "POST")]
#[Scene(scene: "add_sku")]
@@ -101,6 +105,8 @@ class GoodController extends AbstractController
* sku 修改
* @param GoodRequest $request
* @return array
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
#[RequestMapping(path: "edit_sku", methods: "POST")]
#[Scene(scene: "edit_sku")]
@@ -113,6 +119,8 @@ class GoodController extends AbstractController
* sku 删除
* @param GoodRequest $request
* @return array
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
#[RequestMapping(path: "del_sku", methods: "GET")]
#[Scene(scene: "del_sku")]