package com.microservices.zone.specialProject.domain.vo;

import com.microservices.common.core.utils.bean.BeanUtils;
import com.microservices.zone.specialProject.domain.ZoneSpecialProjectReport;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @author OTTO
 */
@Data
@ApiModel("专项项目会议报告更新对象")
public class ZoneSpecialProjectReportUpdateVo {
    @ApiModelProperty(value = "专项项目会议报告id", required = true)
    @NotNull
    private Long id;
    @ApiModelProperty(value = "会议报告名称")
    @Size(max = 300, message = "会议报告名称长度不能超过300个字符")
    private String name;
    @ApiModelProperty(value = "会议报告报告人")
    @Size(max = 100, message = "会议报告报告人长度不能超过100个字符")
    private String author;
    @ApiModelProperty(value = "会议报告链接")
    @Size(max = 300, message = "会议报告链接长度不能超过300个字符")
    private String link;
    @ApiModelProperty(value = "会议报告备注")
    @Size(max = 300, message = "会议报告备注长度不能超过300个字符")
    private String remark;
    @ApiModelProperty(value = "顺序")
    private Integer order;


    public ZoneSpecialProjectReport toZoneSpecialProjectReport() {
        ZoneSpecialProjectReport target = new ZoneSpecialProjectReport();
        BeanUtils.copyProperties(this, target);
        return target;
    }
}