|
@ -5,6 +5,7 @@ import com.canvas.web.annotation.rest.AnonymousPostMapping; |
|
|
import com.canvas.web.enums.ResponseEnum; |
|
|
import com.canvas.web.enums.ResponseEnum; |
|
|
import com.canvas.web.exception.BaseException; |
|
|
import com.canvas.web.exception.BaseException; |
|
|
import com.canvas.web.modules.system.domain.Role; |
|
|
import com.canvas.web.modules.system.domain.Role; |
|
|
|
|
|
import com.canvas.web.modules.system.service.OrgService; |
|
|
import com.canvas.web.modules.system.service.RoleService; |
|
|
import com.canvas.web.modules.system.service.RoleService; |
|
|
import com.canvas.web.modules.system.service.dto.RoleDto; |
|
|
import com.canvas.web.modules.system.service.dto.RoleDto; |
|
|
import com.canvas.web.modules.system.service.dto.RoleQueryCriteria; |
|
|
import com.canvas.web.modules.system.service.dto.RoleQueryCriteria; |
|
@ -18,10 +19,7 @@ import lombok.RequiredArgsConstructor; |
|
|
import org.springframework.data.domain.Pageable; |
|
|
import org.springframework.data.domain.Pageable; |
|
|
import org.springframework.util.ObjectUtils; |
|
|
import org.springframework.util.ObjectUtils; |
|
|
import org.springframework.validation.annotation.Validated; |
|
|
import org.springframework.validation.annotation.Validated; |
|
|
import org.springframework.web.bind.annotation.PutMapping; |
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
|
import java.util.Collections; |
|
|
import java.util.Collections; |
|
|
import java.util.List; |
|
|
import java.util.List; |
|
@ -34,6 +32,7 @@ import java.util.stream.Collectors; |
|
|
public class RoleController { |
|
|
public class RoleController { |
|
|
|
|
|
|
|
|
private final RoleService roleService; |
|
|
private final RoleService roleService; |
|
|
|
|
|
private final OrgService orgService; |
|
|
|
|
|
|
|
|
private static final String ENTITY_NAME="role"; |
|
|
private static final String ENTITY_NAME="role"; |
|
|
|
|
|
|
|
@ -77,6 +76,13 @@ public class RoleController { |
|
|
return Response.success("修改成功"); |
|
|
return Response.success("修改成功"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation("查询机构所有权限") |
|
|
|
|
|
@GetMapping("menus") |
|
|
|
|
|
public Response<Object> queryRoleMenus(){ |
|
|
|
|
|
Long id=SecurityUtils.getCurrentOrgId(); |
|
|
|
|
|
return Response.success(orgService.findById(id)); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//TODO:暂时不需要判断用户等级 |
|
|
//TODO:暂时不需要判断用户等级 |
|
|