package com.ruoyi.web.modules.news;

import java.util.Calendar;
import java.util.Date;
import com.ruoyi.web.modules.news.domain.AgriculturalCourseListVo;
import com.ruoyi.web.modules.news.domain.AgriculturalCourseQuery;
import com.ruoyi.web.modules.news.domain.AgriculturalCourseRow;

public final class AgriculturalCourseTestSamples
{
    public static final String TYPE_VIDEO_TOPIC = "005001";

    public static final String TYPE_TRAINING_ENROLLING = "006002";

    private AgriculturalCourseTestSamples()
    {
    }

    public static AgriculturalCourseQuery listQueryVideo()
    {
        AgriculturalCourseQuery q = new AgriculturalCourseQuery();
        q.setType(TYPE_VIDEO_TOPIC);
        return q;
    }

    public static AgriculturalCourseRow sampleVideoRow()
    {
        AgriculturalCourseRow row = new AgriculturalCourseRow();
        row.setId(101L);
        row.setTitle("高原牦牛繁育视频课");
        row.setIntroduction("课程简介");
        row.setType(TYPE_VIDEO_TOPIC);
        row.setCoverFileUrl("/profile/upload/cover.png");
        row.setContentFileUrl("/profile/upload/course.mp4");
        Calendar cal = Calendar.getInstance();
        cal.set(2026, Calendar.MAY, 10, 0, 0, 0);
        cal.set(Calendar.MILLISECOND, 0);
        row.setPublishTime(cal.getTime());
        return row;
    }

    public static AgriculturalCourseRow sampleTrainingRow()
    {
        AgriculturalCourseRow row = new AgriculturalCourseRow();
        row.setId(201L);
        row.setTitle("牧业实战培训一期");
        row.setIntroduction("培训简介");
        row.setType(TYPE_TRAINING_ENROLLING);
        row.setCoverFileUrl("/profile/upload/train-cover.png");
        row.setActualEnrolledCount(8);
        row.setPlannedHeadCount(20);
        row.setPublishTime(new Date());
        return row;
    }

    public static AgriculturalCourseListVo sampleVideoListVo()
    {
        AgriculturalCourseListVo vo = new AgriculturalCourseListVo();
        vo.setId(101L);
        vo.setTitle("高原牦牛繁育视频课");
        vo.setType(TYPE_VIDEO_TOPIC);
        vo.setContentFileUrl("/profile/upload/course.mp4");
        vo.setPublishTime(new Date());
        return vo;
    }
}
