// // AddresBaseModel.swift // ADHTuanCan // // Created by 敖德亨 on 2023/10/31. // import UIKit class AddressBaseModel: MCBaseRequestModel { } class GetAddressResultMeal: MCBaseRequestModel { override func requestMethod() -> MCHttpMethod { .get } override func requestUrl() -> String { "/app/usermsg/getAddress" } } class AddressModel : MCBaseModel{ /// 地址备注 var addressRemark : String? /// 街区号 var blockNum : String? /// 建筑物名称 var buildName : String? /// 地址id var id : NSNumber? /// 是否默认地址,1是,0不是 var isDefault : String? /// 订单id,有则更改此id下订单地址 var orderId : NSNumber? /// 邮政编码 var postcode : String? /// 收货人 var receiving : String? /// 购物车id,有则更改此id下购物车地址 var shopcartId : NSNumber? /// 街道名称 var street : String? /// 楼层和门牌号 var unitNum : String? /// var phoneNum : String? /// 显示用完整地址 var detailAddress : String? /// var isSelect = false } class AddAddressResultMeal: MCBaseRequestModel { /// 地址备注 var addressRemark : String? /// 街区号 var blockNum : String? /// 建筑物名称 var buildName : String? /// 地址id var id : NSNumber? /// 是否默认地址,1是,0不是 var isDefault : String? /// 订单id,有则更改此id下订单地址 var orderId : NSNumber? /// 邮政编码 var postcode : String? /// 收货人 var receiving : String? /// 购物车id,有则更改此id下购物车地址 var shopcartId : NSNumber? /// 街道名称 var street : String? /// 楼层和门牌号 var unitNum : String? /// var phoneNum : String? override func requestMethod() -> MCHttpMethod { .post } override func requestUrl() -> String { "/app/usermsg/addAddress" } } class SetDefaultsAddressModel: MCBaseRequestModel { /// 地址ID var id : NSNumber? override func requestMethod() -> MCHttpMethod { .post } override func requestUrl() -> String { "/app/usermsg/setDefaultAddress" } } class DeletAddressModel: MCBaseRequestModel { /// 地址ID var id : NSNumber? override func requestMethod() -> MCHttpMethod { .post } override func requestUrl() -> String { "/app/usermsg/delAddress" } }