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;

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

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

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

    @ApiModelProperty(value = "联系人")
    private String contact;

    @ApiModelProperty(value = "联系电话")
    private String phone;

    @ApiModelProperty(value = "考级机构")
    private String gradingOrganization;

    @ApiModelProperty(value = "承办单位")
    private String organization;

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

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

    @ApiModelProperty(value = "活动日期")
    private LocalDate date;

    @ApiModelProperty(value = "编导姓名")
    private String writerDirector;

    @ApiModelProperty(value = "联系电话")
    private String writerPhone;

    private SignedIn signedIn;

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