package jnpf.bizcommon.onlyoffice.controller; import cn.dev33.satoken.same.SaSameUtil; import jnpf.base.ActionResult; import jnpf.bizcommon.onlyoffice.service.impl.DmsOnlyOfficeDownloadService; import jnpf.onlyoffice.DmsDownloadPdfApi; import jnpf.onlyoffice.DmsDownloadPdfRequest; import lombok.RequiredArgsConstructor; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RestController; @RestController @RequiredArgsConstructor public class DmsOnlyOfficeDownloadController implements DmsDownloadPdfApi { private final DmsOnlyOfficeDownloadService service; @Override @PostMapping("/Internal/onlyoffice/dms-download/render") public ActionResult render(@RequestBody DmsDownloadPdfRequest request) { SaSameUtil.checkCurrentRequestToken(); return ActionResult.success(service.render(request)); } }