/// <summary>
        /// 获取指定时间段中用户的砍价次数
        /// </summary>
        /// <param name="ownerId"></param>
        /// <param name="beginTime"></param>
        /// <param name="endTime"></param>
        /// <returns></returns>
        public async Task <OperationResult <int> > GetUserBargainCountAtTimerangeAsync(Guid ownerId, DateTime beginTime,
                                                                                       DateTime endTime)
        {
            if (ownerId == Guid.Empty)
            {
                return(OperationResult.FromError <int>(ErrorCode.ParameterError, "参数不正确"));
            }

            var res = await BargainManager.GetUserBargainCountAtTimerange(ownerId, beginTime, endTime);

            return(OperationResult.FromResult(res));
        }