I11x5YunNanService.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using System;
  2. using System.Collections.Generic;
  3. using CB.Entity;
  4. using CB.Entity.Frequency;
  5. namespace CB.Interface.Infrastructure.Frequency
  6. {
  7. //GP_11x5_YunNan
  8. public interface I11x5YunNanService:IRepository<GP11x5Info_YunNan>
  9. {
  10. /// <summary>
  11. /// 最新开奖号码--限数据抓取使用
  12. /// </summary>
  13. /// <returns></returns>
  14. LotteryOpenCode GetLatestOpenCodeForCatch();
  15. /// <summary>
  16. /// 倒序取TOP多少条数据
  17. /// </summary>
  18. /// <param name="fields">彩种开奖数据额外查询条件</param>
  19. /// <returns></returns>
  20. IList<GP11x5Info_YunNan> GetTopListDesc(LotterySearchField fields);
  21. /// <summary>
  22. /// 获取小于等于term的最近两期开奖号数据
  23. /// </summary>
  24. /// <param name="term">期数</param>
  25. /// <param name="fields">彩种开奖数据额外查询条件</param>
  26. /// <returns></returns>
  27. IList<GP11x5Info_YunNan> ToListForTrend(long term, LotterySearchField fields);
  28. /// <summary>
  29. /// 获取term期以及后面数据
  30. /// </summary>
  31. /// <param name="term">期数</param>
  32. /// <param name="fields">彩种开奖数据额外查询条件</param>
  33. /// <returns></returns>
  34. IList<GP11x5Info_YunNan> GetListToEnd(long term, LotterySearchField fields);
  35. IList<GP11x5Info_YunNan> ToListByYear(DateTime SearchTime);
  36. /// <summary>
  37. /// 获取指定日期的开奖数据
  38. /// </summary>
  39. /// <param name="Date">指定日期(如2016-08-01)</param>
  40. /// <returns></returns>
  41. IList<GP11x5Info_YunNan> GetListByDate(DateTime Date);
  42. }
  43. }