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

import lombok.Data;

import io.swagger.v3.oas.annotations.media.Schema;
import top.continew.starter.extension.crud.model.resp.BaseResp;

import java.io.Serial;
import java.time.*;

/**
 * business信息
 *
 * @author jiay
 * @since 2025/06/26 10:24
 */
@Data
@Schema(description = "business信息")
public class SignInResp extends BaseResp {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    @Schema(description = "用户id")
    private Long userId;
    private String userName;

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

    /**
     * 手机
     */
    @Schema(description = "手机")
    private String phone;

    /**
     * 课程id
     */
    @Schema(description = "课程id")
    private Long courseId;
    private String courseName;
    /**
     * 请假原因
     */
    @Schema(description = "请假原因")
    private String leaveCause;

    /**
     * 1、签到 2、请假 3、旷课
     */
    @Schema(description = "1、签到  2、请假  3、旷课")
    private Integer signIn;
    /**
     * 经纬度
     */
    private String location;
    /**
     * 修改人
     */
    @Schema(description = "修改人")
    private Long updateUser;

    /**
     * 修改时间
     */
    @Schema(description = "修改时间")
    private LocalDateTime updateTime;

    /**
     * 异常
     */
    @Schema(description = "异常")
    private Integer abnormal;

    /**
     * 缺课次数
     */
    @Schema(description = "缺课次数")
    private Integer absent;

    /**
     * 签到次数
     */
    @Schema(description = "签到次数")
    private Integer present;

    /**
     * 假条数量
     */
    @Schema(description = "假条数量")
    private Integer leaveCount;
}