刘光辉
2 小时以前 06f314545ac3514d7ce28939920866ae8188d31c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package jnpf.onlyoffice;
 
import jnpf.base.ActionResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
 
/** ELN 模板发布与 OnlyOffice 编辑/保存之间的内部互斥契约。 */
@FeignClient(name = "jnpf-biz-common", path = "/Internal/onlyoffice/template-publish",
        contextId = "templatePublishFenceApi")
public interface TemplatePublishFenceApi {
 
    @PostMapping("/acquire")
    ActionResult<String> acquire(@RequestParam("tenantId") String tenantId,
                                 @RequestParam("templateId") String templateId,
                                 @RequestParam("fileId") String fileId,
                                 @RequestParam("fileType") String fileType);
 
    @PostMapping("/release")
    ActionResult<Boolean> release(@RequestParam("tenantId") String tenantId,
                                  @RequestParam("templateId") String templateId,
                                  @RequestParam("fileId") String fileId,
                                  @RequestParam("fileType") String fileType,
                                  @RequestParam("token") String token);
}