刘光辉
6 小时以前 06f314545ac3514d7ce28939920866ae8188d31c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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);
}