TeamController.php 510 B

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