package jnpf.model.attendance.event;

import jnpf.enums.attendance.TriggerSceneEnum;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @author shitou
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class StatisticsSingleDto implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 租户Id
     */
    @NotBlank(message = "租户Id不能为空")
    private String tenantId;
    /**
     * 考勤组Id
     */
    @NotBlank(message = "考勤组Id不能为空")
    private String groupId;
    /**
     * 用户Id
     */
    @NotBlank(message = "用户Id不能为空")
    private String userId;
    /**
     * 日期
     */
    @NotNull(message = "日期不能为空")
    private Date day;
    /**
     * 出勤类型
     */
    @NotNull(message = "出勤类型不能为空")
    private TriggerSceneEnum triggerSceneEnum = TriggerSceneEnum.MANUAL_TRIGGER;
}
