AddresBaseModel.swift 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. //
  2. // AddresBaseModel.swift
  3. // ADHTuanCan
  4. //
  5. // Created by 敖德亨 on 2023/10/31.
  6. //
  7. import UIKit
  8. class AddressBaseModel: MCBaseRequestModel {
  9. }
  10. class GetAddressResultMeal: MCBaseRequestModel {
  11. override func requestMethod() -> MCHttpMethod {
  12. .get
  13. }
  14. override func requestUrl() -> String {
  15. "/app/usermsg/getAddress"
  16. }
  17. }
  18. class AddressModel : MCBaseModel{
  19. /// 地址备注
  20. var addressRemark : String?
  21. /// 街区号
  22. var blockNum : String?
  23. /// 建筑物名称
  24. var buildName : String?
  25. /// 地址id
  26. var id : NSNumber?
  27. /// 是否默认地址,1是,0不是
  28. var isDefault : String?
  29. /// 订单id,有则更改此id下订单地址
  30. var orderId : NSNumber?
  31. /// 邮政编码
  32. var postcode : String?
  33. /// 收货人
  34. var receiving : String?
  35. /// 购物车id,有则更改此id下购物车地址
  36. var shopcartId : NSNumber?
  37. /// 街道名称
  38. var street : String?
  39. /// 楼层和门牌号
  40. var unitNum : String?
  41. ///
  42. var phoneNum : String?
  43. /// 显示用完整地址
  44. var detailAddress : String?
  45. ///
  46. var isSelect = false
  47. }
  48. class AddAddressResultMeal: MCBaseRequestModel {
  49. /// 地址备注
  50. var addressRemark : String?
  51. /// 街区号
  52. var blockNum : String?
  53. /// 建筑物名称
  54. var buildName : String?
  55. /// 地址id
  56. var id : NSNumber?
  57. /// 是否默认地址,1是,0不是
  58. var isDefault : String?
  59. /// 订单id,有则更改此id下订单地址
  60. var orderId : NSNumber?
  61. /// 邮政编码
  62. var postcode : String?
  63. /// 收货人
  64. var receiving : String?
  65. /// 购物车id,有则更改此id下购物车地址
  66. var shopcartId : NSNumber?
  67. /// 街道名称
  68. var street : String?
  69. /// 楼层和门牌号
  70. var unitNum : String?
  71. ///
  72. var phoneNum : String?
  73. override func requestMethod() -> MCHttpMethod {
  74. .post
  75. }
  76. override func requestUrl() -> String {
  77. "/app/usermsg/addAddress"
  78. }
  79. }
  80. class SetDefaultsAddressModel: MCBaseRequestModel {
  81. /// 地址ID
  82. var id : NSNumber?
  83. override func requestMethod() -> MCHttpMethod {
  84. .post
  85. }
  86. override func requestUrl() -> String {
  87. "/app/usermsg/setDefaultAddress"
  88. }
  89. }
  90. class DeletAddressModel: MCBaseRequestModel {
  91. /// 地址ID
  92. var id : NSNumber?
  93. override func requestMethod() -> MCHttpMethod {
  94. .post
  95. }
  96. override func requestUrl() -> String {
  97. "/app/usermsg/delAddress"
  98. }
  99. }