package com.izouma.wenlvju.enums;

import cn.hutool.core.bean.BeanUtil;
import com.alibaba.excel.annotation.ExcelProperty;
import com.izouma.wenlvju.domain.BaseEntity;
import com.izouma.wenlvju.domain.GradingOrganization;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "考级机构")
public class GradingOrganizationDTO extends BaseEntity {
    @ExcelProperty(value = "编号")
    private Long id;

    @ExcelProperty(value = "名称")
    private String name;

    public GradingOrganizationDTO(GradingOrganization gradingOrganization) {
        BeanUtil.copyProperties(gradingOrganization, this);
    }
}
