OrderDataModel.swift 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. //
  2. // OrderDataModel.swift
  3. // ADHTuanCan
  4. //
  5. // Created by 敖德亨 on 2023/11/4.
  6. //
  7. import UIKit
  8. class OrderDataModel: MCBaseRequestModel {
  9. }
  10. //MARK: 获取订单分页
  11. class GetOrderListModel: MCBaseRequestModel {
  12. /// 套餐类型,1普团,2白团
  13. var isGeneral : String?
  14. /// 订单状态
  15. var status : String?
  16. ///
  17. var size = "10"
  18. ///
  19. var current : Int?
  20. override func requestMethod() -> MCHttpMethod {
  21. .post
  22. }
  23. override func requestUrl() -> String {
  24. "/app/order/pageOrder"
  25. }
  26. }
  27. class OrderListModel : MCBaseModel{
  28. ///订单id
  29. var id : NSNumber?
  30. var orderMeals : [OrderListModelItem]?
  31. ///订单名称
  32. var orderName : String?
  33. /// 订单价格
  34. var orderPrice : String?
  35. /// 订单状态
  36. var status : String?
  37. ///
  38. var link : String?
  39. }
  40. class OrderListModelItem : MCBaseModel{
  41. /// 订单价格
  42. var link : String?
  43. /// 订单状态
  44. var name : String?
  45. }
  46. //MARK: 获取订单详情
  47. class GetOrderDetailModel: MCBaseRequestModel {
  48. /// 订单id
  49. var id : NSNumber?
  50. override func requestMethod() -> MCHttpMethod {
  51. .post
  52. }
  53. override func requestUrl() -> String {
  54. "/app/order/getOrderMsg"
  55. }
  56. }
  57. /// 订单外层
  58. class OrderOutDetailModel : MCBaseModel{
  59. /// 订单id
  60. var orderId : NSNumber?
  61. /// 订单编号
  62. var orderNo : String?
  63. /// 订单状态
  64. var orderStatus : String?
  65. /// 共计多少套餐/单品
  66. var mealNum : String?
  67. /// 下单时间
  68. var createTime : String?
  69. /// 街道名称
  70. var street : String?
  71. /// 详细地址
  72. var detailAddress : String?
  73. /// 实付金额
  74. var payAmount : String?
  75. /// 价格
  76. var price : String?
  77. /// 收货手机号
  78. var phoneNum : String?
  79. /// 邮政编码
  80. var postcode : String?
  81. /// 收货人
  82. var receiving : String?
  83. /// 结算方式,1全款,2定金
  84. var settleType : String?
  85. /// data
  86. var timeVoList : [OrderDetailModel]?
  87. }
  88. /// 订单
  89. class OrderDetailModel : MCBaseModel{
  90. /// 天
  91. var day : String?
  92. /// 月
  93. var month : String?
  94. /// 订单时间(天)
  95. var orderDate : String?
  96. /// 订单id
  97. var orderId : NSNumber?
  98. /// 订单内菜品信息-一次返回所有菜品信息补充参数
  99. var orderInsideMsgs : [OrderInsideMsgs]?
  100. /// 时间id
  101. var orderTimeId : NSNumber?
  102. /// 排序(第几天)
  103. var sort : String?
  104. /// 第几天
  105. var whichDay : String?
  106. }
  107. class OrderInsideMsgs : MCBaseModel{
  108. /// 订单内菜品信息-一次返回所有菜品信息补充参数
  109. var orderMealMsgVos : [ShopMealMsgDetailModel]?
  110. /// 早中晚
  111. var supplyType : String?
  112. }
  113. //MARK: 取消订单
  114. class CancelOrderModel: MCBaseRequestModel {
  115. /// 订单id
  116. var id : NSNumber?
  117. override func requestMethod() -> MCHttpMethod {
  118. .post
  119. }
  120. override func requestUrl() -> String {
  121. "/app/order/cancelOrder"
  122. }
  123. }
  124. //MARK: 修改订单地址
  125. class EditOrderAddressModel: MCBaseRequestModel {
  126. /// 订单id
  127. var orderId : NSNumber?
  128. /// 地址id
  129. var addressId : NSNumber?
  130. override func requestMethod() -> MCHttpMethod {
  131. .post
  132. }
  133. override func requestUrl() -> String {
  134. "/app/order/updateOderAddress"
  135. }
  136. }
  137. //MARK: 确认收货
  138. class ConfirmReceiptModel: MCBaseRequestModel {
  139. /// 订单id
  140. var id : NSNumber?
  141. override func requestMethod() -> MCHttpMethod {
  142. .post
  143. }
  144. override func requestUrl() -> String {
  145. "/app/order/confirmReceipt"
  146. }
  147. }