| | |
| | | */ |
| | | @Validated |
| | | @RequiredArgsConstructor |
| | | @Api(value = "", tags = "管理") |
| | | @Api(value = "显隐列管理", tags = "管理") |
| | | @RestController |
| | | @RequestMapping("/hidden-admin") |
| | | public class HiddenAdminController { |
| | |
| | | @ApiOperation(value = "批量修改", notes = "批量修改") |
| | | @PreAuthorize("@ss.hasPermi('hiddenAdmin:edit')") |
| | | public Result updateList(@RequestBody List<HiddenAdminForm> forms){ |
| | | System.out.println(forms + "=============="); |
| | | return hiddenAdminService.updateList(forms); |
| | | } |
| | | |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @ApiOperation(value = "分页", notes = "分页") |
| | | @PreAuthorize("@ss.hasPermi('hiddenAdmin:page')") |
| | | // @PreAuthorize("@ss.hasPermi('hiddenAdmin:page')") |
| | | public Result page(HiddenAdminQuery query) { |
| | | return hiddenAdminService.page(query); |
| | | } |
| | |
| | | } |
| | | |
| | | @GetMapping("/list") |
| | | @PreAuthorize("@ss.hasPermi('hiddenAdmin:list')") |
| | | @ApiOperation(value = "列表", notes = "列表") |
| | | public Result list() { |
| | | return hiddenAdminService.all(); |