public JsonResult Get(OrderSearchParam param, int pageIndex = 1, int pageSize = 20) { var list = service.Query(param, pageIndex, pageSize); return(Json(ResultUtil.PageList <OrderEntity>(list))); // var list = service.Fetch(param.ToSearchUtil()); // return Json(ResultUtil.Success<IEnumerable<OrderEntity>>(list)); }
/// <summary> /// 获取订单列表 /// </summary> /// <param name="param"></param> /// <returns></returns> public FcoinResponse <List <OrderInfo> > GetOrderList(OrderSearchParam param) { FcoinResponse <List <OrderInfo> > orderInfo = new FcoinResponse <List <OrderInfo> >(); try { string result = SendDataWithObject("https://api.fcoin.com/v2/orders", param, "GET"); orderInfo = JsonConvert.DeserializeObject <FcoinResponse <List <OrderInfo> > >(result); } catch (Exception ex) { Console.WriteLine("get order list error " + ex.ToString()); } return(orderInfo); }