| | |
| | | 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 java.util.*; |
| | | |
| | |
| | | |
| | | @GetMapping("/roleMatnr/scope/list") |
| | | public R scopeList(@RequestParam Long roleId) { |
| | | return R.ok().add(matnrRoleMenuService.listStrictlyMenuByRoleId(roleId)); |
| | | return R.ok().add(buildPageRowsUtils.rowsMap(matnrRoleMenuService.listStrictlyMenuByRoleId(roleId))); |
| | | } |
| | | |
| | | @PostMapping("/menuMatnrGroup/tree") |
| | |
| | | Utils.treeRemove(treeData, String.valueOf(map.get("condition")), MatnrGroup::getName, MatnrGroup::getChildren); |
| | | Utils.treeRemove(treeData, String.valueOf(map.get("condition")), MatnrGroup::getName, MatnrGroup::getChildren); |
| | | } |
| | | return R.ok().add(treeData); |
| | | return R.ok().add(buildPageRowsUtils.rowsMap(treeData)); |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('system:role:update')") |
| | |
| | | |
| | | |
| | | } |
| | | |