package org.jeecg.modules.system.app.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "分班管理分页响应对象")
public class ClassGroupingVO implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;

    /**
     * 课程名称
     */
    private String name;

    /**
     * 课时数量
     */
    private Integer classNum;

    /**
     * 上课地点
     */
    private String address;

    /**
     * 开课时间
     */
    @DateTimeFormat(pattern = "MM:dd")
    @JsonFormat(pattern = "MM:dd", timezone = "GMT+8")
    private Date startTime;

    /**
     * 结束时间
     */
    @DateTimeFormat(pattern = "MM:dd")
    @JsonFormat(pattern = "MM:dd", timezone = "GMT+8")
    private Date endTime;

    /**
     * 报名人数
     */
    private Integer applyNum;

    /**
     * 已分班人数
     */
    private Integer alreadyClassGroupingNum;

    /**
     * 未分班人数
     */
    private Integer unClassGroupingNum;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
}
