package jnpf.model.cultivate.vo.learn;

import jnpf.model.cultivate.po.learn.FtbCultivateLearnTaskCourse;
import lombok.Data;

/**
 * @Author: peng.hao
 * @create: 2024/9/9:14:10
 */
@Data
public class FtbCultivateLearnTaskCourseInfoVO {

    /**
     * 课程主键id
     */
    private String courseId;

    /**
     * 课程名称
     */
    private String courseName;

    /**
     * 课程类型
     */
    private String courseType;

    /**
     * 课程格式
     */
    private Integer format;


    /**
     * 是否必修(0否,1是)
     */
    private Integer isRequired;

    /**
     * 上下架（0下架，1上架）
     */
    private Integer isGroundIng;


    public static FtbCultivateLearnTaskCourseInfoVO convert(FtbCultivateLearnTaskCourse info) {
        if (info == null) {
            return null;
        }
        FtbCultivateLearnTaskCourseInfoVO ftbCultivateLearnTaskCourseInfoVO = new FtbCultivateLearnTaskCourseInfoVO();
        ftbCultivateLearnTaskCourseInfoVO.setCourseId(info.getCourseId());
        ftbCultivateLearnTaskCourseInfoVO.setIsRequired(info.getIsRequired());
        return ftbCultivateLearnTaskCourseInfoVO;
    }
}
