Browse Source

change service api /app/training/{id} to /training/{id}

xuchaolang 6 years ago
parent
commit
a5feaf286d

+ 1 - 1
rankin-api-web/src/main/java/cn/rankin/apiweb/service/product/ProductClient.java

@@ -43,7 +43,7 @@ public interface ProductClient {
     @RequestMapping(value = "/app/support/{supportId}", method = RequestMethod.GET)
     APIResult<SupportItemVo> getSupport(@PathVariable("supportId") String supportId, @RequestParam("merchantId") String merchantId);
 
-    @RequestMapping(value = "/app/training/{id}", method = RequestMethod.GET)
+    @RequestMapping(value = "/training/{id}", method = RequestMethod.GET)
     APIResult<TrainingItemVo> getTraining(@PathVariable("id") String id, @RequestParam("merchantId") String merchantId);
 
     @RequestMapping(value = "/app/lesson/{lessonId}", method = RequestMethod.GET)

+ 20 - 0
rankin-product-service/src/main/java/cn/rankin/productservice/service/app/ItemService.java

@@ -169,6 +169,26 @@ public class ItemService {
         return itemVoList;
     }
 
+    /**
+     * 获取product
+     * @param merchantId
+     * @param productIdList
+     * @return
+     */
+    /*
+    protected List<Product> findProduct(String merchantId, List<String> productIdList){
+        if (CollectionUtils.isEmpty(productIdList)) {
+            return new ArrayList<>();
+        }
+
+        List<MerchantProduct> merchantProductList = merchantProductRepository.findByPidsAndMerchantId(productIdList, merchantId);
+    }
+
+    public List<ItemVo> findMerchant(String merchantId, List<String> productIdList){
+
+    }
+    */
+
     public List<ItemVo> findByIds(String merchantId, List<String> productIdList) {
         if (CollectionUtils.isEmpty(productIdList)) {
             return new ArrayList<>();