权限注解分配
This commit is contained in:
parent
38c9297b2d
commit
7abfe51ec8
|
@ -39,6 +39,7 @@ public class SysLogLoginController {
|
||||||
|
|
||||||
@GetMapping("export")
|
@GetMapping("export")
|
||||||
@Operation(summary = "导出excel")
|
@Operation(summary = "导出excel")
|
||||||
|
@PreAuthorize("hasAuthority('sys:log:login:export')")
|
||||||
public Result<Map<String, String>> export() {
|
public Result<Map<String, String>> export() {
|
||||||
Map<String, String> map = sysLogLoginService.export();
|
Map<String, String> map = sysLogLoginService.export();
|
||||||
|
|
||||||
|
|
|
@ -142,6 +142,7 @@ public class SysUserController {
|
||||||
|
|
||||||
@PostMapping("import")
|
@PostMapping("import")
|
||||||
@Operation(summary = "导入用户")
|
@Operation(summary = "导入用户")
|
||||||
|
@PreAuthorize("hasAuthority('sys:user:import')")
|
||||||
public Result<String> importExcel(@RequestParam("file") MultipartFile file) {
|
public Result<String> importExcel(@RequestParam("file") MultipartFile file) {
|
||||||
if (file.isEmpty()) {
|
if (file.isEmpty()) {
|
||||||
return Result.error("请选择需要上传的文件");
|
return Result.error("请选择需要上传的文件");
|
||||||
|
@ -153,6 +154,7 @@ public class SysUserController {
|
||||||
|
|
||||||
@GetMapping("export")
|
@GetMapping("export")
|
||||||
@Operation(summary = "导出用户")
|
@Operation(summary = "导出用户")
|
||||||
|
@PreAuthorize("hasAuthority('sys:user:exoprt')")
|
||||||
public Result<Map<String, String>> export() {
|
public Result<Map<String, String>> export() {
|
||||||
Map<String, String> map = sysUserService.export();
|
Map<String, String> map = sysUserService.export();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user