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

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

import javax.validation.constraints.NotNull;

@Data
@ApiModel("专项项目关联关系搜索对象")
public class ZoneSpecialProjectRelevancySearchVo {

    @ApiModelProperty(value = "专项项目id", required = true)
    @NotNull
    private Long specialProjectId;
    @ApiModelProperty(value = "专项项目关联类型")
    private String type;


    public ZoneSpecialProjectRelevancy toZoneSpecialProjectRelevancySearchVo() {
        ZoneSpecialProjectRelevancy target = new ZoneSpecialProjectRelevancy();
        BeanUtils.copyProperties(this, target);
        return target;
    }
}