|
|
@@ -6,9 +6,14 @@ import com.cyksj.dto.Result;
|
|
|
import com.cyksj.enums.GatewayResponse;
|
|
|
import com.cyksj.model.entity.CorpCustomerAcquisitionLinkPopularize;
|
|
|
import com.cyksj.service.corp.CorpCustomerAcquisitionLinkPopularizeService;
|
|
|
+import com.ejlchina.searcher.BeanSearcher;
|
|
|
+import com.ejlchina.searcher.SearchResult;
|
|
|
+import com.ejlchina.searcher.util.MapUtils;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
+import javax.servlet.http.HttpServletRequest;
|
|
|
+
|
|
|
/**
|
|
|
* 获客助手
|
|
|
* @author chan
|
|
|
@@ -22,6 +27,10 @@ public class CorpCustomerAcquistionLinkPopularizeController {
|
|
|
|
|
|
private final CorpCustomerAcquisitionLinkPopularizeService corpCustomerAcquisitionLinkPopularizeService;
|
|
|
|
|
|
+ private final BeanSearcher beanSearcher;
|
|
|
+
|
|
|
+ private final HttpServletRequest request;
|
|
|
+
|
|
|
/**
|
|
|
* 创建加粉链接
|
|
|
*/
|
|
|
@@ -66,5 +75,14 @@ public class CorpCustomerAcquistionLinkPopularizeController {
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 加粉链接列表
|
|
|
+ */
|
|
|
+ @GetMapping("/get")
|
|
|
+ public Result<SearchResult<CorpCustomerAcquisitionLinkPopularize>> get(){
|
|
|
+ SearchResult<CorpCustomerAcquisitionLinkPopularize> search = beanSearcher.search(CorpCustomerAcquisitionLinkPopularize.class, MapUtils.flatBuilder(request.getParameterMap()).build());
|
|
|
+ return GatewayResponse.SUCCESS.newBuilder().toResult(search);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
}
|