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

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

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Schema(description = "管理后台 - 项目角色人员新增/修改 Request VO")
@Data
public class ProjectRolePersonSaveReqVO {

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

    @Schema(description = "员工 ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "员工 ID 不能为空")
    private Long employeeId;

    @Schema(description = "员工姓名，后端根据 employeeId 回填", example = "张三")
    @Size(max = 64, message = "员工姓名长度不能超过 64 个字符")
    private String employeeName;

    @Schema(description = "排序号", example = "1")
    private Integer sortNo;

}
