jiangping
2023-12-18 0fa7bf8b72608fa96bf402af20de7fe65866774c
海康接口对接开发
已修改3个文件
50 ■■■■■ 文件已修改
server/dmvisit_service/src/main/java/com/doumee/core/haikang/model/HKConstants.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
server/dmvisit_service/src/main/java/com/doumee/core/haikang/model/HKTools.java 44 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
server/dmvisit_service/src/main/java/com/doumee/dao/business/model/Empower.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
server/dmvisit_service/src/main/java/com/doumee/core/haikang/model/HKConstants.java
@@ -58,6 +58,10 @@
        String visitPicture= "/api/visitor/v1/record/pictures";//获取访客记录中的图片
        String devicePicture= "/api/acs/v1/event/pictures";//获取门禁事件的图片
        String carPicture= "/api/pms/v1/image";//查询车辆抓拍图片
        String taskAddition= "/api/acps/v1/authDownload/task/addition";//创建下载任务_根据人员与设备通道指定下载
        String taskDataAddition= "/api/acps/v1/authDownload/data/addition";//下载任务中添加数据_根据人员与设备通道指定下载
        String taskStart= "/api/acps/v1/authDownload/task/start";//开始下载任务
        String taskProgress= "/api/acps/v1/authDownload/task/progress";//查詢下载任务进度
    }
    /**
server/dmvisit_service/src/main/java/com/doumee/core/haikang/model/HKTools.java
@@ -455,6 +455,50 @@
        saveInterfaceLog(body,result,path);
        return  result;
    }
    /**
     *    创建一卡通权限下载任务
     * @param body
     * @return
     */
    public static String taskAddition(String body) {
        Map<String, String> path = getPath(HKConstants.InterfacePath.taskAddition);
        String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post请求application/json类型参数
        saveInterfaceLog(body,result,path);
        return  result;
    }
    /**
     *    查询一卡通权限下载任务进度
     * @param body
     * @return
     */
    public static String taskProgress(String body) {
        Map<String, String> path = getPath(HKConstants.InterfacePath.taskProgress);
        String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post请求application/json类型参数
        saveInterfaceLog(body,result,path);
        return  result;
    }
    /**
     *    一卡通权限下载任务中添加数据_根据人员与设备通道指定下载
     * @param body
     * @return
     */
    public static String taskDataAddition(String body) {
        Map<String, String> path = getPath(HKConstants.InterfacePath.taskDataAddition);
        String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post请求application/json类型参数
        saveInterfaceLog(body,result,path);
        return  result;
    }
    /**
     *    一卡通开始下载任务
     * @param body
     * @return
     */
    public static String taskStart(String body) {
        Map<String, String> path = getPath(HKConstants.InterfacePath.taskStart);
        String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", null);// post请求application/json类型参数
        saveInterfaceLog(body,result,path);
        return  result;
    }
server/dmvisit_service/src/main/java/com/doumee/dao/business/model/Empower.java
@@ -51,6 +51,8 @@
    @ApiModelProperty(value = "人员编码", example = "1")
    private Integer memberId;
    @ApiModelProperty(value = "设备编码", example = "1")
    private Integer deviceId;