12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- //
- // EvaluateRequestModel.swift
- // ADHTuanCan
- //
- // Created by 敖德亨 on 2023/11/10.
- //
- import UIKit
- class EvaluateRequestModel: MCBaseRequestModel {
- }
- class GetNeedEvaluateListModel: MCBaseRequestModel {
- /// 订单ID
- var id : NSNumber?
-
- override func requestMethod() -> MCHttpMethod {
- .post
- }
- override func requestUrl() -> String {
- "/app/review/orderReviewPage"
- }
- }
- class NeedEvaluateListModel : MCBaseModel{
-
- /// 评价内容
- var comment : String?
-
- /// 菜品图片
- var link : String?
-
- /// 菜品图片
- var links : [String]? = []
-
- /// 菜品id
- var mealId : NSNumber?
-
- /// 菜品类型,1为单品,2为套餐,0为订单
- var mealType : String?
-
- /// 菜品名称
- var name : String?
-
- /// 菜品名称
- var orderId : NSNumber?
-
- /// 评价类型ReviewTypeEnum,1为菜品评价,2为订单评价(商家评价)
- var reviewType : String?
-
- /// 分数,满分5分,一分一星
- var score : String?
-
- /// 头像
- var avatar : String?
-
- /// 评价时间
- var praiseTime : String?
- }
- class UpEvaluateListModel: MCBaseRequestModel {
- /// 订单ID
- var orderId : NSNumber?
-
- var orderMealReviews : [NeedEvaluateListModel]? = []
- override func requestMethod() -> MCHttpMethod {
- .post
- }
- override func requestUrl() -> String {
- "/app/review/orderReview"
- }
- }
- class GetMealEvaluateListModel: MCBaseRequestModel {
- /// 菜品 套餐ID
- var mealId : NSNumber?
-
- var current : Int?
-
- let size = "10"
- override func requestMethod() -> MCHttpMethod {
- .post
- }
- override func requestUrl() -> String {
- "/app/meal/pageMealPraise"
- }
- }
|