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

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

import javax.validation.constraints.NotNull;

/**
 * @author otto
 */

@Data
@ApiModel("资源审核对象")
public class ZoneResourceAuditVo {

    @ApiModelProperty(value = "资源Id", required = true)
    @NotNull
    private Long id;

    @ApiModelProperty(value = "审核状态（1：审核通过 2：审核不通过）", required = true)
    @NotNull
    private String auditStatus;
    @ApiModelProperty(value = "备注")
    private String remark;

    public ZoneResourceUpdateVo toZoneResourceUpdateVo() {
        ZoneResourceUpdateVo target = new ZoneResourceUpdateVo();
        BeanUtils.copyProperties(this, target);
        return target;
    }
}
