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