package jnpf.model.attendance.vo.scheduling;

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

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 预排班行内预览：岗位—人员。
 *
 * @author xiaofeng
 * @create 2026-05-13
 */
@Data
@Schema(description = "预排班岗位—人员预览")
public class PreSchedulePostVo {

    @Schema(description = "岗位 ID，建议与岗位主数据一致", example = "post_store_manager")
    private String id;

    @Schema(description = "岗位名称", example = "店长")
    private String name;

    @NotNull
    @Schema(description = "该岗位当日人数（界面「N 人」）", example = "1", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer count;

    @Schema(description = "人员列表，无数据时 []")
    private List<PreScheduleUserVo> users;
}
