15810770710@163.com 4 سال پیش
والد
کامیت
d691c1609a

+ 38 - 0
pom.xml

@@ -0,0 +1,38 @@
+<?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>info.aspirecn.rdc</groupId>
+        <artifactId>aspirecloud-starter-parent</artifactId>
+        <version>5.0.2</version>
+    </parent>
+
+    <groupId>info.aspirecn.iov.sjjh</groupId>
+    <artifactId>iov-sjjh-servicenode-supplier-10000003-interface</artifactId>
+    <version>1.0.0</version>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.springframework.cloud</groupId>
+            <artifactId>spring-cloud-starter-openfeign</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>io.springfox</groupId>
+            <artifactId>springfox-swagger-ui</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>io.springfox</groupId>
+            <artifactId>springfox-swagger2</artifactId>
+        </dependency>
+           <dependency>
+            <groupId>info.aspirecn.iov.sjjh</groupId>
+            <artifactId>iov-sjjh-commons-lang</artifactId>
+            <version>1.0.0</version>
+        </dependency>
+    </dependencies>
+
+
+</project>

+ 27 - 0
src/main/java/info/aspirecn/rdc/iov/sjjh/servicenode/supplier/yh_interface/action/DrivingLicenseAction.java

@@ -0,0 +1,27 @@
+package info.aspirecn.rdc.iov.sjjh.servicenode.supplier.yh_interface.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;
+
+/**
+ * @description: 云海行驶证三要素
+ * @author: xusonglin
+ * @create: 2019/7/8 15:11
+ * @version: V1.0
+ **/
+
+@Api(value = "云海行驶证三要素接口")
+@FeignClient(name = "iov-sjjh-servicenode-supplier-10000003")
+public interface DrivingLicenseAction {
+    @ApiOperation(value = "行驶证三要素接口")
+    @PostMapping("/drivingLicense.do")
+    ChannelTypeHandleResponseObject drivingLicense(
+            @RequestHeader(name = "channelId") String channelId,
+            @RequestParam(name = "outTime") int outTime,
+            @RequestParam(name = "customBody") String customBody);
+}

+ 49 - 0
src/main/java/info/aspirecn/rdc/iov/sjjh/servicenode/supplier/yh_interface/action/FaceCheckActionI.java

@@ -0,0 +1,49 @@
+package info.aspirecn.rdc.iov.sjjh.servicenode.supplier.yh_interface.action;
+
+import info.aspirecn.iov.sjjh.commons.lang.ChannelTypeHandleResponseObject;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import io.swagger.annotations.ApiParam;
+import org.springframework.cloud.openfeign.FeignClient;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestHeader;
+import org.springframework.web.bind.annotation.RequestParam;
+
+/**
+ * @Auther jianggang
+ * @Date 2019/6/10 14:19:56
+ * @Description
+ */
+
+@Api(value = "云海人像对比查询")
+@FeignClient(name = "iov-sjjh-servicenode-supplier-10000003")
+public interface FaceCheckActionI {
+
+
+    @ApiOperation(value = "云海人像对比查询")
+    @PostMapping("/faceCheckForYH.do")
+    ChannelTypeHandleResponseObject faceCheck(@ApiParam(name = "通道id", required = true)
+                                              @RequestHeader(name = "channelId", required = true)
+                                                      String channelId,
+                                              @ApiParam(name = "返回码类型", required = false)
+                                              @RequestHeader(name = "ifJkCode", required = false)
+                                                      String ifJkCode,
+                                              @ApiParam(name = "超时时间", required = true)
+                                              @RequestParam(name = "outTime", required = false) Integer outTime,
+                                              @ApiParam(name = "查询参数", value = "传入JSON字符串", required = true)
+                                              @RequestBody String customBody);
+
+    @ApiOperation(value = "云海人像对比查询-WeiZhong解密版")
+    @PostMapping("/faceCheckWZDecode.do")
+    ChannelTypeHandleResponseObject faceCheckWZDecode(@ApiParam(name = "通道id", required = true)
+                                                      @RequestHeader(name = "channelId", required = true)
+                                                              String channelId,
+                                                      @ApiParam(name = "返回码类型", required = false)
+                                                      @RequestHeader(name = "ifJkCode", required = false)
+                                                              String ifJkCode,
+                                                      @ApiParam(name = "超时时间", required = true)
+                                                      @RequestParam(name = "outTime", required = false) Integer outTime,
+                                                      @ApiParam(name = "查询参数", value = "传入JSON字符串", required = true)
+                                                      @RequestBody String customBody);
+}

