package com.yimeng.okr.dto.request;

import jakarta.validation.constraints.NotNull;
import lombok.Data;
import java.util.List;

@Data
public class SubmitScoreRequest {
    @NotNull private Long periodId;
    private List<KrScoreItem> krScores;
    private List<DimScoreItem> dimensions;
    private Double bonus;
    private Double penalty;
    private String comment;

    @Data
    public static class KrScoreItem {
        private Long krId;
        private String title;
        private Double score;
    }

    @Data
    public static class DimScoreItem {
        private Long dimensionId;
        private String name;
        private Double maxScore;
        private Double score;
        private String description;
    }
}
