FinanceController.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: tandunzhao
  5. * Date: 2017/12/26
  6. * Time: 下午8:30
  7. */
  8. namespace App\Http\Controllers\Channel\Finance;
  9. use App\Modules\Finance\Services\WithdrawCashService;
  10. use Illuminate\Http\Request;
  11. class FinanceController extends BaseController
  12. {
  13. /**
  14. * @apiVersion 1.0.0
  15. * @apiDescription 获取状态列表
  16. * @api {POST} getWithdrawCashStatus 获取状态列表
  17. * @apiGroup Finance
  18. * @apiName getWithdrawCashStatus
  19. * @apiSuccess {Number} code 状态码
  20. * @apiSuccess {String} name 状态名称.
  21. * @apiSuccess {Number} show 是否显示 0:隐藏; 1:显示
  22. * @apiSuccessExample {json} Success-Response:
  23. *
  24. * {
  25. * "code": 0,
  26. * "msg": "",
  27. * "data":[
  28. * {
  29. * "code": 0,
  30. * "name": "待审核",
  31. * "show": 1
  32. * }
  33. * ]
  34. * }
  35. */
  36. public function getWithdrawCashStatus(Request $request) {
  37. $result = WithdrawCashService::getWithdrawCashStatusList(10);
  38. return response()->success($result);
  39. }
  40. }