Bladeren bron

我的客服中心问题查询

liude 1 jaar geleden
bovenliggende
commit
6a381d89a6

+ 42 - 0
src/main/java/com/chelvc/cloud/maintain/controller/HelpCategoryController.java

@@ -0,0 +1,42 @@
+package com.chelvc.cloud.maintain.controller;
+
+import com.chelvc.cloud.vehicle.api.dto.HelpCategoryDTO;
+import com.chelvc.cloud.vehicle.api.dto.MerchantDTO;
+import com.chelvc.cloud.vehicle.api.param.HelpCategoryModifyParam;
+import com.chelvc.cloud.vehicle.api.service.HotMerchantService;
+import com.chelvc.cloud.vehicle.api.service.IHelpCategoryService;
+import com.chelvc.framework.base.annotation.ResponseWrapping;
+import org.apache.dubbo.config.annotation.DubboReference;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import javax.validation.constraints.Min;
+import java.util.List;
+
+/**
+ * 客服中心接口
+ *
+ * @author liude
+ * @date 2024/3/4
+ */
+@Validated
+@RestController
+@ResponseWrapping
+public class HelpCategoryController {
+    @DubboReference
+    private IHelpCategoryService categoryService;
+    /**
+     * 客服中心问题查询
+     *
+     * @param
+     */
+    @PostMapping("/problem/list")
+    public List<HelpCategoryDTO> selectHelpCategoryList(HelpCategoryModifyParam helpCategory) {
+       return this.categoryService.selectHelpCategoryList(helpCategory);
+    }
+
+
+}

+ 13 - 0
src/main/java/com/chelvc/cloud/maintain/controller/MerchantController.java

@@ -3,10 +3,12 @@ package com.chelvc.cloud.maintain.controller;
 import com.chelvc.cloud.maintain.copier.MerchantCopier;
 import com.chelvc.cloud.maintain.vo.SimpleMerchantVO;
 import com.chelvc.cloud.vehicle.api.dto.MerchantBalanceDetailDTO;
+import com.chelvc.cloud.vehicle.api.dto.MerchantDTO;
 import com.chelvc.cloud.vehicle.api.dto.MerchantDetailDTO;
 import com.chelvc.cloud.vehicle.api.param.LocationQueryParam;
 import com.chelvc.cloud.vehicle.api.param.MerchantQueryParam;
 import com.chelvc.cloud.vehicle.api.param.MerchantRankParam;
+import com.chelvc.cloud.vehicle.api.param.OmsCartItemPagingParam;
 import com.chelvc.cloud.vehicle.api.param.QueryMerchantBalanceParam;
 import com.chelvc.cloud.vehicle.api.service.FavoriteService;
 import com.chelvc.cloud.vehicle.api.service.MerchantBalanceDetailService;
@@ -108,4 +110,15 @@ public class MerchantController {
         }
         return this.merchantBalanceDetailService.queryByUserId(param, pageNum, pageSize, SessionContextHolder.getId());
     }
+
+
+    /**
+     * 我的购物车列表
+     *
+     */
+    @GetMapping("/mineCartList")
+    public Pagination<MerchantDTO> mineCartList(@Valid OmsCartItemPagingParam param) {
+        return this.merchantService.getUserMineCartPaging(param);
+    }
+
 }