package jnpf.model.cultivate.v2.teaching.vo;

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 V2MyRecordPageListVo {
    /**
     * id
     */
    private String id;

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

    /**
     * 练习视频地址
     */
    private String videoPath;

    /**
     * 练习视频封面
     */
    private String videoCover;

    /**
     * 视频图片
     */
    List<V2Attachment> attachments;

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