|
@@ -5,6 +5,7 @@ import com.uas.platform.b2c.advertise.ad.service.RecommendProductService;
|
|
|
import com.uas.platform.b2c.core.utils.JacksonUtils;
|
|
import com.uas.platform.b2c.core.utils.JacksonUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.PathVariable;
|
|
import org.springframework.web.bind.annotation.PathVariable;
|
|
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
@@ -43,6 +44,15 @@ public class StoreRecommendController {
|
|
|
return recommendProductService.findProductsWhenUserVisitStore(uuid);
|
|
return recommendProductService.findProductsWhenUserVisitStore(uuid);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 当卖家新增或修改产品推荐时,创建或更新产品推荐信息
|
|
|
|
|
+ */
|
|
|
|
|
+ @RequestMapping(method = RequestMethod.POST, value = "/products//update_batch")
|
|
|
|
|
+ public List<RecommendProduct> saveProductsWhenSellerUpdate(String uuid,
|
|
|
|
|
+ @RequestBody List<RecommendProduct> productList) {
|
|
|
|
|
+ return recommendProductService.saveProductsWhenSellerUpdate(uuid, productList);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
@RequestMapping(value = "/products/{uuid}", method = RequestMethod.DELETE)
|
|
@RequestMapping(value = "/products/{uuid}", method = RequestMethod.DELETE)
|
|
|
public String deleteProductsWhenUserVisitStore(@PathVariable("uuid") String uuid, String batchCode) {
|
|
public String deleteProductsWhenUserVisitStore(@PathVariable("uuid") String uuid, String batchCode) {
|
|
|
Map<String, String> map = new HashMap<>();
|
|
Map<String, String> map = new HashMap<>();
|