DrawLogController.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | LARAVEL8.0 框架 [ LARAVEL ][ RXThinkCMF ]
  4. // +----------------------------------------------------------------------
  5. // | 版权所有 2017~2021 LARAVEL研发中心
  6. // +----------------------------------------------------------------------
  7. // | 官方网站: http://www.laravel.cn
  8. // +----------------------------------------------------------------------
  9. // | Author: laravel开发员 <laravel.qq.com>
  10. // +----------------------------------------------------------------------
  11. namespace App\Http\Controllers\Admin;
  12. use App\Services\Common\DrawLogsService;
  13. use App\Services\Common\WalletService;
  14. /**
  15. * 承兑商管理-控制器
  16. * @author laravel开发员
  17. * @since 2020/11/11
  18. * @package App\Http\Controllers
  19. */
  20. class DrawLogController extends Backend
  21. {
  22. /**
  23. * 构造函数
  24. * @author laravel开发员
  25. * @since 2020/11/11
  26. */
  27. public function __construct()
  28. {
  29. parent::__construct();
  30. $this->service = new DrawLogsService();
  31. }
  32. /**
  33. * 列表
  34. * @return array
  35. */
  36. public function index()
  37. {
  38. $pageSize = request()->get('limit', 15);
  39. $list = $this->service->getDataList(request()->all(), $pageSize);
  40. $message = array(
  41. "msg" => '操作成功',
  42. "code" => 0,
  43. "data" => isset($list['list'])? $list['list']:[],
  44. "count" => isset($list['total'])? $list['total']:0,
  45. );
  46. return $message;
  47. }
  48. }