feat: wps对接修复
parent
ca3c003587
commit
39549723b1
|
|
@ -7,6 +7,7 @@ import io.swagger.annotations.ApiOperation;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.qinan.safetyeval.client.api.WpsApi;
|
import org.qinan.safetyeval.client.api.WpsApi;
|
||||||
import org.qinan.safetyeval.client.co.WpsDocOpenCO;
|
import org.qinan.safetyeval.client.co.WpsDocOpenCO;
|
||||||
|
import org.qinan.safetyeval.infrastructure.dataobject.base.Req;
|
||||||
import org.springframework.http.MediaType;
|
import org.springframework.http.MediaType;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
|
@ -129,9 +130,9 @@ public class H5OpenController {
|
||||||
|
|
||||||
@ApiOperation("始终新建一份空白docx")
|
@ApiOperation("始终新建一份空白docx")
|
||||||
@PostMapping(value = "/doc/create", produces = MediaType.APPLICATION_JSON_VALUE)
|
@PostMapping(value = "/doc/create", produces = MediaType.APPLICATION_JSON_VALUE)
|
||||||
public SingleResponse<WpsDocOpenCO> createBlank(@RequestParam("docxUrl") String docxUrl) {
|
public SingleResponse<WpsDocOpenCO> createBlank(@RequestBody Req<String> req) {
|
||||||
log.info("wps create blank");
|
log.info("wps create blank");
|
||||||
return SingleResponse.of(wpsApi.createBlank(docxUrl));
|
return SingleResponse.of(wpsApi.createBlank(req.getData()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("模版文档(固定)")
|
@ApiOperation("模版文档(固定)")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue