| 1234567891011121314151617181920212223242526272829303132 |
- <?php
- namespace App\Module\Fund\Services;
- use App\Module\Fund\Dto\TransferDto;
- use App\Module\Fund\Logic\User;
- /**
- * Class Task
- *
- * @package App\Logic\Fund
- */
- class DtoService
- {
- /**
- * 使用TransferDto转账对象进行处理
- *
- * @param TransferDto $tr
- * @return bool|string
- */
- static public function transfer_call(TransferDto $tr)
- {
- $fund = new FundService($tr->fromUserId, $tr->fundId);
- return $fund->transfer($tr->toUserId, $tr->amount, $tr->remark);
- }
- }
|