|
|
|
@ -17,11 +17,14 @@
|
|
|
|
|
package com.logpm.basic.feign; |
|
|
|
|
|
|
|
|
|
import com.logpm.basic.entity.BasicPrintTemplateEntity; |
|
|
|
|
import org.springblade.common.constant.ModuleNameConstant; |
|
|
|
|
import org.springblade.core.mp.support.BladePage; |
|
|
|
|
import org.springframework.cloud.openfeign.FeignClient; |
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
|
import org.springframework.web.bind.annotation.RequestParam; |
|
|
|
|
|
|
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 打印模板信息 Feign接口类 |
|
|
|
|
* |
|
|
|
@ -29,11 +32,11 @@ import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
|
* @since 2023-05-15 |
|
|
|
|
*/ |
|
|
|
|
@FeignClient( |
|
|
|
|
value = "blade-basicPrintTemplate" |
|
|
|
|
value = ModuleNameConstant.APPLICATION_BASIC_NAME+"-tjj" |
|
|
|
|
) |
|
|
|
|
public interface IBasicPrintTemplateClient { |
|
|
|
|
|
|
|
|
|
String API_PREFIX = "/client"; |
|
|
|
|
String API_PREFIX = "template/client"; |
|
|
|
|
String TOP = API_PREFIX + "/top"; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -44,6 +47,17 @@ public interface IBasicPrintTemplateClient {
|
|
|
|
|
* @return BladePage |
|
|
|
|
*/ |
|
|
|
|
@GetMapping(TOP) |
|
|
|
|
BladePage<BasicPrintTemplateEntity> top(@RequestParam("current") Integer current, @RequestParam("size") Integer size); |
|
|
|
|
BladePage<BasicPrintTemplateEntity> templateTop(@RequestParam("current") Integer current, @RequestParam("size") Integer size); |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 获取模板信息 |
|
|
|
|
* @param tenantId 租户编号 |
|
|
|
|
* @param templateType 模板类型 |
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
@GetMapping(TOP+"/getTemplateLink") |
|
|
|
|
BasicPrintTemplateEntity getTemplate(@RequestParam("tenantId") String tenantId, @RequestParam("templateType") String templateType); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|