| | |
| | | /** |
| | | * 查询platform列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('platform:security:list')") |
| | | @PreAuthorize("@ss.hasPermi('imageResource:security:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(ImageResourceSecurity imageResourceSecurity) |
| | | { |
| | | startPage(); |
| | | List<ImageResourceSecurity> list = imageResourceSecurityService.selectImageResourceSecurityList(imageResourceSecurity); |
| | | return getDataTable(list); |
| | | } |
| | |
| | | /** |
| | | * 获取platform详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('platform:security:query')") |
| | | @PreAuthorize("@ss.hasPermi('imageResource:security:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | |
| | | /** |
| | | * 导入模板 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('platform:security:list')") |
| | | @PreAuthorize("@ss.hasPermi('imageResource:security:template')") |
| | | @Log(title = "导入模板", businessType = BusinessType.IMPORT) |
| | | @PostMapping("/importTemplate") |
| | | public void importTemplate(HttpServletResponse response) { |
| | |
| | | /** |
| | | * 导入数据 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('platform:security:list')") |
| | | @PreAuthorize("@ss.hasPermi('imageResource:security:import')") |
| | | @Log(title = "导入", businessType = BusinessType.IMPORT) |
| | | @PostMapping("/importData") |
| | | public AjaxResult importData(MultipartFile file) { |