package com.ruoyi.web.modules.farming;

import com.ruoyi.common.constant.Constants;
import com.ruoyi.web.modules.farming.domain.BizLivestockKnowledge;
import com.ruoyi.web.modules.farming.support.LivestockKnowledgeRules;

/**
 * 综合牧业知识库测试样本
 */
public final class LivestockKnowledgeTestSamples
{
    private LivestockKnowledgeTestSamples()
    {
    }

    public static BizLivestockKnowledge sampleDraft()
    {
        BizLivestockKnowledge row = new BizLivestockKnowledge();
        row.setKnowledgeTitle("春季饲喂要点");
        row.setKnowledgeTopic(1);
        row.setIntroduction("简介样例");
        row.setContentFileUrl("http://localhost/profile/upload/2024/01/k.pdf");
        row.setContentFilePath(Constants.RESOURCE_PREFIX + "/upload/2024/01/k.pdf");
        row.setContentFileName("k.pdf");
        row.setKbSyncStatus(LivestockKnowledgeRules.KB_SYNC_NOT_IN);
        row.setKbDocId(null);
        row.setDelFlag(LivestockKnowledgeRules.DEL_FLAG_NORMAL);
        return row;
    }

    public static BizLivestockKnowledge sampleSynced()
    {
        BizLivestockKnowledge row = sampleDraft();
        row.setId(3L);
        row.setKbSyncStatus(LivestockKnowledgeRules.KB_SYNC_IN);
        row.setKbDocId("DOC-3");
        return row;
    }
}
