| | |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import com.vincent.rsf.server.manager.utils.buildPageRowsUtils; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.util.*; |
| | | |
| | | @RestController |
| | |
| | | // @PreAuthorize("hasAuthority('system:role:list')") |
| | | @GetMapping("/rolePda/scope/list") |
| | | public R scopeList(@RequestParam Long roleId) { |
| | | return R.ok().add(pdaRoleMenuService.listStrictlyMenuByRoleId(roleId)); |
| | | return R.ok().add(buildPageRowsUtils.rowsMap(pdaRoleMenuService.listStrictlyMenuByRoleId(roleId))); |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('system:role:update')") |
| | |
| | | |
| | | |
| | | } |
| | | |