소스 검색

first commit

15810770710@163.com 4 년 전
부모
커밋
67368ae488

+ 41 - 0
pom.xml

@@ -0,0 +1,41 @@
+<?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>org.springframework.boot</groupId>
+        <artifactId>spring-boot-starter-parent</artifactId>
+        <version>2.0.6.RELEASE</version>
+        <relativePath/> <!-- lookup parent from repository -->
+    </parent>
+
+    <groupId>info.aspirecn.iov.sjjh</groupId>
+    <artifactId>iov-sjjh-servicenode-supplier-10000002-interface</artifactId>
+    <version>1.0.0</version>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.springframework.cloud</groupId>
+            <artifactId>spring-cloud-starter-feign</artifactId>
+            <version>1.4.4.RELEASE</version>
+        </dependency>
+        <dependency>
+            <groupId>io.springfox</groupId>
+            <artifactId>springfox-swagger-ui</artifactId>
+            <version>2.9.2</version>
+        </dependency>
+        <dependency>
+            <groupId>io.springfox</groupId>
+            <artifactId>springfox-swagger2</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>
+
+</project>

+ 68 - 0
src/main/java/info/aspirecn/rdc/iov/sjjh/servicenode/supplier/bty_interface/action/BTYChannelAction.java

@@ -0,0 +1,68 @@
+package info.aspirecn.rdc.iov.sjjh.servicenode.supplier.bty_interface.action;
+
+import info.aspirecn.iov.sjjh.commons.lang.ChannelTypeHandleResponseObject;
+import info.aspirecn.rdc.iov.sjjh.servicenode.supplier.bty_interface.vo.ResponseObject;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import io.swagger.annotations.ApiParam;
+
+import org.springframework.cloud.netflix.feign.FeignClient;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestHeader;
+import org.springframework.web.bind.annotation.RequestParam;
+
+
+/**
+ * @Auther jianggang
+ * @Date 2018/10/24 16:22:16
+ * @Description
+ */
+
+@Api(value = "白天源通道接口API")
+@FeignClient(name = "iov-sjjh-servicenode-supplier-10000002")
+public interface BTYChannelAction {
+
+    @ApiOperation(value = "身份证二要素")
+    @PostMapping("/checkIdCardForBTY.do")
+    ChannelTypeHandleResponseObject twoParamIdCard(
+            @ApiParam(name = "通道id", required = true)
+            @RequestHeader(name = "channelId", required = true) String channelId,
+            @ApiParam(name = "超时时间", required = false)
+            @RequestParam(name = "outTime", required = false) Integer outTime,
+            @ApiParam(name = "身份证二要素json串", required = true)
+            @RequestParam(name = "customBody", required = true) String customBody
+    );
+
+    @ApiOperation(value = "身份证二要素-WZ加密版")
+    @PostMapping("/checkIdCardWeiZhong.do")
+    ChannelTypeHandleResponseObject checkIdCardWeiZhong(
+            @ApiParam(name = "通道id", required = true)
+            @RequestHeader(name = "channelId", required = true) String channelId,
+            @ApiParam(name = "超时时间", required = false)
+            @RequestParam(name = "outTime", required = false) Integer outTime,
+            @ApiParam(name = "身份证二要素json串", required = true)
+            @RequestParam(name = "customBody", required = true) String customBody
+    );
+
+    @ApiOperation(value = "身份证二要素-MD5加密版")
+    @PostMapping("/checkIdCardMD5.do")
+    ChannelTypeHandleResponseObject checkIdCardMD5(
+            @ApiParam(name = "通道id", required = true)
+            @RequestHeader(name = "channelId", required = true) String channelId,
+            @ApiParam(name = "超时时间", required = false)
+            @RequestParam(name = "outTime", required = false) Integer outTime,
+            @ApiParam(name = "身份证二要素json串", required = true)
+            @RequestParam(name = "customBody", required = true) String customBody
+    );
+
+    @ApiOperation(value = "身份证二要素-SHA256加密版")
+    @PostMapping("/checkIdCardSHA256.do")
+    ChannelTypeHandleResponseObject checkIdCardSHA256(
+            @ApiParam(name = "通道id", required = true)
+            @RequestHeader(name = "channelId", required = true) String channelId,
+            @ApiParam(name = "超时时间", required = false)
+            @RequestParam(name = "outTime", required = false) Integer outTime,
+            @ApiParam(name = "身份证二要素json串", required = true)
+            @RequestParam(name = "customBody", required = true) String customBody
+    );
+}

+ 1 - 0
src/main/java/info/aspirecn/rdc/iov/sjjh/servicenode/supplier/bty_interface/package-info.java

@@ -0,0 +1 @@
+package info.aspirecn.rdc.iov.sjjh.servicenode.supplier.bty_interface;

+ 28 - 0
src/main/java/info/aspirecn/rdc/iov/sjjh/servicenode/supplier/bty_interface/vo/CustomBodyObject.java

@@ -0,0 +1,28 @@
+package info.aspirecn.rdc.iov.sjjh.servicenode.supplier.bty_interface.vo;
+
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import java.io.Serializable;
+
+/**
+ * @Auther jianggang
+ * @Date 2018/10/24 14:07:58
+ * @Description
+ */
+
+
+@ApiModel(value = "身份证二要素通道请求参数对象")
+@Data
+public class CustomBodyObject implements Serializable {
+
+    @ApiModelProperty(value = "姓名" , required = true)
+    private String name;
+
+    @ApiModelProperty(value = "身份证号" , required = true)
+    private String idCode;
+
+    /**没有实际用途,因为客户要多传一个,防止解析报错*/
+    private String plateNumber;
+}

+ 27 - 0
src/main/java/info/aspirecn/rdc/iov/sjjh/servicenode/supplier/bty_interface/vo/ResponseObject.java

@@ -0,0 +1,27 @@
+package info.aspirecn.rdc.iov.sjjh.servicenode.supplier.bty_interface.vo;
+
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import java.io.Serializable;
+
+/**
+ * @Auther jianggang
+ * @Date 2018/10/24 16:23:50
+ * @Description
+ */
+
+@ApiModel(value = "通道响应对象")
+@Data
+public class ResponseObject implements Serializable {
+
+    @ApiModelProperty(value = "是否收费", required = true)
+    private Integer isCharge;
+
+    @ApiModelProperty(value = "返回码", required = true)
+    private Integer code;
+
+    @ApiModelProperty(value = "返回结果对象", required = true)
+    private Object resultBody;
+}