|
@@ -65,6 +65,7 @@ public let kProductCartAllSelApi = "/cart/isSelectAll"
|
|
|
/// - productHomeProduct: 首页商品
|
|
|
/// - productDetail: 商品详情
|
|
|
/// - productHotSale: 热销商品
|
|
|
+/// - productCommentList: 商品评价列表
|
|
|
/// - productCartList: 购物车列表
|
|
|
/// - productCartAdd: 购物车-添加
|
|
|
/// - productCartDelete: 购物车-删除
|
|
@@ -77,6 +78,7 @@ public enum SwiftMoyaServiceProductApi {
|
|
|
case productHomeProduct(parameters:Dictionary<String, Any>)
|
|
|
case productDetail(parameters:Dictionary<String, Any>)
|
|
|
case productHotSale(parameters:Dictionary<String, Any>)
|
|
|
+ case productCommentList(parameters:Dictionary<String, Any>)
|
|
|
case productCartList(parameters:Dictionary<String, Any>)
|
|
|
case productCartAdd(parameters:Dictionary<String, Any>)
|
|
|
case productCartDelete(parameters:Dictionary<String, Any>)
|
|
@@ -94,6 +96,7 @@ extension SwiftMoyaServiceProductApi: TargetType {
|
|
|
.productHomeProduct,
|
|
|
.productDetail,
|
|
|
.productHotSale,
|
|
|
+ .productCommentList,
|
|
|
.productCartList,
|
|
|
.productCartAdd,
|
|
|
.productCartDelete,
|
|
@@ -117,6 +120,8 @@ extension SwiftMoyaServiceProductApi: TargetType {
|
|
|
return kProductDetailApi
|
|
|
case .productHotSale:
|
|
|
return kProductHotSaleApi
|
|
|
+ case .productCommentList:
|
|
|
+ return kProductCommentListApi
|
|
|
case .productCartList:
|
|
|
return kProductCartListApi
|
|
|
case .productCartAdd:
|
|
@@ -138,6 +143,7 @@ extension SwiftMoyaServiceProductApi: TargetType {
|
|
|
.productCategory,
|
|
|
.productHomeProduct,
|
|
|
.productHotSale,
|
|
|
+ .productCommentList,
|
|
|
.productCartList,
|
|
|
.productDetail
|
|
|
:
|
|
@@ -164,6 +170,7 @@ extension SwiftMoyaServiceProductApi: TargetType {
|
|
|
.productHomeProduct(var parameters),
|
|
|
.productDetail(var parameters),
|
|
|
.productHotSale(var parameters),
|
|
|
+ .productCommentList(var parameters),
|
|
|
.productCartList(var parameters),
|
|
|
.productCartAdd(var parameters),
|
|
|
.productCartDelete(var parameters),
|
|
@@ -197,6 +204,7 @@ extension SwiftMoyaServiceProductApi: TargetType {
|
|
|
.productHomeProduct,
|
|
|
.productDetail,
|
|
|
.productHotSale,
|
|
|
+ .productCommentList,
|
|
|
.productCartList,
|
|
|
.productCartAdd,
|
|
|
.productCartDelete,
|