月球大数据地理空间分析展示平台-【后端】-月球后台服务
13693261870
2023-07-18 243a135077985aa517e00320a7327bb8c459f460
src/main/java/com/moon/server/controller/all/PermsController.java
@@ -1,8 +1,8 @@
package com.moon.server.controller.all;
import com.moon.server.annotation.SysLog;
import com.moon.server.entity.data.LayerEntity;
import com.moon.server.entity.sys.MenuEntity;
import com.moon.server.entity.sys.ResEntity;
import com.moon.server.entity.sys.UserEntity;
import com.moon.server.service.all.PermsService;
import com.moon.server.service.data.LayerService;
@@ -42,7 +42,7 @@
    @SysLog()
    @ApiOperation(value = "查询当前用户的资源授权")
    @GetMapping(value = "/selectRes")
    public ResponseMsg<List<ResAuthEntity>> selectRes(HttpServletRequest req) {
    public ResponseMsg<Object> selectRes(HttpServletRequest req) {
        try {
            UserEntity ue = tokenService.getCurrentUser(req);
            if (ue == null) {
@@ -50,7 +50,7 @@
            }
            String uid = StaticData.ADMIN.equals(ue.getUid()) ? null : ue.getUid();
            List<ResAuthEntity> rs = permsService.selectRes(uid);
            List<ResEntity> rs = permsService.selectRes(uid);
            return success(rs);
        } catch (Exception ex) {