刘光辉
5 小时以前 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.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;
 
@FeignClient(name = "jnpf-eln", path = "/Internal/eln/template",
        contextId = "templateEditabilityApi")
public interface TemplateEditabilityApi {
 
    @PostMapping("/editability")
    ActionResult<Boolean> editable(@RequestParam("tenantId") String tenantId,
                                   @RequestParam("templateId") String templateId,
                                   @RequestParam("fileId") String fileId);
 
    @PostMapping("/annotationAccess")
    ActionResult<Boolean> canAnnotate(@RequestParam("tenantId") String tenantId,
                                      @RequestParam("userId") String userId,
                                      @RequestParam("templateId") String templateId,
                                      @RequestParam("fileId") String fileId);
}