package jnpf.base; import jnpf.base.entity.PrintDevEntity; import jnpf.base.fallback.PrintApiFallback; import jnpf.base.model.print.PaginationPrint; import jnpf.base.model.print.PrintOption; import jnpf.utils.FeignName; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestParam; import java.util.List; @FeignClient(name = FeignName.SYSTEM_SERVER_NAME , fallback = PrintApiFallback.class, path = "/printDev") public interface PrintApi { @PostMapping("/getList1") List getList(@RequestBody List ids); /** * 根据id列表获取数据 * * @param ids * @return */ @PostMapping("/getListByIds") List getListByIds(@RequestBody List ids); /** * 获取打印业务列表 * * @param page * @return */ @PostMapping("/getWorkSelector1") List getWorkSelector(@RequestBody PaginationPrint page); /** * 获取打印业务列表 * * @param id * @return */ @GetMapping("/getWorkSelector2") List getWorkSelector(List id); /** * 获取用户创建的所有模板 * * @param creUser * @return */ @GetMapping("/getListByCreUser") List getListByCreUser(@RequestParam("creUser") String creUser); }