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