DTO
unknown
java
8 months ago
1.4 kB
4
Indexable
public record GeneratedReportCreateDto(
@NotNull(message = "{generatedReport.reportParamList.notNull}")
Map<Long, String> generatedReportParamList
) {
}
public record GeneratedReportReadDto(
Long id,
ReportSimpleReadDto report
) {
}
public record ReportCreateUpdateDto(
@NotNull(message = "{report.name.notNull}")
String name,
String description,
@NotNull(message = "{report.jasperName.notNull}")
String jasperName,
@NotNull(message = "{report.jasper.notNull}")
byte[] jasper
) {
}
public record ReportParamCreateUpdateDto(
@NotNull(message = "{reportParam.paramType.notBlank}")
EnumParamType paramType,
@NotNull(message = "{reportParam.name.notNull}")
String name,
@NotNull(message = "{reportParam.code.notNull}")
String code,
@NotNull(message = "{reportParam.required.notNull}")
Boolean required
) {
}
@JsonInclude(JsonInclude.Include.NON_NULL)
public record ReportParamReadDto(
Long id,
EnumReadDto paramType,
String name,
String code,
Boolean required
) {
}
public record ReportReadDto(
Long id,
String name,
String description,
String jasperName,
byte[] jasper
) {
}
@JsonInclude(JsonInclude.Include.NON_NULL)
public record ReportSimpleReadDto(
Long id,
String name,
String description,
String jasperName
) {
}
Editor is loading...
Leave a Comment