Pu Zhibing
2025-02-28 21b0a71347f6fb986c7c3b9273eba47fb31c8a41
ruoyi-api/ruoyi-api-system/src/main/java/com/ruoyi/system/api/factory/RemoteConfigFallbackFactory.java
@@ -1,16 +1,21 @@
package com.ruoyi.system.api.factory;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.system.api.domain.poji.config.Activeness;
import com.ruoyi.system.api.domain.poji.config.SysClassification;
import com.ruoyi.system.api.domain.dto.MgtBaseBathDto;
import com.ruoyi.system.api.domain.dto.MgtClassNumDto;
import com.ruoyi.system.api.domain.dto.MgtUserIdByDept;
import com.ruoyi.system.api.domain.poji.config.*;
import com.ruoyi.system.api.domain.poji.sys.SysStaff;
import com.ruoyi.system.api.domain.vo.AppOtherConfigGetVo;
import com.ruoyi.system.api.domain.vo.MgtSysSimpleUserVo;
import com.ruoyi.system.api.service.RemoteConfigService;
import com.ruoyi.system.api.domain.poji.config.SysTag;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;
import java.util.List;
import java.util.Map;
/**
 * 系统配置服务
@@ -34,19 +39,89 @@
            }
            @Override
            public R<List<SysTag>> listSysTag(Integer tagType) {
                return R.fail("获取标签失败:" + throwable.getMessage());
            public R<MgtUserIdByDept> getUserIdByDept(MgtUserIdByDept userIdByDept) {
                return R.fail("获取部门用户失败:" + throwable.getMessage());
            }
            @Override
            public R<List<Activeness>> listActiveness() {
            public R<List<MgtSysSimpleUserVo>> listSimpleUserVo(MgtBaseBathDto mgtBaseBathDto) {
                return R.fail("获取用户列表失败:" + throwable.getMessage());
            }
            @Override
            public R<Activeness> getActivenessByName(String name) {
                return R.fail("获取活跃度失败:" + throwable.getMessage());
            }
            @Override
            public R<DelayTask> getDelayTask(String key) {
                return null;
            }
            @Override
            public R addDelayTask(DelayTask delayTask) {
                return null;
            }
            @Override
            public R deleteDelayTask(String key) {
                return null;
            }
            @Override
            public R<AppOtherConfigGetVo> getAppOtherConfigGetVo() {
                return R.fail("获取其他设置失败:" + throwable.getMessage());
            }
            @Override
            public R changeClassNum(MgtClassNumDto mgtClassNumDto) {
                return R.fail("改变分类数量失败:" + throwable.getMessage());
            }
            @Override
            public R<String> getServicePhone() {
                return R.fail("获取客服电话失败:" + throwable.getMessage());
            }
            @Override
            public R<List<SysStaff>> listSysStaffByIds(List<Long> userIdList) {
                return R.fail("通过id获取员工列表失败:" + throwable.getMessage());
            }
            @Override
            public R createFileRecord(FileRecord fileRecord) {
                return R.fail("创建文件上传记录失败:" + throwable.getMessage());
            }
            @Override
           public R<String> getStoreCurriculumPassword() {
              return R.fail("获取门店课程验证密码失败:" + throwable.getMessage());
            }
            @Override
           public R<String> getStoreCurriculumName() {
              return R.fail("获取门店课程展示名称失败:" + throwable.getMessage());
            }
            @Override
            public R<List<SysTag>> listSysTag(Integer tagType) {
                return R.fail("获取标签失败:" + throwable.getMessage());
            }
            @Override
            public R<List<Activeness>> listActiveness() {
                return R.fail("获取活跃度列表失败:" + throwable.getMessage());
            }
            @Override
            public R<SysClassification> getSysClassification(Long classId) {
                return R.fail("获取分类失败:" + throwable.getMessage());
            }
            @Override
            public R<Map<Long, SysClassification>> getSysClassificationList(List<Long> classIds) {
                return R.fail("获取分类失败:" + throwable.getMessage());
            }
        };
    }
}