protected virtual async Task <BookEditDto> Create(BookEditDto input, List <long> tagIds) //添加参数, List<long> tagIds
        {
            //TODO:新增前的逻辑判断,是否允许新增

            var entity   = input.MapTo <Book>();
            var entityId = await _entityRepository.InsertAndGetIdAsync(entity);

            // 创建关联关系
            if (tagIds.Count > 0)
            {
                await _entityManager.CreateBookAndBookTagRelationship(entityId, tagIds);
            }

            return(entity.MapTo <BookEditDto>());
        }