package com.microservices.pms.enterprise.domain.vo;

import com.microservices.common.core.utils.bean.BeanUtils;
import com.microservices.pms.enterprise.domain.PmsEnterprise;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 项目管理企业对象 pms_enterprise
 * 
 * @author otto
 * @date 2023-10-10
 */
@Data
@ApiModel("企业输入对象")
public class PmsEnterpriseInputVo
{
    /** 企业名 */
    @ApiModelProperty(value = "企业名")
    @NotNull
    private String enterpriseName;

    /** 企业描述 */
    @ApiModelProperty(value = "企业描述")
    @NotNull
    private String enterpriseDescription;

    /** 企业标识 */
    @ApiModelProperty(value = "企业标识")
    @NotNull
    private String enterpriseIdentifier;

    /** 企业头像 */
    @ApiModelProperty(value = "企业头像地址")
    @NotNull
    private String enterpriseImage;

    /**
     * 企业地址
     */
    @ApiModelProperty(value = "企业地址")
    private String enterpriseLocation;

    public PmsEnterprise toPmsEnterprise(){
        PmsEnterprise target = new PmsEnterprise();
        BeanUtils.copyProperties(this, target);
        return target;
    }
}
