package com.ruoyi.course.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalTime;

/**
 * <p>
 * 时间槽表
 * </p>
 *
 * @author xu
 * @since 2025-12-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("time_slot")
@ApiModel(value="TimeSlot对象", description="时间槽表")
public class TimeSlot implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "时间槽代码(如:M1表示周一第1节)")
    private String slotCode;

    @ApiModelProperty(value = "星期几(1-7)")
    private Integer dayOfWeek;

    @ApiModelProperty(value = "节次(1-10)")
    private Integer period;

    @ApiModelProperty(value = "时间段名称(如:周一上午第一节)")
    private String slotName;

    @ApiModelProperty(value = "开始时间")
    private LocalTime startTime;

    @ApiModelProperty(value = "结束时间")
    private LocalTime endTime;

    @ApiModelProperty(value = "时段类型(上午/下午/晚上)")
    private String slotType;

    @ApiModelProperty(value = "是否可用(1是,0否)")
    private Integer available;

    @ApiModelProperty(value = "适用年级(高一/高二/高三/全部)")
    private String gradeLevel;

    @ApiModelProperty(value = "备注")
    private String remark;


}
