| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- package com.ruoyi.system.service;
-
- import com.alibaba.fastjson.JSONObject;
- import com.ruoyi.common.enums.AttachmentOperateTypeEnum;
- import com.ruoyi.common.enums.DocumentTypeEnum;
- import com.ruoyi.wisdomarbitrate.domain.vo.mscase.MsCaseFileInfo;
- import com.ruoyi.wisdomarbitrate.domain.vo.mscase.MsCaseStatusInfo;
-
- import java.io.File;
-
- public interface BeiMingInterface {
- /**
- * 1.获取北明接口令牌token对象
- *
- * @param userName
- * @param password
- * @param times
- * @return
- */
- String getApiToken(String userName, String password, Long times);
-
-
- /**
- * 2.提交案件状态信息
- *
- * @param token 令牌
- * @param abutmentId 第三方平台案件唯一标识
- * @param msCaseStatusInfo 案件状态信息
- * @return
- */
- JSONObject submitCaseStatusInfo(String token, String abutmentId, String syncSource, MsCaseStatusInfo msCaseStatusInfo);
-
- /**
- * 3.上传附件
- *
- * @param file
- * @return
- */
- JSONObject uploadFile(File file, String token, String syncSource);
-
- /**
- * 4.同步附件信息
- *
- * @param action
- * @param caseNo
- * @param msCaseFileInfo
- * @return
- */
- JSONObject syncAttachmentInfo(String token, String syncSource, String action, String caseNo, MsCaseFileInfo msCaseFileInfo);
-
- /**
- * 推送案件状态信息(调解系统推送案件状态时调用)
- *
- * @param username 用户名
- * @param password 密码
- * @param caseNo 案件编号
- * @param statusCode 案件状态编码
- * @param caseClosureExplanation 案件状态描述(或结案信息)
- * @return
- */
- JSONObject pushCaseStatusInfo(String username, String password, String caseNo, String statusCode, String caseClosureExplanation);
-
- /**
- * 推送案件附件信息(调解系统推送案件附件信息时调用)
- *
- * @param username 用户名
- * @param password 密码
- * @param file 文件
- * @param abutmentId 调解系统文件Id
- * @param syncSource 用户名
- * @param caseNo 案件编号
- * @return
- */
- MsCaseFileInfo pushAttachmentInfo(String username, String password, File file, String syncSource, String caseNo, AttachmentOperateTypeEnum operateTypeEnum, DocumentTypeEnum documentTypeEnum);
-
- /**
- * 删除附件
- * @param file
- * @param caseNo
- * @return
- */
- public JSONObject deleteAttachmentInfo( String caseNo,String fileId,String fileName);
- }
|