TestController.php 484 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: LinFei
  5. * Created time 2022/12/15 15:11:21
  6. * E-mail: fly@eyabc.cn
  7. */
  8. declare (strict_types=1);
  9. namespace LinFly\Example;
  10. class TestController
  11. {
  12. public function __construct(private TestUserService $testUserService)
  13. {
  14. }
  15. public function info()
  16. {
  17. return [
  18. 'user_info' => $this->testUserService->getUserInfo(1),
  19. 'user_order' => $this->testUserService->getUserOrder(1),
  20. ];
  21. }
  22. }