package cn.iocoder.byzs.module.bjdx.controller.admin.course.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import com.alibaba.excel.annotation.*;
import cn.iocoder.byzs.framework.excel.core.annotations.DictFormat;
import cn.iocoder.byzs.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 课程 Response VO")
@Data
@ExcelIgnoreUnannotated
public class CourseRespVO {

    @Schema(description = "课程d", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("课程d")
    private Long id;

    @Schema(description = "课程名称")
    @ExcelProperty("课程名称")
    private String courseName;

    @Schema(description = "课程内容类型")
    private String courseContentType;

    @Schema(description = "课程图片路径")
    private String courseImagePath;

    @Schema(description = "课程音频路径")
    private String courseMusicPath;

    @Schema(description = "课程视频路径")
    private String courseVideoPath;

    @Schema(description = "课程内容")
    private String courseContent;

    @Schema(description = "课程作者")
    @ExcelProperty("课程作者")
    private String courseAuthor;

    @Schema(description = "课程老师")
    @ExcelProperty("课程老师")
    private String courseTeacher;

    @Schema(description = "课程大小", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("课程大小")
    private Double courseSize;

    @Schema(description = "课程时长", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("课程时长")
    private Integer courseTime;

    @Schema(description = "课程是否有检查")
    @ExcelProperty(value = "课程是否有检查", converter = DictConvert.class)
    @DictFormat("infra_boolean_string") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String courseIsInspect;

    @Schema(description = "课程类型")
    @ExcelProperty("课程类型")
    private Long courseType;

    @Schema(description = "课程类型")
    @ExcelProperty("课程类型")
    private String courseTypeName;

    @Schema(description = "课程排序")
    @ExcelProperty("课程排序")
    private Integer courseOrder;

    @Schema(description = "课程标签")
    @ExcelProperty(value = "课程标签", converter = DictConvert.class)
    @DictFormat("bjdx_course_label") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String courseLabel;

    @Schema(description = "课程状态")
    @ExcelProperty(value = "课程状态", converter = DictConvert.class)
    @DictFormat("common_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String courseStatus;

}