示例#1
0
 @Override
 @OperationSuccessInfo(category = LogCategoryConsts.SYS, content = "修改角色")
 public void updateRole(RoleUpdateEvent roleUpdateEvent) throws SecurityException {
   RoleDto role = new RoleDto();
   role.setRoleId(roleUpdateEvent.getRoleId());
   role.setName(roleUpdateEvent.getName());
   role.setDescription(roleUpdateEvent.getDescription());
   validatorTools.validate(role);
   roleCommandService.update(convert(role));
 }
示例#2
0
 @Override
 public String generateId() {
   return roleCommandService.generateId();
 }