15810770710@163.com 3 лет назад
Родитель
Сommit
c427a7fad8

+ 62 - 0
pom.xml

@@ -0,0 +1,62 @@
+<?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>
+
+	<groupId>info.aspirecn.iov.sjjh</groupId>
+    <artifactId>iov-sjjh-servicenode-supplier-10000005-interface</artifactId>
+    <version>1.0.0</version>
+    <packaging>jar</packaging>
+
+    <name>iov-sjjh-servicenode-supplier-10000005-interface</name>
+    <description>产品服务(接口)</description>
+
+   <parent>
+        <groupId>org.springframework.boot</groupId>
+        <artifactId>spring-boot-starter-parent</artifactId>
+        <version>2.0.6.RELEASE</version>
+        <relativePath/> <!-- lookup parent from repository -->
+    </parent>
+    <properties>
+        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
+        <java.version>1.8</java.version>
+    </properties>
+
+    <dependencies>
+
+        <dependency>
+            <groupId>org.springframework.cloud</groupId>
+            <artifactId>spring-cloud-starter-openfeign</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>io.springfox</groupId>
+            <artifactId>springfox-swagger2</artifactId>
+            <version>2.9.2</version>
+        </dependency>
+
+        <dependency>
+            <groupId>io.springfox</groupId>
+            <artifactId>springfox-swagger-ui</artifactId>
+            <version>2.9.2</version>
+        </dependency>
+        <dependency>
+			<groupId>info.aspirecn.iov.sjjh</groupId>
+			<artifactId>iov-sjjh-commons-lang</artifactId>
+			<version>1.0.0</version>
+		</dependency>
+    </dependencies>
+    <dependencyManagement>
+        <dependencies>
+            <dependency>
+                <groupId>org.springframework.cloud</groupId>
+                <artifactId>spring-cloud-dependencies</artifactId>
+                <version>Finchley.SR2</version>
+                <type>pom</type>
+                <scope>import</scope>
+            </dependency>
+        </dependencies>
+    </dependencyManagement>
+</project>

+ 149 - 0
src/main/java/info/aspirecn/iov/sjjh/shupplier10000005/action/Supplier10000005ActionInterface.java

