优化系统信息的权限
This commit is contained in:
@@ -72,7 +72,7 @@ public class CompanyController extends BaseController {
|
||||
return success(companyService.getByIdRel(id));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('sys:company:profile')")
|
||||
@PreAuthorize("hasAuthority('sys:company:save')")
|
||||
@OperationLog
|
||||
@ApiOperation("添加企业信息")
|
||||
@PostMapping()
|
||||
@@ -88,7 +88,7 @@ public class CompanyController extends BaseController {
|
||||
return fail("添加失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('sys:company:profile')")
|
||||
@PreAuthorize("hasAuthority('sys:company:update')")
|
||||
@OperationLog
|
||||
@ApiOperation("修改企业信息")
|
||||
@PutMapping()
|
||||
@@ -111,7 +111,7 @@ public class CompanyController extends BaseController {
|
||||
return fail("删除失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('sys:company:profile')")
|
||||
@PreAuthorize("hasAuthority('sys:company:save')")
|
||||
@OperationLog
|
||||
@ApiOperation("批量添加企业信息")
|
||||
@PostMapping("/batch")
|
||||
@@ -167,7 +167,7 @@ public class CompanyController extends BaseController {
|
||||
return success(companyMapper.getCompanyAll(companyId));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('sys:company:profile')")
|
||||
@PreAuthorize("hasAuthority('sys:company:remove')")
|
||||
@OperationLog
|
||||
@ApiOperation("销毁租户")
|
||||
@DeleteMapping("/destruction/{id}")
|
||||
|
||||
Reference in New Issue
Block a user