1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- /**
- * Created by PhpStorm.
- * User: wuzhenke
- * Date: 2018/12/9
- * Time: 15:22
- */
- namespace App\Services\Common;
- use App\Repositories\PaymentRepository;
- class PaymentService
- {
- protected $paymentRepository;
- /**
- * PaymentService constructor.
- * @param $paymentRepository
- */
- public function __construct(PaymentRepository $paymentRepository)
- {
- $this->paymentRepository = $paymentRepository;
- }
- public function returnPayment($payment)
- {
- return $this->paymentRepository->returnPayment($payment);
- }
- public function getPayment($whereIn)
- {
- return $this->paymentRepository->getPayments($whereIn);
- }
- }
|