提交 金山pws接口

This commit is contained in:
zhangqinbin
2023-09-15 14:18:05 +08:00
parent 9fc4188437
commit da34df5a78
4 changed files with 87 additions and 20 deletions

View File

@ -5,9 +5,11 @@ import com.chinaunicom.mall.ebtp.common.base.entity.BaseResponse;
import com.chinaunicom.mall.ebtp.common.log.OperationLogDetail;
import com.chinaunicom.mall.ebtp.common.log.enums.EbtpLogBusinessModule;
import com.chinaunicom.mall.ebtp.common.log.enums.EbtpLogType;
import com.chinaunicom.mall.ebtp.extend.wps.entity.KingSoftFileSaveVo;
import com.chinaunicom.mall.ebtp.extend.wps.service.WpsService;
import com.chinaunicom.mall.ebtp.extend.wps.vo.WpsClientInVo;
import com.chinaunicom.mall.ebtp.extend.wps.vo.WpsResultVo;
import feign.Body;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
@ -108,23 +110,12 @@ public class WpsController {
}
/**
* 沃文档回调-保存文档
* @param token
* @param userId
* @param userName
* @param fileId
* @param fileName
* @param file
* @return
*/
@ApiOperation("沃文档回调-保存文档")
@PostMapping("/kingSoft/file/save")
@OperationLogDetail(businessModule = EbtpLogBusinessModule.OTHER,operationType = EbtpLogType.SELECT,detail = "沃文档回调-保存文档")
public Object saveKSFile(@RequestHeader("X-Weboffice-Token") String token,
@RequestParam("_w_third_user_id") String userId,
@RequestParam("_w_third_user_name") String userName,
@RequestParam("_w_third_file_id") String fileId,
@RequestParam("_w_third_file_name") String fileName,
@RequestPart("file") File file) {
return this.wpsService.saveWpsFile(token,userId,userName,fileId,fileName,file);
public Object saveKSFile(@RequestBody KingSoftFileSaveVo vo) {
return this.wpsService.saveKSFile(vo);
}
}

View File

@ -0,0 +1,24 @@
package com.chinaunicom.mall.ebtp.extend.wps.entity;
import lombok.Data;
@Data
public class KingSoftFileSaveVo {
/**
* 文件唯一标识
*/
public String fileKey;
/**
* 请求流水号
*/
public String transId;
/**
* 订单中心appid
*/
public String sourceRequest;
/**
* 文件内容base64编码
*/
public String fileBody;
}

View File

@ -5,9 +5,11 @@ import com.chinaunicom.mall.ebtp.common.base.service.IBaseService;
import com.chinaunicom.mall.ebtp.extend.blockchain.entity.BlockChainLogVo;
import com.chinaunicom.mall.ebtp.extend.crypconfigure.entity.CrypBean;
import com.chinaunicom.mall.ebtp.extend.crypconfigure.entity.CrypConfigure;
import com.chinaunicom.mall.ebtp.extend.wps.entity.KingSoftFileSaveVo;
import com.chinaunicom.mall.ebtp.extend.wps.vo.WpsClientInVo;
import com.chinaunicom.mall.ebtp.extend.wps.vo.WpsResultVo;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import java.io.File;
import java.util.Map;
@ -25,4 +27,6 @@ public interface WpsService{
Object saveWpsFile(String token, String userId, String userName, String fileId, String fileName, File file);
String getKSWpsFile(String id);
Map<String,String> saveKSFile(KingSoftFileSaveVo vo);
}

File diff suppressed because one or more lines are too long