// // SetMealModel.swift // ADHTuanCan // // Created by 敖德亨 on 2023/10/26. // import UIKit class SetMealModel: MCBaseRequestModel { } //MARK: 获取套餐餐品详情 class GetSetMealDetailRequestModel: MCBaseRequestModel { /// 菜品/套餐id var mealId : NSNumber? /// 菜品类型,1为单品,2为套餐 var mealType : String? /// 菜品分类 var runTypeId : String? /// 供餐类型(早餐、中餐、晚餐) var supplyTypeId : String? override func requestMethod() -> MCHttpMethod { .post } override func requestUrl() -> String { "/app/meal/getMealMsg" } } /// 套餐详情 class SetMealDetailModel : MCBaseModel{ /// 活动id var activityId : String? /// 套餐类型,1普团 2白团 var isGeneral : String? /// 折扣id var discountId : String? /// 是否固定套餐,1是,0不是 var isFixed : String? /// 封面图片路径 var link : String? /// 套餐内菜品信息 var mealFoodMsgs : [MealFoodMsgModel]? /// 菜品/套餐id var mealId : NSNumber? /// 非固定套餐规则 var mealPrices : [MealPricesModel]? /// 菜品类型,1为单品,2为套餐 var mealType : String? /// 菜品名称 var nameCn : String? /// 菜品名称 var nameEn : String? /// 菜品名称 var name : String? /// 下单须知-中文 var noticeCn : String? /// 下单须知-英文 var noticeEn : String? /// 价格 var price : String? /// 菜品分类 var runTypeId : String? /// 供餐类型(早餐、中餐、晚餐) var supplyTypeId : String? /// 卖点 var sellingPoints : String? /// 卖点 var sellingPointsEn : String? /// 卖点 var sellingPointsCn : String? /// 评分 var score : String? /// 特色 var specialtyCn : String? /// 特色 var specialtyEn : String? /// 特色 var specialty : String? /// 介绍-中文-富文本 var introduce : String? /// 介绍-中文-富文本 var introduceCn : String? /// 介绍-中文-富文本 var introduceEn : String? /// 最低用餐人数 var lowestNum : String? } class MealPricesModel : MCBaseModel{ /// 要求数量 var quantity : String? /// 金额 var amount : String? } /// 套餐包含餐品 class MealFoodMsgModel : MCBaseModel{ /// 附件id var attachId : String? /// 创建时间 var createTime : String? /// 创建人Id var createUserId : String? /// 创建人 var createUserName : String? /// id var id : NSNumber? /// 0为未删除,1为已删除 var isDelete : String? /// 附件路径 var link : String? /// 菜品名称 var name : String? /// 菜品名称 var nameCn : String? /// 菜品名称 var nameEn : String? /// 可替换菜品池Id,设置可替换菜品时设置此值 var replacePoolId : NSNumber? /// 替换菜品ID var replaceId : NSNumber? /// 状态,1禁用,0启用 var status : String? /// 更新时间 var updateTime : String? /// 更新人Id var updateUserId : String? /// 更新人 var updateUserName : String? /// 备注 var comment : String? /// 状态,false未选中,true选中 var selected = false } /// 套餐包含餐品 class MealFoodMsgUpModel : MCBaseModel{ /// 更新人 var comment : String? /// 更新人 var id : NSNumber? /// 更新人 var replaceId : NSNumber? // comment 菜品备注 false // string // id 菜品id false // integer // replaceId 替换菜品id } //MARK: 获取配送时段 class GetDeliveryTimeRequestModel: MCBaseRequestModel { ///购物车时间id var id : NSNumber? override func requestMethod() -> MCHttpMethod { .post } override func requestUrl() -> String { "/app/meal/getSupplyTime" } } class DeliveryTimeModel : MCBaseModel{ /// 创建时间 var createTime : String? /// 创建人id var createUserId : String? /// 创建人 var createUserName : String? /// 结束时间 var endTime : String? /// id var id : NSNumber? /// 0为未删除,1为已删除 var isDelete : String? /// 时段配送人员人数 为0置灰 var quota : String? /// 排序 var sort : String? /// 开始时间 var startTime : String? /// 状态,1禁用,0启用 var status : String? /// 排序 var updateTime : String? /// 修改人 var updateUserId : String? /// 更新人 var updateUserName : String? /// 状态,false未选中,true选中 var selected = false } //MARK: 加入购物车 class AddToshoppingCartModel: MCBaseRequestModel { /// 活动id var activityId : String? /// 备注 var comment : String? /// 送达时间-结束 var deliveryEnd : String? /// 送达时间-开始 var deliveryStart : String? /// 折扣id var discountId : String? // /// 非固定套餐-选品明细,取选择菜品的主键id // var fixedFoods : [String]? /// 是否固定套餐,1是,0不是 var isFixed : String? /// 套餐类型,1普团 2白团 var isGeneral : String? /// 套餐内菜品信息 var mealFoodMsgs : [MealFoodMsgModel]? /// 菜品/套餐id var mealId : NSNumber? /// 单品/套餐,1单品,2套餐 var mealType : String? /// 就餐人数 var numPeople : String? /// 运营id var runTypeId : String? /// 供餐类型id var supplyTypeId : String? /// 购物车id var shopcartId : NSNumber? /// 时间id var shopcartTimeId : NSNumber? /// 时间 var shopcartTime : String? /// 套餐内菜品信息 var fixedFoods : [NSNumber]? /// var deliveryId : NSNumber? override func requestMethod() -> MCHttpMethod { .post } override func requestUrl() -> String { "/app/shopcart/insert" } } //MARK: 获取配送时段 class GetReplaceFoodRequestModel: MCBaseRequestModel { /// 菜品池id var poolId : NSNumber? override func requestMethod() -> MCHttpMethod { .get } override func requestUrl() -> String { "/app/meal/getReplaceFood" } } //MARK: check评论 class GetEvaluateForMealList: MCBaseRequestModel { ///当前页 var current : Int? ///菜品ID var mealId : NSNumber? var size : String? = "10" override func requestMethod() -> MCHttpMethod { .post } override func requestUrl() -> String { "/app/meal/pageMealPraise" } } /// 菜品评论 class MealEvaluateListModel: MCBaseRequestModel { /// 人员头像 var avatar : String? /// 评价详情 var comment : String? /// 评价详情 var links : [String]? /// 评价人 var name : String? /// 评价时间 var praiseTime : String? /// 评分 var score : String? }