// // TCHomeGetDataModel.swift // ADHTuanCan // // Created by 敖德亨 on 2023/10/1. // import UIKit class TCHomeGetDataModel: MCBaseRequestModel { } //MARK: 获取供餐类型和供餐分类 获取早中晚ID class HomeGetRunAndSupply: MCBaseRequestModel { /// 套餐类型,1普团,2白团 var mealType : String? override func requestMethod() -> MCHttpMethod { .get } override func requestUrl() -> String { "/app/meal/getRunAndSupply" } } /// 供给类型列表(早中晚) class SupplyTypeListModel : MCBaseModel{ var runTypeList : [RunTypeModel]? var supplyTypeList : [SupplyTypeModel]? } /// 供给类型(早中晚) class SupplyTypeModel : MCBaseModel{ /// ID var id : String? /// 默认false var isDelete : Bool = false /// 中文名 var name : String? /// 英文名 var nameEn : String? } /// 供给类型(套餐部分) class RunTypeModel : MCBaseModel{ /// 创建时间 var createTime : String? /// 创建人id var createUserId : String? /// 创建人 var createUserName : String? /// 主键 var id : String? /// 0为未删除,1为已删除 var isDelete : String? /// 英文名 var nameEn : String? /// 中文名 var nameCn : String? /// name var name : String? /// 排序 var sort : String? /// 状态,1禁用,0启用 var status : String? /// 类型,1,普团 2,白团 var updateTime : String? /// 修改人 var updateUserId : String? /// 更新人 var updateUserName : String? } /// 获取不同类型(早中晚)的餐食 class GetMealWithSupplyTypeModel: MCBaseRequestModel { /// 当前页 var current : Int? /// 套餐类型,1普团 2白团 var isGeneral : String? /// 菜品分类 var runTypeId : String? /// 每页的数量 var size = "10" /// 供餐类型(早餐、中餐、晚餐) var supplyTypeId : String? ///对应时间段下的餐品 var shopcartTime : String? ///搜索内容 var mealName : String? override func requestMethod() -> MCHttpMethod { .post } override func requestUrl() -> String { "/app/meal/pageMeal" } } class HomeFoodDetailModel : MCBaseModel{ /// id var mealId : NSNumber? /// 图片地址 var link : String? /// 单品/套餐,1单品,2套餐 var mealType : String? /// 餐品名 var name : String? /// 餐品名Cn var nameCn : String? ///价格 var price : String? /// 限制下单时间类型,0一次性、1每日、2工作日、3周末 var restrictType : String? ///runTypeId var runTypeId : String? ///supplyTypeId var supplyTypeId : String? ///评分 var score : String? /// 1打折,2满减,3 赠送金额 var disType : String? } //MARK: 首页获取时间范围 class HomeGetTimeRangRequestModel: MCBaseRequestModel { /// 购物车类型,1为普团,2为白团 var shopType : String? override func requestMethod() -> MCHttpMethod { .get } override func requestUrl() -> String { "/app/meal/getShopcartTime" } } class HomeTimeRangModel : MCBaseModel{ /// endDate var endDate : String? /// shopAmount var shopAmount : Bool = false /// shopcartId var shopcartId : NSNumber? /// 时间范围id var id : NSNumber? /// startDate var startDate : String? var timeVoList : [HomeTimeItem]? } class HomeTimeItem : MCBaseModel{ /// shopcartTime var shopcartTime : String? /// shopcartTimeId var shopcartTimeId : NSNumber? /// startsortDate var sort : String? /// monthCn var month : String? /// dayCn var day : String? ///是否有菜品加入购物车 是否已加购,1为已加购,0为未加购 var added : String? /// 第几天 var whichDay : String? var isSelect = false } //MARK: 首页大家都爱点 class HomeGetEveryLoveRequestModel: MCBaseRequestModel { /// 购物车类型,1为普团,2为白团 var isGeneral : String? /// 当前页 var current : Int? /// 购物车时间 var shopcartTime : String? /// 每页的数量 var size = "10" /// 供餐类型(早餐、中餐、晚餐) var supplyTypeId : String? ///runTypeId var runTypeId : String? /// 搜索内容 var mealName : String? override func requestMethod() -> MCHttpMethod { .post } override func requestUrl() -> String { "/app/meal/pageLoveMeal" } } //MARK: 业务员信息初始化 class SalesmanCompleteModel: MCBaseRequestModel { /// 地址id,有则更新,无则新建 var addressId : NSNumber? /// 地址备注 var addressRemark : String? /// 街区号 var blockNum : String? /// 建筑物名称 var buildName : String? /// 结束时间 var endDate : String? /// 收货手机号 var phoneNum : String? /// 邮政编码 var postcode : String? /// 收货人 var receiving : String? /// 购物车类型,1普团,2白团 var shopType : String? /// 开始日期 var startDate : String? /// 街道名称 var street : String? /// 楼层和门牌号 var unitNum : String? override func requestMethod() -> MCHttpMethod { .post } override func requestUrl() -> String { "/app/meal/addShopcartTime" } } //MARK: 首页获取业务员信息弹窗内容 class HomeGetSalesmanInputModel: MCBaseRequestModel { /// 购物车ID var id : NSNumber? override func requestMethod() -> MCHttpMethod { .post } override func requestUrl() -> String { "/app/meal/getShopcartHomeTime" } } class SalesmanInputModel : MCBaseModel{ /// 地址id var addressId : NSNumber? /// 详细地址 var detailAddress : String? /// 街道名称 var street : String? // 开始日期 var startDate : String? // 结束时间 var endDate : String? // 购物车ID var shopcartId : NSNumber? // 结收货手机号 var phoneNum : String? // 邮政编码 var postcode : String? // 收货人 var receiving : String? // 购物车类型,1普团,2白团 var shopType : String? /// 街区号 var blockNum : String? /// 建筑物名称 var buildName : String? /// 楼层和门牌号 var unitNum : String? /// 地址备注 var addressRemark : String? } //MARK: 修改购物车时间范围 class HomeEditorTimeRangModel: MCBaseRequestModel { /// 时间范围id var id : NSNumber? // 购物车类型,1普团,2白团 var shopType : String? // 开始日期 var startDate : String? // 结束时间 var endDate : String? override func requestMethod() -> MCHttpMethod { .post } override func requestUrl() -> String { "/app/meal/updateShopcartTime" } }