feat : coupon
This commit is contained in:
@@ -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")]
|
||||
|
||||
Reference in New Issue
Block a user