package jnpf.onlinedev;
|
|
import jnpf.base.ActionResult;
|
import jnpf.base.model.uploadedit.UploadEditLease;
|
import jnpf.base.model.uploadedit.UploadEditSaveCommand;
|
import jnpf.utils.FeignName;
|
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.web.bind.annotation.*;
|
|
@FeignClient(name = FeignName.VUSUALDEV_SERVER_NAME, path = "/Internal/visualdev/upload-edit", contextId = "uploadEditApi")
|
public interface UploadEditApi {
|
@PostMapping("/status-access")
|
ActionResult<Boolean> canReadStatus(@RequestParam("tenantId") String tenantId,
|
@RequestParam("ownerId") String ownerId, @RequestParam("leaseId") String leaseId);
|
|
@PostMapping("/lease")
|
ActionResult<UploadEditLease> lease(@RequestParam("tenantId") String tenantId,
|
@RequestParam("ownerId") String ownerId, @RequestParam("leaseId") String leaseId);
|
|
@PostMapping("/save")
|
ActionResult<Boolean> save(@RequestBody UploadEditSaveCommand command);
|
}
|