Exemple #1
0
        /// <summary>
        /// 查询用户限购信息
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        public async Task <OperationResult <GroupBuyingBuyLimitModel> > GetUserBuyLimitInfoAsync(GroupBuyingBuyLimitRequest request)
        {
            if (request.UserId == Guid.Empty || string.IsNullOrWhiteSpace(request.ProductGroupId) || string.IsNullOrWhiteSpace(request.PID))
            {
                return(OperationResult.FromError <GroupBuyingBuyLimitModel>(ErrorCode.ParameterError, "参数不正确"));
            }
            var result = await GroupBuyingManager.GetUserBuyLimitInfo(request.PID, request.ProductGroupId, request.UserId);

            return(OperationResult.FromResult(result));
        }