+ 36 - 0
src/main/java/info/aspirecn/rdc/iov/sjjh/servicenode/supplier/yh_interface/action/TelecomOnlineStatusActionI.java

@@ -0,0 +1,36 @@
+package info.aspirecn.rdc.iov.sjjh.servicenode.supplier.yh_interface.action;
+
+import info.aspirecn.iov.sjjh.commons.lang.ChannelTypeHandleResponseObject;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import io.swagger.annotations.ApiParam;
+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;
+
+/**
+ * @Auther jianggang
+ * @Date 2019/6/11 09:33:23
+ * @Description
+ */
+
+@Api(value = "电信在网状态")
+@FeignClient(name = "iov-sjjh-servicenode-supplier-10000003")
+public interface TelecomOnlineStatusActionI {
+
+    @ApiOperation(value = "电信在网状态查询")
+    @PostMapping("/telecomOnlineStatus.do")
+    ChannelTypeHandleResponseObject telecomOnlineStatus(@ApiParam(name = "通道id", required = true)
+                                                        @RequestHeader(name = "channelId", required = true)
+                                                                String channelId,
+                                                        @ApiParam(name = "返回码类型", required = false)
+                                                        @RequestHeader(name = "ifJkCode", required = false)
+                                                                String ifJkCode,
+                                                        @ApiParam(name = "超时时间", required = false)
+                                                        @RequestParam(name = "outTime", required = false)
+                                                                Integer outTime,
+                                                        @ApiParam(name = "查询参数", value = "传入JSON字符串", required = true)
+                                                        @RequestParam(name = "customBody", required = true)
+                                                                String customBody);
+}

+ 37 - 0
src/main/java/info/aspirecn/rdc/iov/sjjh/servicenode/supplier/yh_interface/action/TelecomOnlineTimeActionI.java

@@ -0,0 +1,37 @@
+package info.aspirecn.rdc.iov.sjjh.servicenode.supplier.yh_interface.action;
+
+import info.aspirecn.iov.sjjh.commons.lang.ChannelTypeHandleResponseObject;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import io.swagger.annotations.ApiParam;
+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;
+
+/**
+ * @Auther jianggang
+ * @Date 2019/6/10 17:51:16
+ * @Description
+ */
+
+@Api(value = "电信在网时长")
+@FeignClient(name = "iov-sjjh-servicenode-supplier-10000003")
+public interface TelecomOnlineTimeActionI {
+
+
+    @ApiOperation(value = "电信在网时长查询")
+    @PostMapping("/telecomOnlineTime.do")
+    ChannelTypeHandleResponseObject telecomOnlineTime(@ApiParam(name = "通道id", required = true)
+                                                      @RequestHeader(name = "channelId", required = true)
+                                                              String channelId,
+                                                      @ApiParam(name = "返回码类型", required = false)
+                                                      @RequestHeader(name = "ifJkCode", required = false)
+                                                              String ifJkCode,
+                                                      @ApiParam(name = "超时时间", required = false)
+                                                      @RequestParam(name = "outTime", required = false)
+                                                              Integer outTime,
+                                                      @ApiParam(name = "身份证二要素验证", value = "传入JSON字符串", required = true)
+                                                      @RequestParam(name = "customBody", required = true)
+                                                              String customBody);
+}

+ 20 - 0
src/main/java/info/aspirecn/rdc/iov/sjjh/servicenode/supplier/yh_interface/action/VehicleViolationInfoAction.java

