package jnpf.dms;
|
|
import jnpf.base.ActionResult;
|
import jnpf.dmsEntity.storage.approval.DmsApprovedBatch;
|
import jnpf.dmsEntity.storage.form.DmsApprovedRegistrationForm;
|
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.RequestHeader;
|
|
/** Calls the existing file registration route; no additional HTTP endpoint. */
|
@FeignClient(name = "jnpf-file", contextId = "dmsWorkflowFile", path = "/Dms")
|
public interface DmsWorkflowFileApi {
|
@PostMapping("/workflowFileRegister")
|
ActionResult<DmsApprovedBatch> register(@RequestHeader("X-DMS-Service-Id") String serviceId,
|
@RequestBody DmsApprovedRegistrationForm form);
|
}
|