// // OrderDataModel.swift // ADHTuanCan // // Created by 敖德亨 on 2023/11/4. // import UIKit class OrderDataModel: MCBaseRequestModel { } //MARK: 获取订单分页 class GetOrderListModel: MCBaseRequestModel { /// 套餐类型,1普团,2白团 var isGeneral : String? /// 订单状态 var status : String? /// var size = "10" /// var current : Int? override func requestMethod() -> MCHttpMethod { .post } override func requestUrl() -> String { "/app/order/pageOrder" } } class OrderListModel : MCBaseModel{ ///订单id var id : NSNumber? var orderMeals : [OrderListModelItem]? ///订单名称 var orderName : String? /// 订单价格 var orderPrice : String? /// 订单状态 var status : String? /// var link : String? } class OrderListModelItem : MCBaseModel{ /// 订单价格 var link : String? /// 订单状态 var name : String? } //MARK: 获取订单详情 class GetOrderDetailModel: MCBaseRequestModel { /// 订单id var id : NSNumber? override func requestMethod() -> MCHttpMethod { .post } override func requestUrl() -> String { "/app/order/getOrderMsg" } } /// 订单外层 class OrderOutDetailModel : MCBaseModel{ /// 订单id var orderId : NSNumber? /// 订单编号 var orderNo : String? /// 订单状态 var orderStatus : String? /// 共计多少套餐/单品 var mealNum : String? /// 下单时间 var createTime : String? /// 街道名称 var street : String? /// 详细地址 var detailAddress : String? /// 实付金额 var payAmount : String? /// 价格 var price : String? /// 收货手机号 var phoneNum : String? /// 邮政编码 var postcode : String? /// 收货人 var receiving : String? /// 结算方式,1全款,2定金 var settleType : String? /// data var timeVoList : [OrderDetailModel]? } /// 订单 class OrderDetailModel : MCBaseModel{ /// 天 var day : String? /// 月 var month : String? /// 订单时间(天) var orderDate : String? /// 订单id var orderId : NSNumber? /// 订单内菜品信息-一次返回所有菜品信息补充参数 var orderInsideMsgs : [OrderInsideMsgs]? /// 时间id var orderTimeId : NSNumber? /// 排序(第几天) var sort : String? /// 第几天 var whichDay : String? } class OrderInsideMsgs : MCBaseModel{ /// 订单内菜品信息-一次返回所有菜品信息补充参数 var orderMealMsgVos : [ShopMealMsgDetailModel]? /// 早中晚 var supplyType : String? } //MARK: 取消订单 class CancelOrderModel: MCBaseRequestModel { /// 订单id var id : NSNumber? override func requestMethod() -> MCHttpMethod { .post } override func requestUrl() -> String { "/app/order/cancelOrder" } } //MARK: 修改订单地址 class EditOrderAddressModel: MCBaseRequestModel { /// 订单id var orderId : NSNumber? /// 地址id var addressId : NSNumber? override func requestMethod() -> MCHttpMethod { .post } override func requestUrl() -> String { "/app/order/updateOderAddress" } } //MARK: 确认收货 class ConfirmReceiptModel: MCBaseRequestModel { /// 订单id var id : NSNumber? override func requestMethod() -> MCHttpMethod { .post } override func requestUrl() -> String { "/app/order/confirmReceipt" } }