@@ -0,0 +1,149 @@
+package info.aspirecn.iov.sjjh.shupplier10000005.action;
+
+import info.aspirecn.iov.sjjh.commons.lang.ChannelTypeHandleResponseObject;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.cloud.openfeign.FeignClient;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestHeader;
+import org.springframework.web.bind.annotation.RequestParam;
+
+
+/**
+ *
+ * @author minmin
+ *
+ */
+
+@Api(value = "三传木-通道接口")
+@FeignClient(value = "iov-sjjh-servicenode-supplier-10000005")
+public interface Supplier10000005ActionInterface {
+
+    @ApiOperation(value = "三传木身份证检验接口" , notes = "")
+    @PostMapping(value = "/scmIdCardCheck.do")
+    ChannelTypeHandleResponseObject scmIdCardCheck(
+            @RequestHeader(name = "channelId") String channelId,
+            @RequestParam(name = "outTime", required = true) int outTime,
+            @RequestParam(name = "customBody", required = true) String customBody);
+
+
+    @ApiOperation(value = "三传木移动三要素1号检验接口 " , notes = "")
+    @PostMapping(value = "/scmMobileCheck.do")
+    ChannelTypeHandleResponseObject scmMobileCheck(
+            @RequestHeader(name = "channelId") String channelId,
+            @RequestParam(name = "outTime", required = true) int outTime,
+            @RequestParam(name = "customBody", required = true) String customBody);
+
+    @ApiOperation(value = "三传木移动三要素2号检验接口 " , notes = "")
+    @PostMapping(value = "/scmMobileTwoCheck.do")
+    ChannelTypeHandleResponseObject scmMobileTwoCheck(
+            @RequestHeader(name = "channelId") String channelId,
+            @RequestParam(name = "outTime", required = true) int outTime,
+            @RequestParam(name = "customBody", required = true) String customBody);
+
+    @ApiOperation(value = "三传木移动三要素3号检验接口 " , notes = "")
+    @PostMapping(value = "/scmMobileThreeCheck.do")
+    ChannelTypeHandleResponseObject scmMobileThreeCheck(
+            @RequestHeader(name = "channelId") String channelId,
+            @RequestParam(name = "outTime", required = true) int outTime,
+            @RequestParam(name = "customBody", required = true) String customBody);
+
+    @ApiOperation(value = "三传木移动三要素4号检验接口 " , notes = "")
+    @PostMapping(value = "/scmMobileFourCheck.do")
+    ChannelTypeHandleResponseObject scmMobileFourCheck(
+            @RequestHeader(name = "channelId") String channelId,
+            @RequestParam(name = "outTime", required = true) int outTime,
+            @RequestParam(name = "customBody", required = true) String customBody);
+
+    @ApiOperation(value = "三传木电信三要素检验接口 " , notes = "")
+    @PostMapping(value = "/scmDianXinCheck.do")
+    ChannelTypeHandleResponseObject scmDianXinCheck(
+            @RequestHeader(name = "channelId") String channelId,
+            @RequestParam(name = "outTime", required = true) int outTime,
+            @RequestParam(name = "customBody", required = true) String customBody);
+
+    @ApiOperation(value = "三传木联通三要素检验接口 " , notes = "")
+    @PostMapping(value = "/scmLianTongCheck.do")
+    ChannelTypeHandleResponseObject scmLianTongCheck(
+            @RequestHeader(name = "channelId") String channelId,
+            @RequestParam(name = "outTime", required = true) int outTime,
+            @RequestParam(name = "customBody", required = true) String customBody);
+
+    @ApiOperation(value = "三传木移动在线时长接口 " , notes = "")
+    @PostMapping(value = "/scmMobileOnlineTimeCheck.do")
+    ChannelTypeHandleResponseObject scmMobileOnlineTimeCheck(
+            @RequestHeader(name = "channelId") String channelId,
+            @RequestParam(name = "outTime", required = true) int outTime,
+            @RequestParam(name = "customBody", required = true) String customBody);
+
+    @ApiOperation(value = "三传木移动在线状态接口 " , notes = "")
+    @PostMapping(value = "/scmMobileOnlineStatusCheck.do")
+    ChannelTypeHandleResponseObject scmMobileOnlineStatusCheck(
+            @RequestHeader(name = "channelId") String channelId,
+            @RequestParam(name = "outTime", required = true) int outTime,
+            @RequestParam(name = "customBody", required = true) String customBody);
+
+    @ApiOperation(value = "三传木电信在线时长接口 " , notes = "")
+    @PostMapping(value = "/s00-DianXinOnlineTimeCheck.do")
+    ChannelTypeHandleResponseObject scmDianXinOnlineTimeCheck(
+            @RequestHeader(name = "channelId") String channelId,
+            @RequestParam(name = "outTime", required = true) int outTime,
+            @RequestParam(name = "customBody", required = true) String customBody);
+
+    @ApiOperation(value = "三传木电信在线状态接口 " , notes = "")
+    @PostMapping(value = "/s00-DianXinOnlineStatusCheck.do")
+    ChannelTypeHandleResponseObject scmDianXinOnlineStatusCheck(
+            @RequestHeader(name = "channelId") String channelId,
+            @RequestParam(name = "outTime", required = true) int outTime,
+            @RequestParam(name = "customBody", required = true) String customBody);
+
+
+    @ApiOperation(value = "三传木联通在线时长接口 " , notes = "")
+    @PostMapping(value = "/s00-LianTongOnlineTimeCheck.do")
+    ChannelTypeHandleResponseObject scmLianTongOnlineTimeCheck(
+            @RequestHeader(name = "channelId") String channelId,
+            @RequestParam(name = "outTime", required = true) int outTime,
+            @RequestParam(name = "customBody", required = true) String customBody);
+
+    @ApiOperation(value = "三传木联通在线状态接口 " , notes = "")
+    @PostMapping(value = "/s00-LianTongOnlineStatusCheck.do")
+    ChannelTypeHandleResponseObject scmLianTongOnlineStatusCheck(
+            @RequestHeader(name = "channelId") String channelId,
+            @RequestParam(name = "outTime", required = true) int outTime,
+            @RequestParam(name = "customBody", required = true) String customBody);
+
+    @ApiOperation(value = "三传木银行卡三要素接口 " , notes = "")
+    @PostMapping(value = "/s00-BankThreeCheck.do")
+    ChannelTypeHandleResponseObject scmBankThreeCheck(
+            @RequestHeader(name = "channelId") String channelId,
+            @RequestParam(name = "outTime", required = true) int outTime,
+            @RequestParam(name = "customBody", required = true) String customBody);
+
+    @ApiOperation(value = "三传木银行卡四要素接口 " , notes = "")
+    @PostMapping(value = "/s00-BankFourCheck.do")
+    ChannelTypeHandleResponseObject scmBankFourCheck(
+            @RequestHeader(name = "channelId") String channelId,
+            @RequestParam(name = "outTime", required = true) int outTime,
+            @RequestParam(name = "customBody", required = true) String customBody);
+
+    @ApiOperation(value = "三传木三要素解密接口 " , notes = "")
+    @PostMapping(value = "/scmDecodeThreeElement.do")
+    ChannelTypeHandleResponseObject scmDecodeThreeElement(
+            @RequestHeader(name = "channelId") String channelId,
+            @RequestParam(name = "outTime", required = true) int outTime,
+            @RequestParam(name = "customBody", required = true) String customBody);
+
+    @ApiOperation(value = "三传木电信三要素详版接口 " , notes = "")
+    @PostMapping(value = "/scmCTCCThreeElementInfo.do")
+    ChannelTypeHandleResponseObject scmCTCCThreeElementInfo(
+            @RequestHeader(name = "channelId") String channelId,
+            @RequestParam(name = "outTime", required = true) int outTime,
+            @RequestParam(name = "customBody", required = true) String customBody);
+
+    @ApiOperation(value = "三传木MD5解密接口-定制版(只解密身份证)" , notes = "")
+    @PostMapping(value = "/scmDecodeIdCode.do")
+    ChannelTypeHandleResponseObject scmDecodeIdCode(
+            @RequestHeader(name = "channelId") String channelId,
+            @RequestParam(name = "outTime", required = true) int outTime,
+            @RequestParam(name = "customBody", required = true) String customBody);
+}

