package com.ruoyi.web.modules.news;

import java.util.Calendar;
import java.util.Date;
import com.ruoyi.web.modules.diagnosis.domain.BizMedicalResource;
import com.ruoyi.web.modules.diagnosis.support.MedicalResourceRules;
import com.ruoyi.web.modules.farming.domain.BizTechResource;
import com.ruoyi.web.modules.farming.support.TechResourceRules;
import com.ruoyi.web.modules.news.domain.LivestockResourceListVo;
import com.ruoyi.web.modules.news.domain.LivestockResourceQuery;
import com.ruoyi.web.modules.news.domain.LivestockResourceRow;
import com.ruoyi.web.modules.news.support.LivestockResourceRules;

public final class LivestockResourceTestSamples
{
    private LivestockResourceTestSamples()
    {
    }

    public static LivestockResourceQuery listQuery()
    {
        LivestockResourceQuery q = new LivestockResourceQuery();
        q.setType(LivestockResourceRules.TYPE_ACHIEVEMENT);
        return q;
    }

    public static LivestockResourceRow sampleRow()
    {
        LivestockResourceRow row = new LivestockResourceRow();
        row.setId(101L);
        row.setSourceType(LivestockResourceRules.SOURCE_TECH);
        row.setTitle("高原牦牛繁育技术成果");
        row.setIntroduction("成果简介示例");
        row.setType(LivestockResourceRules.TYPE_ACHIEVEMENT);
        row.setCoverFileUrl("/profile/upload/cover.png");
        row.setContentFileUrl("/profile/upload/demo.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 LivestockResourceListVo sampleListVo()
    {
        LivestockResourceListVo vo = new LivestockResourceListVo();
        vo.setId(101L);
        vo.setSourceType(LivestockResourceRules.SOURCE_TECH);
        vo.setTitle("高原牦牛繁育技术成果");
        vo.setIntroduction("成果简介示例");
        vo.setType(LivestockResourceRules.TYPE_ACHIEVEMENT);
        vo.setCoverFileUrl("/profile/upload/cover.png");
        vo.setContentFileUrl("/profile/upload/demo.mp4");
        vo.setPublishTime(new Date());
        return vo;
    }

    public static BizMedicalResource sampleMedicalDetail()
    {
        BizMedicalResource row = new BizMedicalResource();
        row.setId(11L);
        row.setResourceType(LivestockResourceRules.TYPE_EXPERT_TEAM);
        row.setResourceName("高原牦牛专家团队");
        row.setIntroduction("团队简介");
        row.setPublishStatus(MedicalResourceRules.PUBLISH_STATUS_PUBLISHED);
        return row;
    }

    public static BizTechResource sampleTechDetail()
    {
        BizTechResource row = new BizTechResource();
        row.setId(22L);
        row.setResourceType(LivestockResourceRules.TYPE_ACHIEVEMENT);
        row.setResourceName("高原牦牛繁育技术成果");
        row.setIntroduction("成果简介");
        row.setPublishStatus(TechResourceRules.PUBLISH_STATUS_PUBLISHED);
        return row;
    }
}
