|
@@ -1,6 +1,7 @@
|
|
package com.chelvc.cloud.maintain.controller;
|
|
package com.chelvc.cloud.maintain.controller;
|
|
|
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
+import java.util.Map;
|
|
import javax.validation.Valid;
|
|
import javax.validation.Valid;
|
|
import javax.validation.constraints.Min;
|
|
import javax.validation.constraints.Min;
|
|
|
|
|
|
@@ -17,6 +18,7 @@ import org.springframework.validation.annotation.Validated;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.PathVariable;
|
|
import org.springframework.web.bind.annotation.PathVariable;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -71,4 +73,17 @@ public class GoodsController {
|
|
public Long addMerchantFavorite(@PathVariable("id") @Min(value = 1, message = "商家ID不能小于1") Long id) {
|
|
public Long addMerchantFavorite(@PathVariable("id") @Min(value = 1, message = "商家ID不能小于1") Long id) {
|
|
return this.favoriteService.addMerchantFavorite(id,"GOODS");
|
|
return this.favoriteService.addMerchantFavorite(id,"GOODS");
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 商家端商品信息查询
|
|
|
|
+ *
|
|
|
|
+ * @param param 商品信息
|
|
|
|
+ * @return 商家端商品信息
|
|
|
|
+ */
|
|
|
|
+ @PostMapping("/merchant/goodsList")
|
|
|
|
+ public Map<String,Object> getMerchantGoodsList(@RequestBody @Valid GoodsQueryParam param) {
|
|
|
|
+ return this.goodsService.getCategoryAndGoods(param);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|