package top.continew.admin.business.model.query;

import lombok.Data;

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

import top.continew.starter.data.core.annotation.Query;
import top.continew.starter.data.core.enums.QueryType;
import java.io.Serial;
import java.io.Serializable;
import java.time.*;

/**
 * 签到查询条件
 *
 * @author jiay
 * @since 2025/06/26 10:24
 */
@Data
@Schema(description = "签到查询条件")
public class SignInQuery implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;
    /**
     * 用户id
     */
    @Schema(description = "用户id")
    @Query(type = QueryType.EQ)
    private Long userId;
    private String userName;

    /**
     * 学号
     */
    private String stuNo;

    /**
     * 手机
     */
    @Schema(description = "手机")
    private String phone;
    /**
     * 课程id
     */
    @Schema(description = "课程id")
    @Query(type = QueryType.EQ)
    private Long courseId;
    private String courseName;
    /**
     * 请假原因
     */
    @Schema(description = "请假原因")
    @Query(type = QueryType.LIKE)
    private String leaveCause;

    /**
     * 1、签到 2、请假 3、旷课
     */
    @Schema(description = "签到")
    @Query(type = QueryType.EQ)
    private Integer signIn;

    /**
     * 创建人
     */
    @Schema(description = "创建人")
    @Query(type = QueryType.EQ)
    private Long createUser;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    @Query(type = QueryType.EQ)
    private LocalDateTime createTime;
}