package jnpf.model.cultivate.vo.teaching;

import com.fasterxml.jackson.annotation.JsonFormat;
import jnpf.model.cultivate.v2.teaching.model.V2Attachment;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

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

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class MyRecordPageListVo {

    /** id */
    private String id;

    /** 技能点名称 */
    private String skillName;

    /** 是否浏览 */
    private Boolean viewed = false;

    /** 练习视频地址[作废] */
    private String videoPath;

    /** 练习视频封面[作废] */
    private String videoCover;

    /** 视频类型(1-竖屏播放, 2-横屏播放)[作废] */
    private Integer videoActionType;

    /** 练习日期（yyyy-MM-dd） */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date date;

    /** 图片视频集合 */
    private List<V2Attachment> attachments;
}