+ 27 - 0
src/main/java/info/aspirecn/iov/sjjh/shupplier10000005/vo/ResponseObject.java

@@ -0,0 +1,27 @@
+package info.aspirecn.iov.sjjh.shupplier10000005.vo;
+
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonInclude.Include;
+import lombok.Data;
+import lombok.ToString;
+
+/**
+ * 返回对象
+ * @author minmin
+ *
+ */
+@Data
+@ToString(callSuper = false, includeFieldNames = true)
+public class ResponseObject {
+	/**返回码:0错误;1成功;2超时*/
+    private Integer code;
+    @JsonInclude(value = Include.NON_NULL)
+    /**返回说明*/
+    private String message;
+    /**接口返回的字符串*/
+    private SCMIdCardCheckRespnoseObject resultBody;
+    /**是否收费:0不收,1收费*/
+    private int isCharge;
+    /**通道ID*/
+    private String channelId;
+}

+ 27 - 0
src/main/java/info/aspirecn/iov/sjjh/shupplier10000005/vo/SCMIdCardCheckRespnoseObject.java

@@ -0,0 +1,27 @@
+package info.aspirecn.iov.sjjh.shupplier10000005.vo;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import lombok.Data;
+import lombok.ToString;
+
+/**
+ * 三传木-身份证简项核验接口返回对象
+ * @author minmin
+ *
+ */
+@Data
+@ToString(callSuper = true, includeFieldNames = true)
+public class SCMIdCardCheckRespnoseObject {
+	/**检验结果码:0和1时扣费*/
+	@JsonProperty(value = "data")
+	private int data;
+	/**接口返回码*/
+	@JsonProperty(value = "code")
+	private String code;
+	/**检验结果信息*/
+	@JsonProperty(value = "msg")
+	private String msg;
+	@JsonProperty(value = "requestid")
+	private String requestid;
+	private String provider;
+}