TeamController.php 523 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace App\Http\Controllers\Client;
  3. use App\Http\Controllers\Controller;
  4. use App\Services\Client\TeamService;
  5. use Auth;
  6. /**
  7. * @group 用户端
  8. *
  9. * 团队相关的API接口
  10. */
  11. class TeamController extends Controller
  12. {
  13. protected TeamService $service;
  14. public function __construct(TeamService $service)
  15. {
  16. $this->service = $service;
  17. }
  18. /**
  19. * 获取我的团队列表
  20. */
  21. public function list()
  22. {
  23. return $this->service->getTeamList(Auth::user()->id);
  24. }
  25. }