package jnpf.model.cultivate.dto.teaching;

import jnpf.model.cultivate.v2.teaching.model.V2Attachment;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
public class TeachingSaveDto {

    private String id;

    /** 1: 带教, 2: 练习 */
    private Integer type;

    /** 用户id */
    private String userId;

    /** 门店id */
    @NotBlank(message = "门店id不能为空")
    private String storeId;

    /** 技能点id */
    @NotBlank(message = "技能id不能为空")
    private String skillId;

    /** 学员 */
    @NotEmpty(message = "学员不能为空")
    private List<String> studentUserIds;

    /** 日期 */
    @NotNull(message = "日期不能为空")
    private Date date;

    /** 备注 */
    private String remark;

    /** 附件列表(图片&视频) */
    @NotNull(message = "附件不能为空")
    @Size(min = 1, max = 9, message = "至少上传1个附件, 最多9个")
    private List<V2Attachment> fileList;

    /** 视频[v2已迁移到新表] */
    private String videoPath;
    /** 视频时长[v2已迁移到新表] */
    private BigDecimal videoDuration;
    /** 1.竖屏 2.横屏[v2已迁移到新表] */
    private Integer videoActionType;
}
