@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)); }
@Override public String generateId() { return roleCommandService.generateId(); }