package com.xinelu.manage.vo.trainingorderitemdirectory;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xinelu.common.annotation.Excel;
import com.xinelu.manage.domain.trainingorderitemdirectory.TrainingOrderItemDirectory;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

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

/**
 * @author ljh
 * @version 1.0
 * Create by 2023/4/21 22:59
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class TrainingOrderItemDirectoryVO extends TrainingOrderItemDirectory implements Serializable {
    private static final long serialVersionUID = -8067388610816174007L;

    /**
     * 观看日期，格式：yyyy-MM-dd
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate watchDate;

    /**
     * 培训项目观看时间点，格式：HH:mm:ss，视频学习类型使用
     */
    @JsonFormat(pattern = "HH:mm:ss")
    private LocalTime watchTime;

    /**
     * 培训项目表id
     */
    @ApiModelProperty(value = "培训项目表id")
    @Excel(name = "培训项目表id")
    private Long trainingItemId;

    /**
     * 培训项目章节标题
     */
    @ApiModelProperty(value = "培训项目章节标题")
    @Excel(name = "培训项目章节标题")
    private String itemDirectoryTitle;

    /**
     * 培训项目章节视频存放地址
     */
    @ApiModelProperty(value = "培训项目章节视频存放地址")
    @Excel(name = "培训项目章节视频存放地址")
    private String itemDirectoryUrl;

    /**
     * 培训章节视频时长
     */
    @JsonFormat(pattern = "HH:mm:ss")
    private LocalTime itemDirectoryVideoDuration;


    /**
     * 培训项目章节排序
     */
    @ApiModelProperty(value = "培训项目章节排序")
    @Excel(name = "培训项目章节排序")
    private Integer itemDirectorySort;
}