package jnpf.model.attendance.model;

import jnpf.enums.attendance.AttendanceNoticeEnum;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.Date;

/**
 * 缺卡/缺勤消息model
 *
 * @author yanwenfu
 * @create 2024-08-13
 */
@Getter
@Setter
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class RemindClockInNoticeModel extends AttendanceNoticeModel {

    /** 工作时间(上/下班) */
    private Date workTime;
    /** 打卡类型(1: 上班, 2: 下班) */
    private Integer clockInType;

    public void setAttendanceNoticeModel(String userId, String groupId, String tenantId, Date day, AttendanceNoticeEnum attendanceNoticeEnum) {
        super.setUserId(userId);
        super.setGroupId(groupId);
        super.setTenantId(tenantId);
        super.setDay(day);
        super.setAttendanceNoticeEnum(attendanceNoticeEnum);
    }
}
