MyRequestModel.swift 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354
  1. //
  2. // MyRequestModel.swift
  3. // ADHTuanCan
  4. //
  5. // Created by 敖德亨 on 2023/11/8.
  6. //
  7. import UIKit
  8. class MyRequestModel: MCBaseRequestModel {
  9. }
  10. //MARK: - 获取个人信息
  11. class GetPersonalDetailModel : MCBaseRequestModel {
  12. override func requestMethod() -> MCHttpMethod {
  13. .get
  14. }
  15. override func requestUrl() -> String {
  16. "/app/usermsg/getUserMsg"
  17. }
  18. }
  19. class PersonalDetailModel : MCBaseModel{
  20. /// 头像
  21. var avatar : String?
  22. /// 余额
  23. var balance : String?
  24. /// 佣金
  25. var brokerage : String?
  26. /// 优惠券数量
  27. var discounts : String?
  28. /// 积分
  29. var integral : String?
  30. /// 会员等级
  31. var memberLevel : String?
  32. /// 姓名
  33. var name : String?
  34. /// 昵称
  35. var nickname : String?
  36. /// 用户id
  37. var userId : String?
  38. /// 用户类型,1,普通用户,2销售
  39. var userType : String?
  40. /// 推广数
  41. var popularize : String?
  42. /// 客服电话
  43. var serviceTel : String?
  44. /// 生日
  45. var birthday : String?
  46. /// 地址
  47. var address : String?
  48. ///
  49. var phone : String?
  50. ///
  51. var email : String?
  52. }
  53. //MARK: - 获取佣金明细列表
  54. class GetBrokerageListModel : MCBaseRequestModel {
  55. override func requestMethod() -> MCHttpMethod {
  56. .get
  57. }
  58. override func requestUrl() -> String {
  59. "/app/usermsg/getBrokerageCon"
  60. }
  61. }
  62. class BrokerageListItemModel : MCBaseModel{
  63. ///
  64. var settleTime : String?
  65. /// 佣金类型
  66. var remarks : String?
  67. ///
  68. var type : String?
  69. /// 佣金
  70. var eventAmount : String?
  71. ///1为增加,2为减少
  72. var isAdd : String?
  73. }
  74. //MARK: - 获取推广列表
  75. class GetPromotionListModel : MCBaseRequestModel {
  76. override func requestMethod() -> MCHttpMethod {
  77. .get
  78. }
  79. override func requestUrl() -> String {
  80. "/app/usermsg/getExtendCon"
  81. }
  82. }
  83. /// 推广列表
  84. class PromotionListItemModel : MCBaseModel{
  85. /// 推广类型
  86. var event : String?
  87. /// 该类型总数量
  88. var eventCount : String?
  89. /// 推广类型
  90. var remarks : String?
  91. /// 最新结算时间
  92. var settleTime : String?
  93. }
  94. //MARK: - 修改头像
  95. class EditHeadImgModel : MCBaseRequestModel {
  96. /// 附件ID
  97. var attachId : String?
  98. /// 链接地址
  99. var link : String?
  100. /// 附件名称,改后的名称或原名称
  101. var name : String?
  102. /// 照片墙回显参数,只能叫url
  103. var url : String?
  104. override func requestMethod() -> MCHttpMethod {
  105. .post
  106. }
  107. override func requestUrl() -> String {
  108. "/meal/userMsg/profilePhoto"
  109. }
  110. }
  111. class PhotoUrlModel : MCBaseModel{
  112. /// 附件ID
  113. var attachId : String?
  114. /// 链接地址
  115. var link : String?
  116. /// 附件名称,改后的名称或原名称
  117. var name : String?
  118. /// 照片墙回显参数,只能叫url
  119. var url : String?
  120. }
  121. //MARK: - 获取积分
  122. class GetIntegralListModel : MCBaseRequestModel {
  123. var current : Int?
  124. var pageType : String?
  125. var size : String? = "10"
  126. override func requestMethod() -> MCHttpMethod {
  127. .post
  128. }
  129. override func requestUrl() -> String {
  130. "/app/usermsg/pageIntegral"
  131. }
  132. }
  133. class IntegralSectionModel : MCBaseModel{
  134. var monthStr : String?
  135. var integralDetails : [IntegralListItemModel]?
  136. }
  137. class IntegralListItemModel : MCBaseModel{
  138. ///
  139. var createTime : String?
  140. /// 事件变动类型, 1,购买商品, 2,分享商品, 3,邀请好友, 4,完善资料, 5,登录, 6,积分兑换, 7, 创建
  141. var event : String?
  142. /// 1为增加,0为减少
  143. var isAdd : String?
  144. /// 变动描述
  145. var remarks : String?
  146. /// 图片
  147. var link : String?
  148. /// 数值
  149. var income : String?
  150. }
  151. //MARK: - 获取优惠卷
  152. class GetDiscountsAppModel : MCBaseRequestModel {
  153. override func requestMethod() -> MCHttpMethod {
  154. .get
  155. }
  156. override func requestUrl() -> String {
  157. "/app/usermsg/getDiscountsApp"
  158. }
  159. }
  160. class DiscountsSectionModel : MCBaseModel{
  161. /// 描述
  162. var describe : String?
  163. var discountsMsgVos : [DiscountsMsgVosModel]?
  164. /// 数量
  165. var size : String?
  166. }
  167. class DiscountsMsgVosModel : MCBaseModel{
  168. /// 优惠类型,1活动,2优惠
  169. var discountsType : String?
  170. /// 优惠/活动id
  171. var id : NSNumber?
  172. /// 优惠名称
  173. var name : String?
  174. /// 截止日期
  175. var restrictEnd : String?
  176. /// 状态,1禁用,0启用
  177. var status : String?
  178. /// 分类类型,0可使用,1已过期/下架
  179. var type : String?
  180. /// 介绍
  181. var synopsis : String?
  182. }
  183. //MARK: - 规则说明
  184. class GetRuleDetailModel : MCBaseRequestModel {
  185. /// 法律条文相关接口,1用户协议,2隐私政策,3积分规则,4会员等级 5关于我们
  186. var type : String?
  187. override func requestMethod() -> MCHttpMethod {
  188. .get
  189. }
  190. override func requestUrl() -> String {
  191. "/app/usermsg/getNoticeByType"
  192. }
  193. }
  194. class RuleDetailModel : MCBaseModel{
  195. /// 描述
  196. var content : String?
  197. var title : String?
  198. // category 通知类型 integer(int32)
  199. // content 内容 string
  200. // createDept 创建部门 integer(int64)
  201. // createTime 创建时间 string(date-time)
  202. // createUser 创建人 integer(int64)
  203. // id 主键id integer(int64)
  204. // isDeleted 是否已删除 integer(int32)
  205. // releaseTime 发布日期 string(date-time)
  206. // status 业务状态 integer(int32)
  207. // tenantId 租户ID string
  208. // title 标题 string
  209. // updateTime 更新时间 string(date-time)
  210. // updateUser 更新人
  211. }
  212. //MARK: - 获取余额明细
  213. class GetBalanceDetailListModel : MCBaseRequestModel {
  214. var current : Int?
  215. var size : String? = "10"
  216. override func requestMethod() -> MCHttpMethod {
  217. .post
  218. }
  219. override func requestUrl() -> String {
  220. "/app/usermsg/pageUserBalanceLog"
  221. }
  222. }
  223. class BalanceListModel : MCBaseModel{
  224. /// 时间
  225. var createTime : String?
  226. /// 变动描述
  227. var event : String?
  228. /// 变动金额
  229. var eventAmount : String?
  230. /// 变动类型
  231. var eventType : String?
  232. /// 1为增加,2为减少
  233. var isAdd : String?
  234. ///
  235. var remarks : String?
  236. }
  237. //MARK: - 充值余额余额Model
  238. class RechargeAmountModel : MCBaseRequestModel {
  239. //充值金额
  240. var rechargeAmount : String?
  241. override func requestMethod() -> MCHttpMethod {
  242. .post
  243. }
  244. override func requestUrl() -> String {
  245. "/app/usermsg/userRecharge"
  246. }
  247. }