using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AllBase.Model.Config { public class WxShopMainStatisticsInfo { public int? code { get; set; } // 0, /// /// 待发货 /// public MainStatisticsInfoRet orderNumRet { get; set; } /// /// 物流异常 /// public MainStatisticsInfoRet waybillErrorRet { get; set; } /// /// 售后 /// public MainStatisticsInfoRet aftersaleAllRet { get; set; } /// /// 服务保障 /// public MainStatisticsInfoRet guaranteeRet { get; set; } /// /// 店铺预警 /// public MainStatisticsInfoRet prewarnRet { get; set; } /// /// 店铺违规 /// public MainStatisticsInfoRet punishRet { get; set; } /// /// 工单 /// public MainStatisticsInfoRet mchUndealRet { get; set; } public DateTime LastRefreshDate { get; set; } } public class MainStatisticsInfoRet { //orderNumRet-pendingShipNum待发货 waybillErrorRet物流异常 aftersaleAllRet售后 guaranteeRet服务保障 prewarnRet店铺预警 punishRet店铺违规 mchUndealRet工单 public int? code { get; set; } // 0 public int? totalNum { get; set; } // 0 public int? pendingNum { get; set; } // 1 public int? pendingShipNum { get; set; } // 1 public int? waitStatusCount { get; set; } // 0 public int? num { get { if (totalNum != null) return totalNum; if (pendingNum != null) return pendingNum; if (pendingShipNum != null) return pendingShipNum; if (waitStatusCount != null) return waitStatusCount; return 0; } } } public class WxShopSaleStatisticsGroup { public string ShopId { get; set; } public string ShopAccount { get; set; } public string Notes { get; set; } public string GroupName { get; set; } public int? ProdCount { get; set; } public decimal? curScoreValue {get;set;} public DateTime lastRefreshDate { get; set; } = DateTime.MinValue; /// /// 主页店铺信息 /// public WxShopMainStatisticsInfo WxShopMainInfo { get; set; } = new WxShopMainStatisticsInfo(); /// /// 主页今日店铺经营信息 /// public WxShopSaleStatisticsInfo WxShopSaleInfoToday { get; set; } = new WxShopSaleStatisticsInfo(); /// /// 主页近7日店铺经营信息 /// public WxShopSaleStatisticsInfo WxShopSaleInfo7Day { get; set; } = new WxShopSaleStatisticsInfo(); /// /// 主页近30日店铺经营信息 /// public WxShopSaleStatisticsInfo WxShopSaleInfo30Day { get; set; } = new WxShopSaleStatisticsInfo(); public WxAmount WxShopAmount { get; set; } = new WxAmount(); public string err_msg; } public class WxShopSaleStatisticsInfo { /// /// 成交金额 /// public string pay_gmv { get; set; } // "118574", public string pay_gmv_tb { get; set; } // "", public string pay_gmv_ind { get; set; } // "0.461936", /// /// 成交人数 /// public string pay_uv { get; set; } // "47", public string pay_uv_tb { get; set; } // "", public string pay_uv_ind { get; set; } // "0.583592", /// /// 成交订单数 /// public string pay_order_cnt { get; set; } // "50", public string pay_order_cnt_tb { get; set; } // "", public string pay_order_cnt_ind { get; set; } // "0.57901", /// /// 成交退款金额 /// public string pay_refund_gmv { get; set; } // "6272", public string pay_refund_gmv_tb { get; set; } // "", public string pay_refund_gmv_ind { get; set; } // "0.411973", /// /// 商品点击人数 /// public string product_click_uv { get; set; } // "368", public string product_click_uv_tb { get; set; } // "", public string product_click_uv_ind { get; set; } // "0.56263" public DateTime LastRefreshDate { get; set; } } public class WxAmount { /// /// 总货款 /// public int? totalAmount { get; set; } /// /// 可提现 /// public int? availableAmount { get; set; } /// /// 待结算 /// public int? pendingAmount { get; set; } public int? tempFrozenAmount { get; set; } /// /// 保证金,在另一个接口获取 /// public int? DepositBalance { get; set; } public DateTime LastRefreshDate { get; set; } } }