| 12345678910111213141516171819202122232425262728293031 |
- <?php
- declare(strict_types=1);
- namespace app\miniapi\controller;
- use app\miniapi\http\Input;
- use app\miniapi\service\PromotionService;
- use support\Request;
- use support\Response;
- use support\annotation\route\DisableDefaultRoute;
- #[DisableDefaultRoute]
- final class PromotionController extends BaseController
- {
- public function code(Request $request, string $enterprise): Response
- {
- return $this->success($request, (new PromotionService($this->access($request)))->code(
- $this->id($enterprise),
- Input::json($request),
- ));
- }
- public function bind(Request $request, string $enterprise): Response
- {
- return $this->success($request, (new PromotionService($this->access($request)))->bind(
- $this->id($enterprise),
- Input::json($request),
- ));
- }
- }
|