123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206 |
- //
- // 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"
- }
- }
|