Exemple #1
0
        /// <summary>
        /// 查询用户中奖结果(单个订单)
        /// </summary>
        /// <param name="userId"></param>
        /// <param name="productGroupId"></param>
        /// <param name="orderId"></param>
        /// <returns></returns>
        public async Task <OperationResult <GroupBuyingLotteryInfo> > CheckUserLotteryResultAsync(Guid userId, string productGroupId, int orderId)
        {
            if (userId == Guid.Empty || string.IsNullOrWhiteSpace(productGroupId) || orderId < 1)
            {
                return(OperationResult.FromError <GroupBuyingLotteryInfo>(ErrorCode.ParameterError, "参数不正确"));
            }
            var result = await GroupBuyingManager.CheckUserLotteryResult(userId, productGroupId, orderId);

            return(OperationResult.FromResult(result));
        }