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

import kr.co.jinwoosi.clfd.clfd.base.model.ClfdBaseModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString(callSuper = true)
public class Dgns extends ClfdBaseModel {
    private Long dgnsId;
    private Long userId;
    private Long skTyId;
    private Integer dgnsCnt;
    private Double odTotalScore;
    private Double srTotalScore;
    private Double pnTotalScore;
    private Double wtTotalScore;
    private Long odDgnsDtlId;
    private Long srDgnsDtlId;
    private Long pnDgnsDtlId;
    private Long wtDgnsDtlId;

    // 진단 상세
    private DgnsDtl odDgnsDtl;
    private DgnsDtl srDgnsDtl;
    private DgnsDtl pnDgnsDtl;
    private DgnsDtl wtDgnsDtl;
    // 피부타입
    private SkTy skTy;
    private Long skTyCount;
    private String skTyCd;

    private String dgnsCntRct; // Y:사용자의 최근 피부테스트 결과 조회

    public List<DgnsDtl> getDgnsDtlList() {
        return new ArrayList<>(Arrays.asList(odDgnsDtl, srDgnsDtl, pnDgnsDtl, wtDgnsDtl));
    }
}
