package jnpf.model.attendance.vo.attendance;

import jnpf.enums.attendance.AttendanceNoticeEnum;
import jnpf.model.attendance.model.AttendanceNoticeModel;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @Author huanglinpan
 * @Date 2024/8/12 10:45
 * @Version 1.0 （版本号）
 */
@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
public class ApproveImVo extends AttendanceNoticeModel implements Serializable {

    private static final long serialVersionUID = 291819507999982630L;

    /** 必传 接收消息的用户集合 */
    private List<String> userIds;

    /** 非必传 触发点 不传默认为审批  详见 AttendanceNoticeEnum */
    private Integer type;

    /** 必传 审批相关的数据实体 */
    private ApproveBaseImVo approveBaseImVo = new ApproveBaseImVo();

    public ApproveImVo(String tenantId, AttendanceNoticeEnum noticeEnum) {

        super.setTenantId(tenantId);
        super.setAttendanceNoticeEnum(noticeEnum);
    }
}
