|
@@ -13,6 +13,7 @@ import com.zanxiang.game.module.manage.service.IGameAuthService;
|
|
import com.zanxiang.game.module.mybatis.entity.GameAuth;
|
|
import com.zanxiang.game.module.mybatis.entity.GameAuth;
|
|
import com.zanxiang.game.module.mybatis.entity.GameAuthRole;
|
|
import com.zanxiang.game.module.mybatis.entity.GameAuthRole;
|
|
import com.zanxiang.module.util.exception.BaseException;
|
|
import com.zanxiang.module.util.exception.BaseException;
|
|
|
|
+import com.zanxiang.module.util.pojo.ResultVO;
|
|
import org.apache.dubbo.config.annotation.DubboReference;
|
|
import org.apache.dubbo.config.annotation.DubboReference;
|
|
import org.apache.dubbo.config.annotation.DubboService;
|
|
import org.apache.dubbo.config.annotation.DubboService;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -42,7 +43,7 @@ public class GameAuthRpcImpl implements GameAuthRpc {
|
|
private ISysGameUserGroupRpc sysGameUserGroupRpc;
|
|
private ISysGameUserGroupRpc sysGameUserGroupRpc;
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- public GameAuthUserVO getGameAuthByUserIds() {
|
|
|
|
|
|
+ public ResultVO<GameAuthUserVO> getGameAuthByUserIds() {
|
|
//游戏列表
|
|
//游戏列表
|
|
Tuple2<String, List<Long>> tuple2 = gameAuthService.getUserGameList(null);
|
|
Tuple2<String, List<Long>> tuple2 = gameAuthService.getUserGameList(null);
|
|
//角色
|
|
//角色
|
|
@@ -84,11 +85,11 @@ public class GameAuthRpcImpl implements GameAuthRpc {
|
|
pitcherList.add(SecurityUtil.getUserId());
|
|
pitcherList.add(SecurityUtil.getUserId());
|
|
}
|
|
}
|
|
//构造返回
|
|
//构造返回
|
|
- return GameAuthUserVO.builder()
|
|
|
|
|
|
+ return ResultVO.ok(GameAuthUserVO.builder()
|
|
.userId(SecurityUtil.getUserId())
|
|
.userId(SecurityUtil.getUserId())
|
|
.gameIdList(tuple2.getT2())
|
|
.gameIdList(tuple2.getT2())
|
|
.gameAuthEnum(gameAuthEnum)
|
|
.gameAuthEnum(gameAuthEnum)
|
|
.pitcherList(pitcherList)
|
|
.pitcherList(pitcherList)
|
|
- .build();
|
|
|
|
|
|
+ .build());
|
|
}
|
|
}
|
|
}
|
|
}
|