@@ -0,0 +1,20 @@
+package info.aspirecn.rdc.iov.sjjh.servicenode.supplier.yh_interface.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;
+
+@Api(value = "云海查询车辆违章信息接口")
+@FeignClient(name = "iov-sjjh-servicenode-supplier-10000003")
+public interface VehicleViolationInfoAction {
+    @ApiOperation(value = "查询车辆违章信息接口")
+    @PostMapping("/getVehicleViolationInfo.do")
+    ChannelTypeHandleResponseObject getVehicleViolationInfo(
+            @RequestHeader(name = "channelId") String channelId,
+            @RequestParam(name = "outTime") int outTime,
+            @RequestParam(name = "customBody") String customBody);
+}

+ 129 - 0
src/main/java/info/aspirecn/rdc/iov/sjjh/servicenode/supplier/yh_interface/action/YHChannelAction.java

@@ -0,0 +1,129 @@
+package info.aspirecn.rdc.iov.sjjh.servicenode.supplier.yh_interface.action;
+
+import info.aspirecn.iov.sjjh.commons.lang.ChannelTypeHandleResponseObject;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import io.swagger.annotations.ApiParam;
+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;
+
+
+/**
+ * @Auther jianggang
+ * @Date 2018/10/25 15:22:32
+ * @Description
+ */
+
+@Api(value = "云海通道接口API文档")
+@FeignClient(name = "iov-sjjh-servicenode-supplier-10000003")
+public interface YHChannelAction {
+
+    @ApiOperation(value = "身份证二要素通道")
+    @PostMapping("/checkIdCardForYH.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 = "地理位置校验")
+    @PostMapping("/checkLocationForYH.do")
+    ChannelTypeHandleResponseObject checkLocationForYH(
+            @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 = "云海联通三要素检验接口 ")
+    @PostMapping("/y00-lianTongCheck.do")
+    ChannelTypeHandleResponseObject yhLianTongCheck(
+            @ApiParam(name = "通道id", required = true)
+            @RequestHeader(name = "channelId", required = true) String channelId,
+            @ApiParam(name = "超时时间", required = false)
+            @RequestParam(name = "outTime", required = false) int outTime,
+            @ApiParam(name = "地理位置json串", required = true)
+            @RequestParam(name = "customBody", required = true) String customBody);
+
+
+    @ApiOperation(value = "云海电信三要素检验接口 ")
+    @PostMapping("/y00-dianXinCheck.do")
+    ChannelTypeHandleResponseObject yhDianXinCheck(
+            @ApiParam(name = "通道id", required = true)
+            @RequestHeader(name = "channelId", required = true) String channelId,
+            @ApiParam(name = "超时时间", required = false)
+            @RequestParam(name = "outTime", required = false) int outTime,
+            @ApiParam(name = "地理位置json串", required = true)
+            @RequestParam(name = "customBody", required = true) String customBody);
+
+    @ApiOperation(value = "云海联通在线时长接口 ")
+    @PostMapping("/y00-lianTongOnlineTimeCheck.do")
+    ChannelTypeHandleResponseObject lianTongOnlineTimeCheck(
+            @ApiParam(name = "通道id", required = true)
+            @RequestHeader(name = "channelId", required = true) String channelId,
+            @ApiParam(name = "超时时间", required = false)
+            @RequestParam(name = "outTime", required = false) int outTime,
+            @ApiParam(name = "地理位置json串", required = true)
+            @RequestParam(name = "customBody", required = true) String customBody);
+
+
+    @ApiOperation(value = "云海联通在网状态接口 ")
+    @PostMapping("/y00-lianTongOnlineStatusCheck.do")
+    ChannelTypeHandleResponseObject lianTongOnlineStatusCheck(
+            @ApiParam(name = "通道id", required = true)
+            @RequestHeader(name = "channelId", required = true) String channelId,
+            @ApiParam(name = "超时时间", required = false)
+            @RequestParam(name = "outTime", required = false) int outTime,
+            @ApiParam(name = "地理位置json串", required = true)
+            @RequestParam(name = "customBody", required = true) String customBody);
+
+
+    @ApiOperation(value = "移动在网状态查询")
+    @PostMapping(value = "/checkCMCCMobileOnlineStatus.do")
+    ChannelTypeHandleResponseObject checkCMCCMobileOnlineStatus(
+            @RequestHeader(name = "channelId") String channelId,
+            @RequestParam(name = "outTime") int outTime,
+            @RequestParam(name = "customBody") String customBody);
+
+    @ApiOperation(value = "移动在网时长查询")
+    @PostMapping(value = "/checkCMCCMobileOnlineTime.do")
+    ChannelTypeHandleResponseObject checkCMCCMobileOnlineTime(
+            @RequestHeader(name = "channelId") String channelId,
+            @RequestParam(name = "outTime") int outTime,
+            @RequestParam(name = "customBody") String customBody);
+
+    @ApiOperation(value = "联通手机话费平均评分接口 ")
+    @PostMapping("/y001w1-lianTongCostScore.do")
+    ChannelTypeHandleResponseObject lianTongCostScore(
+            @ApiParam(name = "通道id", required = true)
+            @RequestHeader(name = "channelId", required = true) String channelId,
+            @ApiParam(name = "超时时间", required = false)
+            @RequestParam(name = "outTime", required = false) int outTime,
+            @ApiParam(name = "地理位置json串", required = true)
+            @RequestParam(name = "customBody", required = true) String customBody);
+
+    @ApiOperation(value = "电信月消费金额接口")
+    @PostMapping("/y001x1-dianXinMonthCost.do")
+    ChannelTypeHandleResponseObject dianXinMonthCost(
+            @ApiParam(name = "通道id", required = true)
+            @RequestHeader(name = "channelId", required = true) String channelId,
+            @ApiParam(name = "超时时间", required = false)
+            @RequestParam(name = "outTime", required = false) int outTime,
+            @ApiParam(name = "地理位置json串", required = true)
+            @RequestParam(name = "customBody", required = true) String customBody);
+
+    @ApiOperation(value = "移动手机消费区间查询接口")
+    @PostMapping("/Y002y1-queryMobileConsumeSection.do")
+    ChannelTypeHandleResponseObject queryMobileConsumeSection(
+            @ApiParam(name = "通道id", required = true)
+            @RequestHeader(name = "channelId", required = true) String channelId,
+            @ApiParam(name = "超时时间", required = false)
+            @RequestParam(name = "outTime", required = false) int 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/yh_interface/package-info.java

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

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

@@ -0,0 +1,25 @@
+package info.aspirecn.rdc.iov.sjjh.servicenode.supplier.yh_interface.vo;
+
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import java.io.Serializable;
+
+/**
+ * @Auther jianggang
+ * @Date 2018/10/25 15:27:33
+ * @Description
+ */
+
+@ApiModel(value = "身份证二要素请求JSON串")
+@Data
+public class CustomBodyObject implements Serializable {
+
+    @ApiModelProperty(value = "姓名", required = true)
+    private String name;
+
+    @ApiModelProperty(value = "身份证号", required = true)
+    private String idCode;
+
+}

+ 22 - 0
src/main/java/info/aspirecn/rdc/iov/sjjh/servicenode/supplier/yh_interface/vo/FaceCheckCustomBody.java

@@ -0,0 +1,22 @@
+package info.aspirecn.rdc.iov.sjjh.servicenode.supplier.yh_interface.vo;
+
+import lombok.Data;
+
+/**
+ * @author jianggang
+ * @Date 2019/6/10 14:34:38
+ * @Description
+ */
+
+@Data
+public class FaceCheckCustomBody {
+
+    /**姓名*/
+    private String name;
+
+    /**身份证号*/
+    private String identityCard;
+
+    /**人像照片 base64*/
+    private String photo;
+}

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

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

+ 15 - 0
src/main/java/info/aspirecn/rdc/iov/sjjh/servicenode/supplier/yh_interface/vo/TelecomCustomBody.java

@@ -0,0 +1,15 @@
+package info.aspirecn.rdc.iov.sjjh.servicenode.supplier.yh_interface.vo;
+
+import lombok.Data;
+
+/**
+ * @author jianggang
+ * @Date 2019/6/10 18:01:17
+ * @Description
+ */
+@Data
+public class TelecomCustomBody {
+
+    /**手机号*/
+    private String phone;
+}