12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
- namespace App\Generated\Controllers\V1_1;
- use App\Http\Controllers\Controller;
- use App\Generated\V1_1\Messages\Payment\GetCouponListMessage;
- use App\Generated\V1_1\Messages\Payment\GetCouponDetailMessage;
- use App\Http\Services\V1_1\PaymentService;
- use App\Generated\V1_1\Messages\Payment\FetchAppWechatPayParamsMessage;
- use DB;
- class PaymentController extends Controller
- {
- public $handler;
- public function __construct(PaymentService $handler)
- {
- $this->handler = $handler;
- }
- public function fetchAppWechatPayParams(FetchAppWechatPayParamsMessage $message)
- {
- $message->validateInput();
- $this->handler->fetchAppWechatPayParams($message);
- $message->validateOutput();
- return $message->getResponse();
- }
- public function getCouponDetail(GetCouponDetailMessage $message)
- {
- $message->validateInput();
- $this->handler->getCouponDetail($message);
- $message->validateOutput();
- return $message->getResponse();
- }
- public function getCouponList(GetCouponListMessage $message)
- {
- $message->validateInput();
- $this->handler->getCouponList($message);
- $message->validateOutput();
- return $message->getResponse();
- }
- }
|