| | |
| | | import cn.huge.module.ctrole.domain.po.CtRole; |
| | | import cn.huge.module.ctrole.service.CtRoleService; |
| | | import cn.huge.module.ctrole.service.CtRolefunService; |
| | | import cn.huge.module.ctuser.domain.bo.RoleTreeBO; |
| | | import cn.huge.module.ctuser.service.CtUserService; |
| | | import cn.huge.module.cust.dto.CtUserDTO; |
| | | import cn.huge.module.rsoper.domain.dto.RsRoleDTO; |
| | | import cn.huge.module.rsoper.service.RsRoleService; |
| | | import com.google.common.collect.Maps; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.data.domain.Page; |
| | | import org.springframework.data.domain.PageRequest; |
| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | |
| | | |
| | | @Autowired |
| | | private CtRoleService service; |
| | | |
| | | @Autowired |
| | | private CtUserService ctUserService; |
| | | |
| | | @Autowired |
| | | private CtRolefunService ctRolefunService; |
| | | private RsRoleService rsRoleService; |
| | | |
| | | /** |
| | | * 获取请求URL参数 |
| | |
| | | @GetMapping("/getById") |
| | | public Object getById(@RequestParam(value = "id") String id, @CurrentUser String userId) { |
| | | try { |
| | | CtRoleBO bo = service.webGetById(id, userId); |
| | | return ReturnSucUtils.getRepInfo(bo); |
| | | RsRoleDTO rsRoleDTO = rsRoleService.webGetRoleMenu(id, userId); |
| | | return ReturnSucUtils.getRepInfo(rsRoleDTO); |
| | | } catch (Exception e) { |
| | | return ReturnFailUtils.getRepInfo(); |
| | | } |