CardController.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | Laravel框架 [ Laravel ]
  4. // +----------------------------------------------------------------------
  5. // | 版权所有 2017~2021 Laravel研发中心
  6. // +----------------------------------------------------------------------
  7. // | 官方网站: http://www.laravel.cn
  8. // +----------------------------------------------------------------------
  9. // | Author: wesmiler <12345678@qq.com>
  10. // +----------------------------------------------------------------------
  11. namespace App\Http\Controllers;
  12. use App\Services\ArticleService;
  13. use App\Services\CardService;
  14. /**
  15. * 卡管理-控制器
  16. * @author wesmiler
  17. * @since 2020/11/11
  18. * Class CardController
  19. * @package App\Http\Controllers
  20. */
  21. class CardController extends Backend
  22. {
  23. /**
  24. * 构造函数
  25. * @author wesmiler
  26. * @since 2020/11/11
  27. * CardController constructor.
  28. */
  29. public function __construct()
  30. {
  31. parent::__construct();
  32. $this->service = new CardService();
  33. }
  34. /**
  35. * 额度调整
  36. * @return mixed
  37. */
  38. public function quota(){
  39. return $this->service->quota($this->userId);
  40. }
  41. }