mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 21:02:08 +08:00
1、报表接口入参检查完善;2、executor-api、report-api相互依赖移除;
This commit is contained in:
-26
@@ -1,26 +0,0 @@
|
||||
package com.cf.imes.module.report.api.template;
|
||||
|
||||
import com.cf.imes.module.report.api.template.dto.ReportTemplateGenerateReqDTO;
|
||||
import com.cf.imes.module.report.enums.ApiConstants;
|
||||
import feign.Response;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
|
||||
/**
|
||||
* 报表模板feign service
|
||||
*
|
||||
* @author Gqr
|
||||
* @since 2024/7/19 11:31
|
||||
*/
|
||||
@FeignClient(name = ApiConstants.NAME) // TODO 晨丰:fallbackFactory =
|
||||
@Tag(name = "RPC 服务 - 报表模板")
|
||||
public interface ReportTemplateApi {
|
||||
String PREFIX = ApiConstants.PREFIX + "/template";
|
||||
|
||||
@PostMapping(value = PREFIX + "/export")
|
||||
@Operation(summary = "下载模板excel")
|
||||
Response excel(@RequestBody ReportTemplateGenerateReqDTO reqDTO);
|
||||
}
|
||||
-26
@@ -1,26 +0,0 @@
|
||||
package com.cf.imes.module.report.api.template.dto;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author Gqr
|
||||
* @since 2024/7/19 15:03
|
||||
*/
|
||||
@Schema(description = "RPC 服务 - 报表模板生成 Request DTO")
|
||||
@Data
|
||||
public class ReportTemplateGenerateReqDTO {
|
||||
@Schema(description = "模板id")
|
||||
@NotNull(message = "模板id不能为空")
|
||||
private Long templateId;
|
||||
|
||||
@Schema(description = "参数集合")
|
||||
private Map<String, Object> params;
|
||||
|
||||
@Schema(description = "生成文件类型,pdf/word/excel")
|
||||
@NotNull(message = "生成文件类型不能为空")
|
||||
private String producerType;
|
||||
}
|
||||
Reference in New Issue
Block a user