package org.dromara.main.domain.vo;

import cn.idev.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

@Data
public class MainTrainingLearnRecordVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @ExcelProperty(value = "学员ID")
    private Long studentId;

    @ExcelProperty(value = "姓名")
    private String name;

    @ExcelProperty(value = "手机号")
    private String mobile;

    private Long avatar;

    @Translation(type = TransConstant.OSS_ID_TO_URL, mapper = "avatar")
    private String avatarUrl;

    @ExcelProperty(value = "已学习时长(分钟)")
    private Integer learnedTime;

    @ExcelProperty(value = "剩余时长(分钟)")
    private Integer remainingTime;

    @ExcelProperty(value = "学习进度(%)")
    private Integer progress;

    @ExcelProperty(value = "完成时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date finishTime;

    @ExcelProperty(value = "上次学习时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date lastLearnTime;
}
