package com.njcn.rdms.module.project.controller.admin.performance.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

@Schema(description = "管理后台 - 创建绩效表 Request VO")
@Data
public class PerformanceSheetCreateReqVO {

    @Schema(description = "绩效月份，格式 yyyy-MM", requiredMode = Schema.RequiredMode.REQUIRED, example = "2026-06")
    @NotBlank(message = "绩效月份不能为空")
    @Pattern(regexp = "^\\d{4}-\\d{2}$", message = "绩效月份格式必须为 yyyy-MM")
    private String periodMonth;

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