// // MyRequestModel.swift // ADHTuanCan // // Created by 敖德亨 on 2023/11/8. // import UIKit class MyRequestModel: MCBaseRequestModel { } //MARK: - 获取个人信息 class GetPersonalDetailModel : MCBaseRequestModel { override func requestMethod() -> MCHttpMethod { .get } override func requestUrl() -> String { "/app/usermsg/getUserMsg" } } class PersonalDetailModel : MCBaseModel{ /// 头像 var avatar : String? /// 余额 var balance : String? /// 佣金 var brokerage : String? /// 优惠券数量 var discounts : String? /// 积分 var integral : String? /// 会员等级 var memberLevel : String? /// 姓名 var name : String? /// 昵称 var nickname : String? /// 用户id var userId : String? /// 用户类型,1,普通用户,2销售 var userType : String? /// 推广数 var popularize : String? /// 客服电话 var serviceTel : String? /// 生日 var birthday : String? /// 地址 var address : String? /// var phone : String? /// var email : String? } //MARK: - 获取佣金明细列表 class GetBrokerageListModel : MCBaseRequestModel { override func requestMethod() -> MCHttpMethod { .get } override func requestUrl() -> String { "/app/usermsg/getBrokerageCon" } } class BrokerageListItemModel : MCBaseModel{ /// var settleTime : String? /// 佣金类型 var remarks : String? /// var type : String? /// 佣金 var eventAmount : String? ///1为增加,2为减少 var isAdd : String? } //MARK: - 获取推广列表 class GetPromotionListModel : MCBaseRequestModel { override func requestMethod() -> MCHttpMethod { .get } override func requestUrl() -> String { "/app/usermsg/getExtendCon" } } /// 推广列表 class PromotionListItemModel : MCBaseModel{ /// 推广类型 var event : String? /// 该类型总数量 var eventCount : String? /// 推广类型 var remarks : String? /// 最新结算时间 var settleTime : String? } //MARK: - 修改头像 class EditHeadImgModel : MCBaseRequestModel { /// 附件ID var attachId : String? /// 链接地址 var link : String? /// 附件名称,改后的名称或原名称 var name : String? /// 照片墙回显参数,只能叫url var url : String? override func requestMethod() -> MCHttpMethod { .post } override func requestUrl() -> String { "/meal/userMsg/profilePhoto" } } class PhotoUrlModel : MCBaseModel{ /// 附件ID var attachId : String? /// 链接地址 var link : String? /// 附件名称,改后的名称或原名称 var name : String? /// 照片墙回显参数,只能叫url var url : String? } //MARK: - 获取积分 class GetIntegralListModel : MCBaseRequestModel { var current : Int? var pageType : String? var size : String? = "10" override func requestMethod() -> MCHttpMethod { .post } override func requestUrl() -> String { "/app/usermsg/pageIntegral" } } class IntegralSectionModel : MCBaseModel{ var monthStr : String? var integralDetails : [IntegralListItemModel]? } class IntegralListItemModel : MCBaseModel{ /// var createTime : String? /// 事件变动类型, 1,购买商品, 2,分享商品, 3,邀请好友, 4,完善资料, 5,登录, 6,积分兑换, 7, 创建 var event : String? /// 1为增加,0为减少 var isAdd : String? /// 变动描述 var remarks : String? /// 图片 var link : String? /// 数值 var income : String? } //MARK: - 获取优惠卷 class GetDiscountsAppModel : MCBaseRequestModel { override func requestMethod() -> MCHttpMethod { .get } override func requestUrl() -> String { "/app/usermsg/getDiscountsApp" } } class DiscountsSectionModel : MCBaseModel{ /// 描述 var describe : String? var discountsMsgVos : [DiscountsMsgVosModel]? /// 数量 var size : String? } class DiscountsMsgVosModel : MCBaseModel{ /// 优惠类型,1活动,2优惠 var discountsType : String? /// 优惠/活动id var id : NSNumber? /// 优惠名称 var name : String? /// 截止日期 var restrictEnd : String? /// 状态,1禁用,0启用 var status : String? /// 分类类型,0可使用,1已过期/下架 var type : String? /// 介绍 var synopsis : String? } //MARK: - 规则说明 class GetRuleDetailModel : MCBaseRequestModel { /// 法律条文相关接口,1用户协议,2隐私政策,3积分规则,4会员等级 5关于我们 var type : String? override func requestMethod() -> MCHttpMethod { .get } override func requestUrl() -> String { "/app/usermsg/getNoticeByType" } } class RuleDetailModel : MCBaseModel{ /// 描述 var content : String? var title : String? // category 通知类型 integer(int32) // content 内容 string // createDept 创建部门 integer(int64) // createTime 创建时间 string(date-time) // createUser 创建人 integer(int64) // id 主键id integer(int64) // isDeleted 是否已删除 integer(int32) // releaseTime 发布日期 string(date-time) // status 业务状态 integer(int32) // tenantId 租户ID string // title 标题 string // updateTime 更新时间 string(date-time) // updateUser 更新人 } //MARK: - 获取余额明细 class GetBalanceDetailListModel : MCBaseRequestModel { var current : Int? var size : String? = "10" override func requestMethod() -> MCHttpMethod { .post } override func requestUrl() -> String { "/app/usermsg/pageUserBalanceLog" } } class BalanceListModel : MCBaseModel{ /// 时间 var createTime : String? /// 变动描述 var event : String? /// 变动金额 var eventAmount : String? /// 变动类型 var eventType : String? /// 1为增加,2为减少 var isAdd : String? /// var remarks : String? } //MARK: - 充值余额余额Model class RechargeAmountModel : MCBaseRequestModel { //充值金额 var rechargeAmount : String? override func requestMethod() -> MCHttpMethod { .post } override func requestUrl() -> String { "/app/usermsg/userRecharge" } }