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

import com.microservices.pms.productLibrary.domain.LayoutPolicyEnum;
import com.microservices.pms.productLibrary.domain.VersionPolicyEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 制品库-仓库对象 pms_product_library_repositories
 *
 * @author otto
 * @date 2024-06-20
 */
@Data
@ApiModel("制品库Maven对象")
public class NexusRepoMavenVo {
    @ApiModelProperty(value = "版本策略")
    @NotNull(message = "版本策略不能为空")
    private String versionPolicy = VersionPolicyEnum.RELEASE.getKey();
    @ApiModelProperty(value = "部署策略")
    @NotNull(message = "部署策略不能为空")
    private String layoutPolicy = LayoutPolicyEnum.PERMISSIVE.getKey();
}
