示例#1
0
        public List <MerchantProfile> GetListByIds(List <Guid> ids)
        {
            var url = $"{baseAddress}/GetListByIds";
            var obj = new GuidsIM
            {
                Guids = ids
            };
            var result = RestUtilities.PostJson(url, headers, JsonConvert.SerializeObject(obj));
            var data   = JsonConvert.DeserializeObject <ServiceResult <List <MerchantProfile> > >(result);

            if (data.Code == 0)
            {
                return(data.Data);
            }
            throw new CommonException(10000, data.Message);
        }
示例#2
0
        public ServiceResult <List <MerchantProfile> > GetListByIds(GuidsIM form)
        {
            MerchantProfileDAC dac = new MerchantProfileDAC();

            return(ResultHelper.OKResult(dac.GetListByIds(form.Guids)));
        }