Exemple #1
0
        /// <summary>
        /// 查询用户的中奖纪录
        /// </summary>
        /// <param name="userId"></param>
        /// <param name="orderId"></param>
        /// <returns></returns>
        public async Task <OperationResult <List <GroupBuyingLotteryInfo> > > GetUserLotteryHistoryAsync(Guid userId, List <int> orderIds)
        {
            if (userId == Guid.Empty)
            {
                return(OperationResult.FromError <List <GroupBuyingLotteryInfo> >(ErrorCode.ParameterError, "参数不正确"));
            }
            var result = await GroupBuyingManager.GetUserLotteryHistory(userId, orderIds);

            return(OperationResult.FromResult(result));
        }