package kr.co.jinwoosi.clfd.clfd.dgns.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class DgnsDtl {
    private Long dgnsDtlId;
    private String dgnsTyCd;
    private String dgnsCont;
    private Double dgnsMin;
    private Double dgnsMax;
    private String dgnsSkTyDtlCd;
    private String dgnsSkTyDtlContKr;
    private String dgnsSkTyDtlContEn;

    public boolean isBetweenWithDgnsDtl(Double totalDgnsScore) {
        return dgnsMin <= totalDgnsScore && totalDgnsScore <= dgnsMax;
    }
}
