get()->goCheck('info'); $result = MasterWorkerTeamLogic::getDetail($params['id'],$this->userId); return $this->data($result); } /** * 团队成员列表展示和分配 * @return \think\response\Json */ public function getMemberList() { $params = (new MasterWokerTeamValidate())->get()->goCheck('info'); $result = MasterWorkerTeamLogic::getMemberList($params['id'],$this->userId); return $this->data($result); } /** * 添加团队成员 * @return \think\response\Json */ public function addTeamMember() { $params = (new MasterWokerTeamValidate())->post()->goCheck('add'); /*$res = LoginLogic::confirmMobile($params); if(!$res){ return $this->fail(LoginLogic::getError()); }*/ $result = MasterWorkerTeamLogic::addTeamMember($params,$this->userId); if($result === false){ return $this->fail(MasterWorkerTeamLogic::getError()); } return $this->success('', [], 1, 1); } /** * 分配工单给团队成员 * @return \think\response\Json */ public function allocation() { $params = (new MasterWokerTeamValidate())->post()->goCheck('allocation'); $result = MasterWorkerTeamLogic::allocation($params,$this->userInfo); if($result === false){ return $this->fail(MasterWorkerTeamLogic::getError()); } return $this->success('', [], 1, 1); } /** * 团队工单状态统计查询 * @return \think\response\Json */ public function getTeamWorkCount() { $result = MasterWorkerTeamLogic::MemberWorkStatistics($this->userInfo); return $this->data($result); } /** * 团队工单查询 * @return \think\response\Json */ public function getTeamWorkLists() { return $this->dataLists(new TeamServiceWorkLists()); } }