dev add violation link
Test Workflow / test (push) Successful in 4s

This commit is contained in:
vladp
2026-04-07 15:35:32 +07:00
parent 9e81b45922
commit 29ed74745f
6 changed files with 19 additions and 15 deletions
@@ -1,5 +1,6 @@
package ru.soune.nocopy.dto.complaint;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import ru.soune.nocopy.entity.complaint.LawCasePriority;
import ru.soune.nocopy.entity.complaint.LawCaseType;
@@ -26,5 +27,7 @@ public class LawCaseRequest {
private LawCaseType filterType;
private String filterLawyer;
private LawCasePriority filterPriority;
@JsonProperty("violation_id")
private Long violationId;
}
@@ -26,6 +26,7 @@ public class LawCaseResponse {
private int pageSize;
private long totalElements;
private int totalPages;
private long violationId;
private List<LawCaseResponse> content;
public static LawCaseResponse fromEntity(LawCase lawCase) {
@@ -39,6 +40,7 @@ public class LawCaseResponse {
.lawyer(lawCase.getLawyer())
.createdAt(lawCase.getCreatedAt())
.updatedAt(lawCase.getUpdatedAt())
.violationId(lawCase.getViolationId())
.build();
}
}