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

NormalNewOrderDto.cs 4.0 KiB

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