终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

TasksResult.cs 816 B

2 jaren geleden
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using System.Linq;
  2. namespace Lebai.SDK.Dtos
  3. {
  4. public class OriginTasksResult
  5. {
  6. public int pi { get; set; }
  7. public int ps { get; set; }
  8. public int total { get; set; }
  9. public OriginTaskInfo[] records { get; set; }
  10. public TasksResult ToResult()
  11. {
  12. return new TasksResult
  13. {
  14. Items = records.Select(n=>n.ToTaskInfo()).ToArray(),
  15. PageIndex = pi,
  16. PageSize = ps,
  17. TotalCount = total
  18. };
  19. }
  20. }
  21. public class TasksResult
  22. {
  23. /// <summary>
  24. /// 页索引
  25. /// </summary>
  26. public int PageIndex { get; set; }
  27. /// <summary>
  28. /// 页大小
  29. /// </summary>
  30. public int PageSize { get; set; }
  31. /// <summary>
  32. /// 总数量
  33. /// </summary>
  34. public int TotalCount { get; set; }
  35. /// <summary>
  36. /// 任务列表
  37. /// </summary>
  38. public TaskInfo[] Items { get; set; }
  39. }
  40. }