package jnpf.eln;
|
|
import jnpf.base.ActionResult;
|
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestParam;
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
/** OnlyOffice 能力服务调用的记录级准入探针。 */
|
@FeignClient(name = "jnpf-eln", path = "/Internal/eln/recordFill", contextId = "recordFillApi")
|
public interface RecordFillApi {
|
|
@PostMapping("/access")
|
ActionResult<Boolean> canFill(@RequestParam("tenantId") String tenantId,
|
@RequestParam("userId") String userId,
|
@RequestParam("recordId") String recordId,
|
@RequestParam("fileId") String fileId);
|
|
@PostMapping("/preflight")
|
ActionResult<RecordFillSaveOperation> preflight(@RequestBody RecordFillSaveCommand command);
|
|
@PostMapping("/commit")
|
ActionResult<RecordFillSaveOperation> commit(@RequestBody RecordFillSaveCommand command);
|
|
@PostMapping("/abort")
|
ActionResult<RecordFillSaveOperation> abort(@RequestBody RecordFillSaveCommand command);
|
|
@PostMapping("/saveStatus")
|
ActionResult<RecordFillSaveOperation> saveStatus(@RequestParam("tenantId") String tenantId,
|
@RequestParam("operationCode") String operationCode);
|
}
|