TodayController.cs 778 B

1234567891011121314151617181920212223242526272829303132
  1. using CP.Model;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Net;
  6. using System.Net.Http;
  7. using System.Web.Http;
  8. namespace CP.Api.Controllers
  9. {
  10. /// <summary>
  11. /// 获取所有彩种最新开奖号码
  12. /// </summary>
  13. public class TodayController : BaseApi
  14. {
  15. /// <summary>
  16. /// 获取所有彩种最新开奖号码
  17. /// </summary>
  18. /// <param name="type">0 全部数据 1 全国 2 地方 3 高频 </param>
  19. /// <returns></returns>
  20. [HttpGet]
  21. public ApiList<ApiModel> Get(int type = 0)
  22. {
  23. if(type == 1)
  24. {
  25. return ResponseList(Kjh.GetToday(type));
  26. }
  27. return ResponseList(Kjh.GetToday());
  28. }
  29. }
  30. }