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

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

import javax.validation.constraints.NotNull;

/**
 * @author otto
 */

@Data
@ApiModel("资源类别更新对象")
public class ZoneResourceTypeUpdateVo {

    @ApiModelProperty(value = "资源类别Id", required = true)
    @NotNull
    private Long id;
    @ApiModelProperty(value = "资源类别名称")
    private String name;
    @ApiModelProperty(value = "包含文件内容类型列表")
    private String fileTypeList;
    @ApiModelProperty(value = "顺序")
    private Integer order;

    public ZoneResourceType toZoneResourceType() {
        ZoneResourceType target = new ZoneResourceType();
        BeanUtils.copyProperties(this, target);
        return target;
    }
}
