团餐订单
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.
 
 

115 lines
2.8 KiB

  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace BPA.KitChen.GroupMealOrder.Application.BaseDto
  8. {
  9. /// <summary>
  10. /// 通用输入扩展参数(带权限)
  11. /// </summary>
  12. public class XnInputBase : PageInputBase
  13. {
  14. /// <summary>
  15. /// 授权菜单
  16. /// </summary>
  17. public List<string> GrantMenuIdList { get; set; } = new List<string>();
  18. /// <summary>
  19. /// 授权角色
  20. /// </summary>
  21. public List<string> GrantRoleIdList { get; set; } = new List<string>();
  22. /// <summary>
  23. /// 授权数据
  24. /// </summary>
  25. public List<string> GrantOrgIdList { get; set; } = new List<string>();
  26. /// <summary>
  27. /// 搜索值
  28. /// </summary>
  29. public virtual string SearchValue { get; set; }
  30. /// <summary>
  31. /// 搜索开始时间
  32. /// </summary>
  33. public virtual string SearchBeginTime { get; set; }
  34. /// <summary>
  35. /// 搜索结束时间
  36. /// </summary>
  37. public virtual string SearchEndTime { get; set; }
  38. /// <summary>
  39. /// 排序字段
  40. /// </summary>
  41. public virtual string SortField { get; set; }
  42. /// <summary>
  43. /// 排序方法,默认升序,否则降序(配合antd前端,约定参数为 Ascend,Dscend)
  44. /// </summary>
  45. public virtual string SortOrder { get; set; }
  46. /// <summary>
  47. /// 降序排序(不要问我为什么是descend不是desc,前端约定参数就是这样)
  48. /// </summary>
  49. public virtual string DescStr { get; set; } = "descend";
  50. /// <summary>
  51. /// 复杂查询条件
  52. /// </summary>
  53. // public virtual List<Condition> SearchParameters { get; set; } = new();
  54. }
  55. /// <summary>
  56. /// 通用分页输入参数
  57. /// </summary>
  58. public class PageInputBase
  59. {
  60. /// <summary>
  61. /// 当前页码
  62. /// </summary>
  63. private int current;
  64. public virtual int Current
  65. {
  66. get
  67. {
  68. return current;
  69. }
  70. set
  71. {
  72. current = value;
  73. if (current <= 0)
  74. {
  75. current = 1;
  76. }
  77. }
  78. }
  79. //public int? Status { get; set; }
  80. /// <summary>
  81. /// 页码容量
  82. /// </summary>
  83. private int pagesize;
  84. public virtual int PageSize
  85. {
  86. get
  87. {
  88. return pagesize;
  89. }
  90. set
  91. {
  92. pagesize = value;
  93. if (pagesize <= 0)
  94. {
  95. pagesize = 20;
  96. }
  97. }
  98. }
  99. }
  100. }