package com.izouma.wenlvju.dto;

import cn.hutool.core.bean.BeanUtil;
import com.alibaba.excel.annotation.ExcelProperty;
import com.izouma.wenlvju.domain.performance.Programme;
import com.izouma.wenlvju.enums.SignedIn;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class ProgrammeScoreDTO {
    private Long id;

    @ApiModelProperty(value = "分组")
    private String arrangeName;

    @ApiModelProperty(value = "活动名称")
    private String performance;

    @ApiModelProperty(value = "节目名称")
    private String name;

    @ApiModelProperty(value = "参赛专业")
    private String specialty;

    @ApiModelProperty(value = "参赛人数")
    private long quantity;

    @ApiModelProperty(value = "参演人员")
    private List<String> participant;

    private SignedIn signedIn;

    private Double score;

    private Double myScore;

    private String remark;

    private boolean second;

    public ProgrammeScoreDTO(Programme programme) {
        BeanUtil.copyProperties(programme, this);
    }
}
