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

144 lines
4.0 KiB

  1. using BPA.KitChen.GroupMealOrder.Core.Enum;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel.DataAnnotations;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace BPA.KitChen.GroupMealOrder.Application.Service.Order.Dtos
  9. {
  10. public class NormalNewOrderDto: NewOrderBasicDto
  11. {
  12. /// <summary>
  13. /// 实际金额
  14. /// </summary>
  15. public decimal RealMoney { get; set; } = 0;
  16. /// <summary>
  17. /// 优惠券金额
  18. /// </summary>
  19. public decimal CouponPrice { get; set; } = 0;
  20. /// <summary>
  21. /// 用户领取优惠券Id
  22. /// </summary>
  23. public string CouponCustomerId { get; set; } = string.Empty;
  24. /// <summary>
  25. /// 活动折扣金额
  26. /// </summary>
  27. public decimal DisCountPrice { get; set; } = 0;
  28. /// <summary>
  29. /// 会员优惠金额
  30. /// </summary>
  31. public decimal VipCountPrice { get; set; } = 0;
  32. /// <summary>
  33. /// 支付渠道<see cref="PayModelEnum"/>
  34. /// </summary>
  35. public PayModelEnum PayMode { get; set; } = PayModelEnum.WeiXin;
  36. /// <summary>
  37. /// 订单类型 <see cref="OrderTypeEnum"/>
  38. /// </summary>
  39. public OrderTypeEnum SubOrderType { get; set; } = OrderTypeEnum.Normal;
  40. /// <summary>
  41. /// 通知地址
  42. /// </summary>
  43. public string NotifyUrl { get; set; }
  44. /// <summary>
  45. /// 桌号
  46. /// </summary>
  47. public int DeskCode { get; set; }
  48. /// <summary>
  49. /// 就餐方式
  50. /// <see cref="EatTypeEnum"/>
  51. /// </summary>
  52. public EatTypeEnum EatType { get; set; }
  53. /// <summary>
  54. /// 小票备注
  55. /// </summary>
  56. public string PrintRemark { get; set; }
  57. /// <summary>
  58. /// 店铺Id
  59. /// </summary>
  60. public string StoreId { get; set; }
  61. /// <summary>
  62. /// 冒菜用户选购信息
  63. /// </summary>
  64. public List<NewOrderMCDto> MCInfo { get; set; }
  65. }
  66. public class NewOrderBasicDto
  67. {
  68. /// <summary>
  69. /// 订单号
  70. /// </summary>
  71. public string OrderNumber { get; set; }
  72. /// <summary>
  73. /// 客户Id
  74. /// </summary>
  75. public string UserId { get; set; }
  76. /// <summary>
  77. /// 子订单信息
  78. /// </summary>
  79. public List<NewOrderSubOrderInfoDto> SubOrderInfo { get; set; }
  80. /// <summary>
  81. /// 加购商品信息
  82. /// </summary>
  83. public List<NewOrderSubOrderInfoDto> AddFoodInfo { get; set; }
  84. /// <summary>
  85. /// 特价子商品
  86. /// </summary>
  87. public List<NewOrderBasicPriceDto> DisCountSubOrder { get; set; }
  88. }
  89. public class NewOrderBasicPriceDto
  90. {
  91. /// <summary>
  92. /// 价格
  93. /// </summary>
  94. public decimal Price { get; set; }
  95. /// <summary>
  96. /// 商品Id
  97. /// </summary>
  98. public string GoodId { get; set; }
  99. }
  100. public class NewOrderSubOrderInfoDto
  101. {
  102. /// <summary>
  103. /// 商品Id
  104. /// </summary>
  105. public string FoodMenuId { get; set; }
  106. /// <summary>
  107. /// 做法名称
  108. /// </summary>
  109. public string MakeName { get; set; }
  110. /// <summary>
  111. /// 做法ID
  112. /// </summary>
  113. public string MakeId { get; set; }
  114. /// <summary>
  115. /// 是否设备
  116. /// </summary>
  117. public int IsDevice { get; set; }
  118. /// <summary>
  119. /// 是否赠送
  120. /// </summary>
  121. public bool IsGift { get; set; } = false;
  122. }
  123. public class NewOrderMCDto
  124. {
  125. /// <summary>
  126. /// 子订单菜品Id
  127. /// </summary>
  128. public string SubGoodId { get; set; }
  129. /// <summary>
  130. /// 冒菜配料Id
  131. /// </summary>
  132. public string McId { get; set; }
  133. /// <summary>
  134. /// 数量
  135. /// </summary>
  136. public int Count { get; set; }
  137. }
  138. }