刘光辉
5 小时以前 06f314545ac3514d7ce28939920866ae8188d31c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package jnpf.lims.api;
 
import jnpf.base.ActionResult;
import jnpf.lims.api.model.ElnSourceReference;
import jnpf.utils.LimsFeignName;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
 
import java.util.List;
 
@FeignClient(name = LimsFeignName.LIMS_SERVER_NAME, contextId = "elnSourceCatalogApi")
public interface ElnSourceCatalogApi {
    @GetMapping("/eln/sources/references")
    ActionResult<List<ElnSourceReference>> references();
 
    @GetMapping("/eln/sources/references/{code}/{revision}")
    ActionResult<ElnSourceReference> reference(@PathVariable("code") String code, @PathVariable("revision") int revision);
}