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;

/**
 * 项目管理企业对象 pms_enterprise
 *
 * @author otto
 * @date 2023-10-10
 */
@Data
@ApiModel("企业更新对象")
public class PmsEnterpriseUpdateVo {
    /**
     * 企业标识
     */
    @ApiModelProperty(value = "企业标识", hidden = true)
    private String enterpriseIdentifier;
    /**
     * 企业名
     */
    @ApiModelProperty(value = "企业名")
    private String enterpriseName;

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

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

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

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