【输入端】
var param = new List<EsbParamInfo>();
param.Add(new EsbParamInfo() { Name = "branchID", Value = systemInfo.BranchID });
…
param.Add(new EsbParamInfo() { Name = "overScore", Value = overScore });
BoResult boResult = EsbHelper.Request(systemInfo.EsbService, "MallBO", "GetData", param);
if (boResult.ErrCode != 0)
return boResult;
var resultData = JObject.FromObject(boResult.Data); // 先转成JObject
typeList = JArray.FromObject(resultData["TypeList"]).ToObject<List<object>>(); //转List
itemList = JArray.FromObject(resultData["ItemList"]).ToObject<List<object>>(); //转List
【输出端】
public class MallBO
{
public BoResult GetData(Guid branchID, string searchText, int pageIndex, int pageSize
, int dataType = 1, int overScore = -1, string roomNo = null)
{
…
var ret = new
{
TypeList = typeList,
ItemList = itemList
};
return new BoResult(0, "", ret);
}
…
}
04-17
482
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
05-25