package cn.iocoder.lyzsys.module.tjt.controller.admin.specialtyrolesplit.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

@Schema(description = "管理后台 - 页面5角色比例保存 Item Request VO")
@Data
public class SpecialtyRoleSplitSaveItemReqVO {

    @Schema(description = "专业编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "arch")
    @NotBlank(message = "专业编码不能为空")
    private String specialtyCode;

    @Schema(description = "角色编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "director")
    @NotBlank(message = "角色编码不能为空")
    private String roleCode;

    @Schema(description = "角色比例", requiredMode = Schema.RequiredMode.REQUIRED, example = "0.1000")
    @NotNull(message = "角色比例不能为空")
    private BigDecimal roleRatio;

    @Schema(description = "人员配置列表")
    @Valid
    private List<SpecialtyRolePersonSaveReqVO> persons;

}
