package jnpf.model.attendance.dto.scheduling;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 预排班请求中单日「预估营业额（元）」，与主表日期列一一对应。
 *
 * @author xiaofeng
 * @create 2026-05-15
 */
@Data
@Schema(description = "预排班按日预估营业额")
public class PreScheduleDayRevenueDto {

    @NotBlank
    @Schema(description = "排班日 yyyy-MM-dd，须落在请求的 startDate～endDate 闭区间内", example = "2026-04-08",
            requiredMode = Schema.RequiredMode.REQUIRED)
    private String date;

    @NotNull
    @DecimalMin(value = "0", inclusive = true)
    @Schema(description = "该日预估营业额（元），可小数；须 ≥ 0（下限可按产品调整）", example = "8200.00",
            requiredMode = Schema.RequiredMode.REQUIRED)
    private BigDecimal revenue;
}
