package com.ruoyi.web.modules.news;

import java.util.Calendar;
import java.util.Date;
import com.ruoyi.web.modules.architecture.domain.BizBreedingStandard;
import com.ruoyi.web.modules.news.domain.FarmingNewsListVo;
import com.ruoyi.web.modules.news.domain.FarmingNewsQuery;
import com.ruoyi.web.modules.news.domain.FarmingNewsRow;
import com.ruoyi.web.modules.news.support.FarmingNewsRules;

public final class FarmingNewsTestSamples
{
    public static final String TYPE_BREEDING = "001001";

    private FarmingNewsTestSamples()
    {
    }

    public static FarmingNewsQuery listQuery()
    {
        FarmingNewsQuery q = new FarmingNewsQuery();
        q.setType(TYPE_BREEDING);
        return q;
    }

    public static FarmingNewsRow sampleRow()
    {
        FarmingNewsRow row = new FarmingNewsRow();
        row.setId(1001L);
        row.setTitle("繁育作业标准示例");
        row.setIntroduction("简介示例");
        row.setType(TYPE_BREEDING);
        row.setCoverFileUrl("/profile/upload/cover.png");
        row.setContentFileUrl("/profile/upload/standard.pdf");
        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 FarmingNewsListVo sampleListVo()
    {
        FarmingNewsListVo vo = new FarmingNewsListVo();
        vo.setId(1001L);
        vo.setTitle("繁育作业标准示例");
        vo.setIntroduction("简介示例");
        vo.setType(TYPE_BREEDING);
        vo.setCoverFileUrl("/profile/upload/cover.png");
        vo.setContentFileUrl("/profile/upload/standard.pdf");
        vo.setPublishTime(new Date());
        return vo;
    }

    public static BizBreedingStandard sampleBreedingDetail()
    {
        BizBreedingStandard row = new BizBreedingStandard();
        row.setId(1001L);
        row.setStandardName("繁育作业标准示例");
        row.setIntroduction("简介示例");
        row.setStandardType(TYPE_BREEDING);
        row.setCoverFileUrl("/profile/upload/cover.png");
        row.setContentFileUrl("/profile/upload/standard.pdf");
        row.setPublishStatus(FarmingNewsRules.PUBLISH_STATUS_PUBLISHED);
        return row;
    }
}
