// +---------------------------------------------------------------------- declare (strict_types=1); namespace app\api\controller\dealer; use think\response\Json; use app\api\controller\Controller; use app\api\model\dealer\Referee as RefereeModel; use app\api\service\User as UserService; /** * 我的团队 * Class Team * @package app\api\controller\user\dealer */ class Team extends Controller { /** * 我的团队列表 * @return Json * @throws \cores\exception\BaseException * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException */ public function list(): Json { // 当前用户ID $userId = UserService::getCurrentLoginUserId(); // 我的团队列表 $model = new RefereeModel; $list = $model->getList($userId, $this->request->param()); // 返回数据 return $this->renderSuccess(compact('list')); } }