package org.jeecg.modules.app.vo;

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

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

@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(description = "课程小节信息响应对象")
public class CoursesPriceRulesVO implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "id")
    private String id;

    @Schema(description = "课程id")
    private String coursesId;

    @Schema(description = "名称")
    private String name;

    @Schema(description = "是否今日")
    private Boolean orToday;

    @Schema(description = "是否完成")
    private Boolean orDone;

    @Schema(description = "课程类型")
    private Integer courseType;

    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "开始时间")
    private Date startTime;

    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "结束时间")
    private Date endTime;

    @Schema(description = "课程类型（0-正常 1-补课）")
    private Integer coursesType;

    @Schema(description = "上课人数")
    private Integer totalNum;

    @Schema(description = "延课人数")
    private Integer postponeNum;

    @Schema(description = "已核销人数")
    private Integer writtenOffNum;

    @Schema(description = "未核销人数")
    private Integer unwrittenOffNum;

}
