public HttpResponseMessage GetShopProducts(string ids)
        {
            if (string.IsNullOrEmpty(ids?.Trim()))
            {
                return(ResponseHelper.Fail(EnumApiStatusCode.Error, message: "参数为空!"));
            }

            var data = GetProducts(ids);

            return(ResponseHelper.OK(EnumApiStatusCode.Success, data: data));
        }
        public HttpResponseMessage GetConfirmOrderProducts(string ids)
        {
            if (string.IsNullOrEmpty(ids?.Trim()))
            {
                return(ResponseHelper.Fail(EnumApiStatusCode.Error, message: "参数为空!"));
            }
            var rspItem = new ConfirmOrderProductDto();
            var proData = GetProducts(ids);

            rspItem.dataItems = proData;
            if (rspItem.dataItems != null && rspItem.dataItems.Count > 0)
            {
                rspItem.totalNum   = rspItem.dataItems.Sum(x => x.buyNum);
                rspItem.totalMoney = rspItem.dataItems.Sum(x => x.price * x.buyNum);
            }
            return(ResponseHelper.OK(EnumApiStatusCode.Success, data: rspItem));
        }