EnshrineController.php 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. namespace App\Http\Controllers\Api\v1;
  3. use App\Http\Controllers\Api\BaseController;
  4. use App\Services\EnshrineService;
  5. use Illuminate\Http\Request;
  6. /**
  7. * 供奉控制器类
  8. * @author wesmiler
  9. * @since 2020/11/10
  10. * Class EnshrineController
  11. * @package App\Http\Controllers
  12. */
  13. class EnshrineController extends BaseController
  14. {
  15. /**
  16. * 构造函数
  17. * @author wesmiler
  18. * @since 2020/11/11
  19. * EnshrineController constructor.
  20. */
  21. public function __construct()
  22. {
  23. parent::__construct();
  24. $this->service = new EnshrineService();
  25. }
  26. /**
  27. * 供奉记录
  28. * @return array
  29. */
  30. public function index(){
  31. return $this->service->getDataList($this->userId);
  32. }
  33. /**
  34. * 选择佛像
  35. * @return mixed
  36. */
  37. public function select(){
  38. return $this->service->select($this->userId);
  39. }
  40. /**
  41. * 送圣
  42. * @return array
  43. */
  44. public function packoff(){
  45. return $this->service->packoff($this->userId);
  46. }
  47. }