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

import com.microservices.common.core.utils.bean.BeanUtils;
import com.microservices.system.api.domain.SysFileInfo;
import com.microservices.zone.resource.domain.ZoneResourceType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author otto
 */

@Data
@ApiModel("资源文件对象")
public class ZoneResourceFileVo extends SysFileInfo {
    @ApiModelProperty(value = "资源类型列表")
    private ZoneResourceType zoneResourceType;

    public ZoneResourceFileVo(ZoneResourceType zoneResourceType, SysFileInfo sysFileInfo) {
        this.zoneResourceType = zoneResourceType;
        BeanUtils.copyProperties(sysFileInfo, this);
    }
}
