done all the implementations of each parts yet

This commit is contained in:
Aboubacar SANGARE
2025-09-25 13:22:35 +00:00
parent 4b7b8649d3
commit 9ceaec5bec
42 changed files with 2816 additions and 136 deletions

View File

@@ -0,0 +1,28 @@
package com.pmumali.plr.dtos;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;
import com.pmumali.plr.enums.PariType;
import lombok.Builder;
@Builder
public record GainViewDto(
Long pariId,
Long courseId,
String courseNom,
PariType pariType,
String pariSousType, // e.g. "QP_ORDRE", "MULTI6" (optional)
String bettorRef,
BigDecimal mise,
BigDecimal gain, // official or 0 when provisional
String payoutMode, // "OFFICIAL" or "PROVISIONAL"
String numeroPlus, // for Quinté+ tickets (if any)
List<GainViewDto.Selection> selections,
LocalDateTime createdAt
) {
@Builder
public static record Selection(Long chevalId, String nomCheval, Integer position) {}
}