|
|
@@ -32,7 +32,7 @@ import javax.servlet.http.HttpServletRequest;
|
|
|
import java.util.List;
|
|
|
import java.util.Optional;
|
|
|
|
|
|
-/*
|
|
|
+/** admin/企业微信/客服活码
|
|
|
*项目名: netflix
|
|
|
*文件名: CmsCorpFollowActiveCodeController
|
|
|
*创建者: JavaZou
|
|
|
@@ -57,6 +57,7 @@ public class CmsCorpFollowActiveCodeController {
|
|
|
|
|
|
private final HttpServletRequest request;
|
|
|
|
|
|
+
|
|
|
/**
|
|
|
* 生成动态配置
|
|
|
*/
|
|
|
@@ -66,6 +67,15 @@ public class CmsCorpFollowActiveCodeController {
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(body);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 可选客服配置
|
|
|
+ */
|
|
|
+ @GetMapping("/get/available/follow")
|
|
|
+ public Result<List<CorpFollowServiceRelate>> getAvailableFollow() {
|
|
|
+ List<CorpFollowServiceRelate> corpFollowServiceRelates = beanSearcher.searchAll(CorpFollowServiceRelate.class, MapUtils.flatBuilder(request.getParameterMap()).build());
|
|
|
+ return GatewayResponse.SUCCESS.newBuilder().toResult(corpFollowServiceRelates);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 创建活动活码
|
|
|
*/
|
|
|
@@ -168,13 +178,4 @@ public class CmsCorpFollowActiveCodeController {
|
|
|
SearchResult<CorpActiveCodeGoodsOrderView> search = beanSearcher.search(CorpActiveCodeGoodsOrderView.class, mapBuilder.build());
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(search);
|
|
|
}
|
|
|
-
|
|
|
- /**
|
|
|
- * 可选客服配置
|
|
|
- */
|
|
|
- @GetMapping("/get/available/follow")
|
|
|
- public Result<List<CorpFollowServiceRelate>> getAvailableFollow() {
|
|
|
- List<CorpFollowServiceRelate> corpFollowServiceRelates = beanSearcher.searchAll(CorpFollowServiceRelate.class, MapUtils.flatBuilder(request.getParameterMap()).build());
|
|
|
- return GatewayResponse.SUCCESS.newBuilder().toResult(corpFollowServiceRelates);
|
|
|
- }
|
|
|
}
|