package com.ruoyi.web.modules.technology;

import java.util.Date;
import com.ruoyi.web.modules.farming.support.TechResourceRules;
import com.ruoyi.web.modules.technology.domain.OnlineTrainingCourseRow;

/**
 * 网上培训课程测试样本。
 */
public final class OnlineTrainingCourseTestSamples
{
    public static final String VIDEO_PATH = "/profile/upload/2025/01/course.mp4";

    public static final String VIDEO_URL = "/profile/upload/2025/01/course.mp4";

    private OnlineTrainingCourseTestSamples()
    {
    }

    public static OnlineTrainingCourseRow samplePublishedRow()
    {
        OnlineTrainingCourseRow row = new OnlineTrainingCourseRow();
        row.setId(101L);
        row.setResourceName("基础养殖入门");
        row.setIntroduction("课程简介正文");
        row.setCourseTopic(TechResourceRules.COURSE_TOPIC_BASIC);
        row.setVideoFileUrl(VIDEO_URL);
        row.setVideoFilePath(VIDEO_PATH);
        row.setCoverFileUrl("/profile/upload/2025/01/cover.jpg");
        row.setCoverFilePath("/profile/upload/2025/01/cover.jpg");
        row.setPublishTime(new Date());
        row.setCreateTime(new Date());
        row.setUpdateTime(new Date());
        return row;
    }
}
