liub hai 3 meses
pai
achega
0d6f3c5a2b

+ 1 - 0
tenant/insurance/pom.xml

@@ -16,6 +16,7 @@
         <module>quotation-commons</module>
         <module>quotation-summary</module>
         <module>quotation-dajia</module>
+        <module>quotation-dadi</module>
         <module>quotation-zhongmei</module>
         <module>quotation-zijin</module>
         <module>quotation-bohai</module>

+ 53 - 0
tenant/insurance/quotation-dadi/pom.xml

@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>com.jzg</groupId>
+        <artifactId>insurance</artifactId>
+        <version>1.0-SNAPSHOT</version>
+    </parent>
+
+    <artifactId>quotation-dadi</artifactId>
+    <name>大地财险</name>
+    <properties>
+        <maven.compiler.source>17</maven.compiler.source>
+        <maven.compiler.target>17</maven.compiler.target>
+        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
+        <maven.compiler.encoding>UTF-8</maven.compiler.encoding>
+    </properties>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <version>3.11.0</version>
+                <configuration>
+                    <source>17</source>
+                    <target>17</target>
+                    <encoding>UTF-8</encoding>
+                </configuration>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-resources-plugin</artifactId>
+                <version>3.3.1</version>
+                <configuration>
+                    <encoding>UTF-8</encoding>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+
+    <dependencies>
+        <dependency>
+            <groupId>com.jzg</groupId>
+            <artifactId>quotation-commons</artifactId>
+            <version>1.0-SNAPSHOT</version>
+        </dependency>
+    </dependencies>
+
+</project>

+ 8 - 0
tenant/insurance/quotation-dadi/src/main/java/com/jzg/quotation/dadi/service/DaDiCrawlerOrderService.java

@@ -0,0 +1,8 @@
+package com.jzg.quotation.dadi.service;
+
+
+public interface DaDiCrawlerOrderService {
+
+
+
+}

+ 41 - 0
tenant/insurance/quotation-dadi/src/main/java/com/jzg/quotation/dadi/service/DaDiCrawlerQuoteProcessService.java

@@ -0,0 +1,41 @@
+package com.jzg.quotation.dadi.service;
+
+import com.jzg.commons.entity.quote.vo.base.LoginBase;
+import com.jzg.quotation.commons.entity.DetectLoginRequest;
+import com.jzg.quotation.commons.entity.GetCaptchaRequest;
+import com.jzg.quotation.commons.entity.GetCaptchaResponse;
+import org.springframework.http.HttpHeaders;
+
+public interface DaDiCrawlerQuoteProcessService {
+
+    /**
+     * 获取验证码
+     *
+     * @param sendCaptchaRequest 获取验证码请求
+     * @return 验证码响应
+     */
+    GetCaptchaResponse getCaptcha(GetCaptchaRequest sendCaptchaRequest);
+    /**
+     * 登录
+     *
+     * @param loginBase 登录信息
+     */
+    void login(LoginBase loginBase);
+
+    /**
+     * 检测登录
+     *
+     * @param detectLoginRequest 检测登录请求
+     * @return 检测结果
+     */
+    boolean detectLogin(DetectLoginRequest detectLoginRequest);
+
+    /**
+     * 获取请求头信息
+     *
+     * @param username 用户名
+     * @return 请求头
+     */
+    HttpHeaders getHeaders(String username);
+
+}

+ 8 - 0
tenant/insurance/quotation-dadi/src/main/java/com/jzg/quotation/dadi/service/DaDiCrawlerRequest.java

@@ -0,0 +1,8 @@
+package com.jzg.quotation.dadi.service;
+
+import com.jzg.quotation.commons.service.GetCaptchaBaseService;
+import com.jzg.quotation.commons.service.QuotationCrawlerBaseService;
+
+public interface DaDiCrawlerRequest extends QuotationCrawlerBaseService, GetCaptchaBaseService {
+
+}