EvaluateRequestModel.swift 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. //
  2. // EvaluateRequestModel.swift
  3. // ADHTuanCan
  4. //
  5. // Created by 敖德亨 on 2023/11/10.
  6. //
  7. import UIKit
  8. class EvaluateRequestModel: MCBaseRequestModel {
  9. }
  10. class GetNeedEvaluateListModel: MCBaseRequestModel {
  11. /// 订单ID
  12. var id : NSNumber?
  13. override func requestMethod() -> MCHttpMethod {
  14. .post
  15. }
  16. override func requestUrl() -> String {
  17. "/app/review/orderReviewPage"
  18. }
  19. }
  20. class NeedEvaluateListModel : MCBaseModel{
  21. /// 评价内容
  22. var comment : String?
  23. /// 菜品图片
  24. var link : String?
  25. /// 菜品图片
  26. var links : [String]? = []
  27. /// 菜品id
  28. var mealId : NSNumber?
  29. /// 菜品类型,1为单品,2为套餐,0为订单
  30. var mealType : String?
  31. /// 菜品名称
  32. var name : String?
  33. /// 菜品名称
  34. var orderId : NSNumber?
  35. /// 评价类型ReviewTypeEnum,1为菜品评价,2为订单评价(商家评价)
  36. var reviewType : String?
  37. /// 分数,满分5分,一分一星
  38. var score : String?
  39. /// 头像
  40. var avatar : String?
  41. /// 评价时间
  42. var praiseTime : String?
  43. }
  44. class UpEvaluateListModel: MCBaseRequestModel {
  45. /// 订单ID
  46. var orderId : NSNumber?
  47. var orderMealReviews : [NeedEvaluateListModel]? = []
  48. override func requestMethod() -> MCHttpMethod {
  49. .post
  50. }
  51. override func requestUrl() -> String {
  52. "/app/review/orderReview"
  53. }
  54. }
  55. class GetMealEvaluateListModel: MCBaseRequestModel {
  56. /// 菜品 套餐ID
  57. var mealId : NSNumber?
  58. var current : Int?
  59. let size = "10"
  60. override func requestMethod() -> MCHttpMethod {
  61. .post
  62. }
  63. override func requestUrl() -> String {
  64. "/app/meal/pageMealPraise"
  65. }
  66. }