| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * Created by vincent on 2/13/2024 |
| | |
| | | |
| | | @PreAuthorize("hasAuthority('sys:role:list')") |
| | | @PostMapping("/role/page") |
| | | public R page(@RequestBody BaseParam param) { |
| | | PageParam<Role, BaseParam> page = new PageParam<>(param); |
| | | return R.ok().add(roleService.page(page, page.getWrapper())); |
| | | public R page(@RequestBody Map<String, Object> map) { |
| | | BaseParam baseParam = buildParam(map, BaseParam.class); |
| | | PageParam<Role, BaseParam> pageParam = new PageParam<>(baseParam); |
| | | return R.ok().add(roleService.page(pageParam, pageParam.buildWrapper())); |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('sys:role:list')") |