LiquidatedStatController.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: tandunzhao
  5. * Date: 2017/12/7
  6. * Time: 下午6:03
  7. */
  8. namespace App\Http\Controllers\Manage\Finance;
  9. use App\Http\Controllers\Manage\Finance\Transformers\LiquidatedStatTransformer;
  10. use App\Modules\Finance\Services\LiquidatedStatService;
  11. use Illuminate\Http\Request;
  12. class LiquidatedStatController extends BaseController
  13. {
  14. /**
  15. * @apiDefine Finance 结算提现模块
  16. */
  17. /**
  18. * @apiVersion 1.0.0
  19. * @apiDescription 获取清算汇总列表
  20. * @api {GET} LiquidatedStat/list 获取清算汇总列表
  21. * @apiGroup Finance
  22. * @apiName LiquidatedStat/list
  23. * @apiSuccess {String} pay_merchant_source 渠道支付
  24. * @apiSuccess {String} pay_merchant_source_name 渠道支付
  25. * @apiSuccess {Number} amount 清算金额.
  26. * @apiSuccessExample {json} Success-Response:
  27. *
  28. * {
  29. * "code": 0,
  30. * "msg": "",
  31. * "data":
  32. * [
  33. * {
  34. * "pay_merchant_source": "ALIPAY",
  35. * "pay_merchant_source_name": "通联支付",
  36. * "amount": "15.6000"
  37. * }
  38. * ]
  39. * }
  40. */
  41. function get_list(Request $request) {
  42. $result = LiquidatedStatService::getLiquidatedStatList();
  43. return response()->collection(new LiquidatedStatTransformer(), $result);
  44. }
  45. }