package com.izouma.wenlvju.dto;

import cn.hutool.core.bean.BeanUtil;
import com.izouma.wenlvju.domain.ExamRoom;
import com.izouma.wenlvju.domain.Record;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel(value = "考场")
public class ExamRoomDTO {

    private String name;

    private String deviceSerial;

    private String validateCode;

    private String address;

    private Long recordId;

    private Integer status;

    private String organizer;

    private String examinationAddress;

    private String examOwner;

    private String examOwnerPhone;

    public ExamRoomDTO(ExamRoom examRoom, Record record) {
        BeanUtil.copyProperties(examRoom, this);
        BeanUtil.copyProperties(record, this);
    }
}
