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

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

import javax.validation.constraints.NotNull;

@Data
@ApiModel("专项项目搜索对象")
public class ZoneSpecialProjectSearchVo {

    @ApiModelProperty(value = "所属专区", required = true)
    @NotNull
    private Long zoneId;
    @ApiModelProperty(value = "专项项目名称")
    private String name;
    @ApiModelProperty(value = "专项项目类型Id")
    private Long typeId;


    public ZoneSpecialProject toZoneSpecialProjectSearchVo() {
        ZoneSpecialProject target = new ZoneSpecialProject();
        BeanUtils.copyProperties(this, target);
        return target;
    }
}