package com.ruoyi.web.modules.diagnosis;

import java.math.BigDecimal;
import java.util.Arrays;
import com.ruoyi.web.modules.diagnosis.domain.BizMedicalResource;
import com.ruoyi.web.modules.diagnosis.support.MedicalResourceRules;

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

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

    private MedicalResourceTestSamples()
    {
    }

    public static BizMedicalResource sampleVetDraft()
    {
        BizMedicalResource row = new BizMedicalResource();
        row.setResourceType(MedicalResourceRules.RESOURCE_TYPE_VET);
        row.setResourceName("测试兽医");
        row.setPhotoFileUrl(PHOTO_URL);
        row.setPhotoFilePath(PHOTO_PATH);
        row.setIntroduction("兽医简介");
        row.setContactPhone("13800138000");
        row.setAffiliatedUnit("县畜牧局");
        row.setDetailAddress("某某路1号");
        row.setConsultModesList(Arrays.asList(1, 2));
        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(MedicalResourceRules.PUBLISH_STATUS_DRAFT);
        row.setAccountAssigned(MedicalResourceRules.ACCOUNT_ASSIGNED_NO);
        return row;
    }

    public static BizMedicalResource sampleTeamDraft()
    {
        BizMedicalResource row = new BizMedicalResource();
        row.setResourceType(MedicalResourceRules.RESOURCE_TYPE_TEAM);
        row.setResourceName("牧业专家组");
        row.setPhotoFileUrl(PHOTO_URL);
        row.setPhotoFilePath(PHOTO_PATH);
        row.setIntroduction("团队简介");
        row.setContactPhone("13800138001");
        row.setAffiliatedUnit("县畜牧局");
        row.setEstablishDate(java.sql.Date.valueOf("2020-01-01"));
        row.setTeamSize(10);
        row.setPersonInCharge("王负责人");
        row.setPublishStatus(MedicalResourceRules.PUBLISH_STATUS_DRAFT);
        return row;
    }

    public static BizMedicalResource samplePublishedVet()
    {
        BizMedicalResource row = sampleVetDraft();
        row.setId(2L);
        row.setPublishStatus(MedicalResourceRules.PUBLISH_STATUS_PUBLISHED);
        row.setPublishTime(new java.util.Date());
        return row;
    }

    public static BizMedicalResource sampleOrgDraft()
    {
        BizMedicalResource row = new BizMedicalResource();
        row.setResourceType(MedicalResourceRules.RESOURCE_TYPE_ORG);
        row.setResourceName("巴青动物医院");
        row.setPhotoFileUrl(PHOTO_URL);
        row.setPhotoFilePath(PHOTO_PATH);
        row.setIntroduction("机构简介");
        row.setContactPhone("13800138002");
        row.setAffiliatedUnit("巴青县畜牧局");
        row.setDetailAddress("中心街10号");
        row.setOrgLevel(MedicalResourceRules.ORG_LEVEL_CLINIC);
        row.setMaxDailyAppointments(50);
        row.setServiceStartTime("08:00");
        row.setServiceEndTime("18:00");
        row.setServiceWeekdaysList(Arrays.asList(1, 2, 3, 4, 5));
        row.setPublishStatus(MedicalResourceRules.PUBLISH_STATUS_DRAFT);
        row.setAccountAssigned(MedicalResourceRules.ACCOUNT_ASSIGNED_NO);
        return row;
    }
}
