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

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

import javax.validation.constraints.NotNull;

/**
 * @author OTTO
 */
@Data
@ApiModel("专项项目分类搜索对象")
public class ZoneSpecialProjectTypeSearchVo {
    @ApiModelProperty(value = "专项项目分类名称")
    private String name;
    @ApiModelProperty(value = "所属专区", required = true)
    @NotNull
    private Long zoneId;


    public ZoneSpecialProjectType toZoneSpecialProjectType() {
        ZoneSpecialProjectType target = new ZoneSpecialProjectType();
        BeanUtils.copyProperties(this, target);
        return target;
    }
}
