package com.ruoyi.course.domain.time;


import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruoyi.common.constant.Constants;
import com.ruoyi.course.domain.res.RespClaTimeCalendar;
import lombok.Data;
import springfox.documentation.spring.web.json.Json;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 预约排课信息
 */
@Data
public class ClaTimeBookItem {

    @JsonSerialize(using = ToStringSerializer.class)
    private Long courseTimeId;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long bookId;

    private String claName;

    private String storeName;

    private String pic;

    // 日期
    private String claDate;

    // 星期
    private String weekDay;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="HH:mm",timezone = "GMT+8")
    private String startTime;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="HH:mm",timezone = "GMT+8")
    private String endTime;

    // 教室
    private String roomName;

    private String claColor;

    // 上课状态 1:待上课 2:已上课
    private String claTimeStatus;
    //预约状态:0->预约中；1->教练确认；2->店长确认/预约成功/待上课 3->已取消;4- >已完成/待评价；
    private int bookStatus;

    //预约时间
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    private String code;
    private String qrCode;

    private String courseName;

    //老师信息
    private Long teacherId;
    private Long teacherAppId;
    private String teacherName;

    //*0未签到 1签到
    private int checkIn;

    //{status:1,time:2025-08-05 12:00:00}
    private List<Map> statusTime;
}
