package com.ruoyi.web.modules.farming;

import java.math.BigDecimal;
import java.util.Arrays;
import com.ruoyi.web.modules.farming.domain.BizTechResource;
import com.ruoyi.web.modules.farming.support.TechResourceRules;

/**
 * 畜牧科技资源测试样本。
 */
public final class TechResourceTestSamples
{
    public static final String PHOTO_URL = "/profile/upload/2025/01/test.jpg";

    public static final String PHOTO_PATH = "/profile/upload/2025/01/test.jpg";

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

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

    private TechResourceTestSamples()
    {
    }

    public static BizTechResource sampleExpertDraft()
    {
        BizTechResource row = new BizTechResource();
        row.setResourceType(TechResourceRules.RESOURCE_TYPE_EXPERT);
        row.setResourceName("测试专家");
        row.setPhotoFileUrl(PHOTO_URL);
        row.setPhotoFilePath(PHOTO_PATH);
        row.setIntroduction("专家简介");
        row.setContactPhone("13800138000");
        row.setAffiliatedUnit("县畜牧局");
        row.setDetailAddress("科技路1号");
        row.setServiceArea("全县");
        row.setFeeStandard(new BigDecimal("100"));
        row.setServiceStartTime("08:00");
        row.setServiceEndTime("18:00");
        row.setServiceWeekdaysList(Arrays.asList(1, 2, 3, 4, 5));
        row.setPublishStatus(TechResourceRules.PUBLISH_STATUS_DRAFT);
        row.setAccountAssigned(TechResourceRules.ACCOUNT_ASSIGNED_NO);
        return row;
    }

    public static BizTechResource sampleAchievementDraft()
    {
        BizTechResource row = new BizTechResource();
        row.setResourceType(TechResourceRules.RESOURCE_TYPE_ACHIEVEMENT);
        row.setResourceName("育种新技术成果");
        row.setResearchDirection("繁育");
        row.setAchievementSummary("成果摘要");
        row.setKeyTechPrinciple("关键技术原理");
        row.setTechAdvantage("技术优势");
        row.setCompletionUnit("县农科院");
        row.setPublishStatus(TechResourceRules.PUBLISH_STATUS_DRAFT);
        return row;
    }

    public static BizTechResource sampleInstrumentDraft()
    {
        BizTechResource row = new BizTechResource();
        row.setResourceType(TechResourceRules.RESOURCE_TYPE_INSTRUMENT);
        row.setResourceName("显微镜");
        row.setInstrumentModel("A1");
        row.setPhotoFileUrl(PHOTO_URL);
        row.setPhotoFilePath(PHOTO_PATH);
        row.setIntroduction("仪器介绍");
        row.setAffiliatedUnit("县实验室");
        row.setStorageLocation("3号楼");
        row.setReservationProcess("提前预约");
        row.setPersonInCharge("王工");
        row.setContactPhone("13800138001");
        row.setBorrowFee(new BigDecimal("50"));
        row.setServiceStartTime("09:00");
        row.setServiceEndTime("17:00");
        row.setServiceWeekdaysList(Arrays.asList(1, 2, 3, 4, 5));
        row.setPublishStatus(TechResourceRules.PUBLISH_STATUS_DRAFT);
        return row;
    }

    public static BizTechResource sampleVideoDraft()
    {
        BizTechResource row = new BizTechResource();
        row.setResourceType(TechResourceRules.RESOURCE_TYPE_VIDEO);
        row.setResourceName("基础养殖入门课");
        row.setIntroduction("课程简介");
        row.setCourseTopic(TechResourceRules.COURSE_TOPIC_BASIC);
        row.setVideoFileUrl(VIDEO_URL);
        row.setVideoFilePath(VIDEO_PATH);
        row.setPublishStatus(TechResourceRules.PUBLISH_STATUS_DRAFT);
        return row;
    }

    public static BizTechResource samplePublishedExpert()
    {
        BizTechResource row = sampleExpertDraft();
        row.setId(2L);
        row.setPublishStatus(TechResourceRules.PUBLISH_STATUS_PUBLISHED);
        row.setPublishTime(new java.util.Date());
        return row;
    }
}
