package jnpf.model.attendance.dto;

import lombok.Getter;
import lombok.Setter;

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

/**
 * 加班规则dto
 *
 * @author yanwenfu
 * @create 2025-09-17
 */
@Getter
@Setter
public class OvertimeRuleDto {

    /** 规则名称 */
    @NotEmpty(message = "请填写规则名称")
    private String ruleName;

    /** 适配范围(0: 全部, 1: 指定组织/成员) */
    @NotNull(message = "请选择适配范围")
    private Integer ruleScope;

    /** 组织列表 */
    private List<String> organizeList = new ArrayList<>();

    /** 成员列表 */
    private List<String> userIdList = new ArrayList<>();

    /** 规则列表 */
    private List<OvertimeRuleDetailDto> list;
}
